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.
Published: 2026-10-15
Score: 5.7 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Root File Overwrite
Action: Patch
AI Analysis

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.

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

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 yet.

History

Tue, 20 Oct 2026 19:45:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:openprinting:cups:*:*:*:*:*:*:*:*

Tue, 20 Oct 2026 03:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 20 Oct 2026 00:30:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Sat, 17 Oct 2026 17:30:00 +0000

Type Values Removed Values Added
First Time appeared Openprinting
Openprinting cups
Vendors & Products Openprinting
Openprinting cups

Thu, 15 Oct 2026 17:30:00 +0000

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'}


Subscriptions

Openprinting Cups
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-20T02:59:10.167Z

Reserved: 2026-06-16T22:28:27.061Z

Link: CVE-2026-55480

cve-icon Vulnrichment

Updated: 2026-10-20T02:59:03.223Z

cve-icon NVD

Status : Analyzed

Published: 2026-10-15T18:17:27.987

Modified: 2026-10-20T19:37:33.393

Link: CVE-2026-55480

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-15T17:09:33Z

Links: CVE-2026-55480 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-17T17:15:11Z

Weaknesses
  • CWE-377

    Insecure Temporary File

  • CWE-59

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