CVE Vulnerabilities

CVE-2017-9525

Improper Link Resolution Before File Access ('Link Following')

Published: Jun 09, 2017 | Modified: Dec 16, 2021
CVSS 3.x
6.7
MEDIUM
Source:
NVD
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
CVSS 2.x
6.9 MEDIUM
AV:L/AC:M/Au:N/C:C/I:C/A:C
RedHat/V2
RedHat/V3
Ubuntu
LOW

In the cron package through 3.0pl1-128 on Debian, and through 3.0pl1-128ubuntu2 on Ubuntu, the postinst maintainer script allows for group-crontab-to-root privilege escalation via symlink attacks against unsafe usage of the chown and chmod programs.

Weakness

The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.

Affected Software

Name Vendor Start Version End Version
Cron Cron_project * 3.0pl1-128. (including)
Cron Ubuntu artful *
Cron Ubuntu bionic *
Cron Ubuntu cosmic *
Cron Ubuntu disco *
Cron Ubuntu esm-infra-legacy/trusty *
Cron Ubuntu esm-infra/xenial *
Cron Ubuntu precise/esm *
Cron Ubuntu trusty *
Cron Ubuntu trusty/esm *
Cron Ubuntu upstream *
Cron Ubuntu vivid/stable-phone-overlay *
Cron Ubuntu vivid/ubuntu-core *
Cron Ubuntu xenial *
Cron Ubuntu yakkety *
Cron Ubuntu zesty *

Potential Mitigations

  • Follow the principle of least privilege when assigning access rights to entities in a software system.
  • Denying access to a file can prevent an attacker from replacing that file with a link to a sensitive file. Ensure good compartmentalization in the system to provide protected areas that can be trusted.

References