CVE-2026-55480

CUPS copy_model() creates a predictable PPD tempfile without O_EXCL/O_NOFOLLOW (symlink TOCTOU, lp → root)

Published Oct 15, 2026 CVSS 3.1 · 5.7 Medium EPSS < 1% KEV · Not listed
Description
OpenPrinting CUPS is an open source printing system for Linux and other Unix-like operating systems. Prior to 2.4.20, copy_model() in scheduler/ipp.c creates a predictable TempDir/<connection-number>.ppd path in an lp-group-writable directory and opens it as root without O_EXCL or O_NOFOLLOW. Exploitation requires an lp-group process able to write that directory to predict the connection-derived name and plant a symlink before the root open, while a privileged add-printer or modify-printer operation using a model PPD triggers copy_model(). The reporter treats an existing lp foothold and the privileged operation as distinct prerequisites, while the maintainer assesses high privileges because installing the relevant filter or administering the printer requires root or print-administrator access. If the race succeeds, the root scheduler follows the symlink and truncates or overwrites a root-writable target with generated PPD data, compromising file integrity or availability. This issue is fixed in version 2.4.20.

Analysis

AI-generated

Technical impact

In CUPS, the copy_model() routine built before version 2.4.20 creates a temporary PPD file with a predictable name inside a directory that is writable by the lp group. The routine opens the file as the root user without using the O_EXCL or O_NOFOLLOW flags, which allows a race condition where a local lp group process can create a symbolic link to an arbitrary file before the root user opens the target. If the attack succeeds, the root scheduler will follow the symlink and overwrite the target file, compromising file integrity or availability. This flaw does not grant code execution but allows a privileged user to modify or destroy arbitrary root‑owned files.

Affected Systems

The vulnerability affects all installations of OpenPrinting CUPS that use a temporary directory writable by the lp group and run any version prior to 2.4.20. The repository notes that the issue is fixed in release 2.4.20; systems using that or later versions are not affected.

Risk and Exploitability

The vulnerability has a CVSS score of 5.7, which indicates a moderate impact. The EPSS score of less than 1% suggests that exploitation is unlikely but not impossible; it is not listed in the CISA KEV catalog. Exploitation requires two distinct conditions: a local lp group foothold that can create the symlink in the temp directory and a privileged action such as adding or modifying a printer that triggers copy_model(). Once both prerequisites are met, the race can succeed, leading to root‑level file overwrite. The risk is higher in environments where lp group users have write access to CUPS’s temporary directories or where CUPS is improperly configured to allow group write access to these directories.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to CUPS 2.4.20 or later to apply the fix that introduces proper file creation flags and removes predictable temp file usage.
  • Verify that the CUPS temporary directory (by default /var/spool/cups/tmp) is owned by root and not writable by the lp group; adjust permissions or use a dedicated secure directory if necessary.
  • If immediate upgrade is not feasible, monitor the temporary directory for suspicious symbolic links and enforce strict ACLs to prevent lp group users from creating or modifying files within it.

Generated by OpenCVE AI on October 16, 2026 at 20:49 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:openprinting:cups:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Openprinting
Openprinting cups
Vendors & Products Openprinting
Openprinting cups
Type Values Removed Values Added
Description OpenPrinting CUPS is an open source printing system for Linux and other Unix-like operating systems. Prior to 2.4.20, copy_model() in scheduler/ipp.c creates a predictable TempDir/<connection-number>.ppd path in an lp-group-writable directory and opens it as root without O_EXCL or O_NOFOLLOW. Exploitation requires an lp-group process able to write that directory to predict the connection-derived name and plant a symlink before the root open, while a privileged add-printer or modify-printer operation using a model PPD triggers copy_model(). The reporter treats an existing lp foothold and the privileged operation as distinct prerequisites, while the maintainer assesses high privileges because installing the relevant filter or administering the printer requires root or print-administrator access. If the race succeeds, the root scheduler follows the symlink and truncates or overwrites a root-writable target with generated PPD data, compromising file integrity or availability. This issue is fixed in version 2.4.20.
Title CUPS copy_model() creates a predictable PPD tempfile without O_EXCL/O_NOFOLLOW (symlink TOCTOU, lp → root)
Weaknesses CWE-377
CWE-59
References
Metrics cvssV3_1

{'score': 5.7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:H/A:H'}

Weaknesses
  • CWE-377

    Insecure Temporary File

  • CWE-59

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

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 20, 2026, 2:59 AM
Reserved
Jun 16, 2026, 10:28 PM
Status
Analyzed
Published
Oct 15, 2026, 6:17 PM
Modified
Oct 20, 2026, 7:37 PM
Severity
Moderate
Public date
Oct 15, 2026, 5:09 PM