CVE-2008-5377: Symlink Attack in CUPS pstopdf Temporary File Handling
- Vendor
- Apple
CUPS 1.3.8's pstopdf filter creates the /tmp/pstopdf.log temporary file in an insecure manner, allowing local users to perform a symlink attack. By pre-creating a symbolic link at /tmp/pstopdf.log pointing to an arbitrary file, an attacker can cause pstopdf to overwrite that file when it writes logs, leading to potential data loss or privilege escalation. This is distinct from the earlier CVE-2001-1333 issue.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
A local attacker can overwrite arbitrary files on the system with the privileges of the user running the pstopdf process (typically the CUPS daemon, which may run as root). This can lead to privilege escalation, denial of service, or data corruption, depending on the file targeted.
Mitigation
If you can’t patch tonight, do this now.
Restrict local access to the system to trusted users only until the patch is applied. Monitor /tmp for suspicious symlinks and consider mounting /tmp with the 'noexec' and 'nosuid' options to limit exploitation. Regularly audit the system for unauthorized file modifications.
Remediation
Patch, then assume compromise.
Upgrade to a version of CUPS where pstopdf uses secure temporary file creation mechanisms (such as mkstemp or O_TMPFILE) to avoid predictable file names and symlink attacks. Alternatively, apply vendor patches addressing this issue.
Exploits
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2008-5377 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2008-5377 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2008-5377?
- Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2008-5377.
- Is there a patch for CVE-2008-5377?
- Upgrade to a version of CUPS where pstopdf uses secure temporary file creation mechanisms (such as mkstemp or O_TMPFILE) to avoid predictable file names and symlink attacks. Alternatively, apply vendor patches addressing this issue.
- What products are affected by CVE-2008-5377?
- Apple Cups.
- How severe is CVE-2008-5377?
- CVE-2008-5377 has a CVSS v2 score of 6.9 (Medium) and an EPSS score of 0.66% (52nd percentile) as of Oct 16, 2026.
Recent activity
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.