CVE-2017-9525
Medium · 6.7CVSS
6.7
EPSS
0.6%
Published
Jun 9, 2017
CISA due date
—
Cloudanix analysis
A bug in the cron scheduling tool on older Debian and Ubuntu Linux systems lets someone with limited access gain full control of the computer.
- Exploitation
- Local Privilege
- Attacker needs
- High Privilege
- Complexity
- Low
- Impact
- Privilege Gain
- Component
- Application
- Class
- Path Traversal
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The postinst maintainer script performs chown and chmod on paths that can be controlled via symlinks, allowing a user in the crontab group to redirect operations to arbitrary files and escalate to root.
Why it matters to the business
Local attackers can obtain full root access on affected Debian and Ubuntu systems, enabling complete compromise of the host and any data or services it runs.
How an attack unfolds
An attacker in the crontab group creates a symlink in a location processed by the postinst script, then triggers package installation or upgrade so that chown/chmod operations follow the link and grant elevated ownership or permissions on attacker-chosen files.
How to fix it
Upgrade the cron package to a version that safely handles file paths without following untrusted symlinks; on Debian and Ubuntu apply the security updates released after the vulnerable 3.0pl1-128 and 3.0pl1-128ubuntu2 releases respectively.
How to confirm the fix worked
Verify the installed cron package version is newer than the vulnerable releases, confirm the postinst script no longer performs chown/chmod on paths under user control, and test that package upgrades complete without following attacker-controlled symlinks.
Typical attack path
- Obtain membership in the crontab group on a vulnerable system
- Create a malicious symlink pointing to a privileged target file
- Trigger execution of the cron package postinst script via apt or dpkg
- Abuse the resulting root-owned file to obtain a root shell or persistent access
How to detect it
Review dpkg and apt history logs for cron package installations or upgrades performed by non-root users, and inspect system logs around those times for unexpected chown or chmod activity on sensitive paths.
What your security team should do
- Immediately update cron on all Debian and Ubuntu systems to a patched release
- Restrict membership in the crontab group to only trusted administrative accounts
- Monitor package management logs for unexpected cron upgrades or postinst executions
- Apply the principle of least privilege for all local user accounts
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | cron | 0 | 3.0pl1-129 |
| Debian:11 | systemd-cron | 0 | No fix |
| Debian:12 | cron | 0 | 3.0pl1-129 |
| Debian:12 | systemd-cron | 0 | 1.5.17-2 |
| Debian:13 | cron | 0 | 3.0pl1-129 |
| Debian:13 | systemd-cron | 0 | 1.5.17-2 |
| Debian:8 | cron | 0 | 3.0pl1-127+deb8u2 |
| Debian:9 | cron | 0 | 3.0pl1-128+deb9u2 |
| Ubuntu:14.04:LTS | cron | 0 | No fix |
| Ubuntu:18.04:LTS | cron | 0 | 3.0pl1-128.1ubuntu1.2 |
| Ubuntu:18.04:LTS | cron | 0 | 3.0pl1-128.1ubuntu1.1 |
| Ubuntu:20.04:LTS | cron | 0 | 3.0pl1-134ubuntu1 |
| Ubuntu:Pro:14.04:LTS | cron | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | cron | 0 | 3.0pl1-128ubuntu2+esm2 |
| Ubuntu:Pro:16.04:LTS | cron | 0 | 3.0pl1-128ubuntu2+esm1 |
Related vulnerabilities
- CVE-2026-119336 Pi-hole is a DNS sinkhole that protects devices from unwanted content without installing… CWE-59
- CVE-2026-119334 Pi-hole is a DNS sinkhole that protects devices from unwanted content without installing… CWE-59
- CVE-2026-116250 In server mode pgAdmin 4 validates a path a user gives for a file in their storage… CWE-59
- CVE-2026-119704 Bastille through 1.4.4 contains a symlink following vulnerability in the cp.sh, rcp.sh… CWE-59
- CVE-2026-119291 Zuke is a code-first, strongly typed build automation system for Deno. CWE-59
- CVE-2026-118990 CallBackery versions before 0.62.0 for Perl leave a world-readable dump of the… CWE-59
- CVE-2026-119364 ProFTPD through 1.3.9e and 1.3.10rc1 through 1.3.10rc4 contains a link-following… CWE-59
- CVE-2026-119168 HashiCorp Nomad and Nomad Enterprise are vulnerable to symlink following during… CWE-59