Skip to main content

CVE-2024-4712: PaperCut NG/MF Privilege Escalation Flaw

CVE-2024-4712 is a privilege escalation vulnerability in PaperCut NG/MF affecting Windows servers with Web Print enabled. Attackers can exploit arbitrary file creation to gain elevated system access. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2024-4712 Overview

CVE-2024-4712 is an arbitrary file creation vulnerability in PaperCut NG/MF print management software. The flaw affects only Windows servers running PaperCut with the Web Print feature enabled. The vulnerability resides in the image-handler process, which can be tricked into creating files that do not exist when a maliciously crafted payload is supplied. Successful exploitation enables local privilege escalation on the host server. PaperCut later split the original issue into two separate CVEs, assigning CVE-2024-4712 and CVE-2024-8405, and rescored the vector to reflect low privileges required and low attack complexity.

Critical Impact

An authenticated local user with network login rights to the PaperCut host can create arbitrary files and escalate privileges on the Windows server.

Affected Products

  • PaperCut MF (Windows, Web Print enabled)
  • PaperCut NG (Windows, Web Print enabled)
  • Microsoft Windows server hosts running the affected PaperCut versions

Discovery Timeline

  • 2024-05-14 - CVE-2024-4712 published to the National Vulnerability Database (NVD)
  • 2024-05 - PaperCut publishes the PaperCut Security Bulletin May 2024
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-4712

Vulnerability Analysis

The defect sits in the PaperCut image-handler process on Windows deployments where Web Print is enabled. Web Print lets users submit documents for printing through a web browser without installing print drivers. During image conversion, the handler constructs filesystem paths from attacker-influenced input and writes output to those paths. Because the handler does not adequately validate the resulting path or verify that the target file already exists, it will create files at arbitrary locations the service account can write to.

PaperCut services on Windows typically run with elevated privileges. An attacker who can place a file into a location processed by a privileged component, such as a startup directory, a scheduled task script path, or a DLL search location, can convert file creation into code execution in a higher-privileged context. The CWE assignment is [CWE-77] Improper Neutralization of Special Elements used in a Command (command injection class), reflecting unsafe handling of structured input passed to the handler.

Root Cause

The root cause is improper neutralization of special elements in payloads processed by the Web Print image-handler. The handler accepts input that influences file paths and performs write operations without sufficient validation that the target already exists or resides inside a permitted directory.

Attack Vector

Exploitation requires local access to the PaperCut host with valid low-privileged credentials. The rescored vector reflects the worst case in which an administrator has granted local login rights to standard network users on the server. The attacker submits a crafted Web Print payload that forces the image-handler to write a file to an attacker-chosen path, then leverages that file for privilege escalation. No user interaction is required, and no verified public proof-of-concept has been released. See the PaperCut Security Bulletin May 2024 for vendor technical guidance.

Detection Methods for CVE-2024-4712

Indicators of Compromise

  • Unexpected files created by the PaperCut service account outside the standard PaperCut installation and spool directories.
  • New or modified executables, scripts, or DLLs in Windows auto-run locations on the PaperCut server following Web Print activity.
  • Anomalous child processes spawned by the PaperCut image-handler or pc-app processes.
  • Web Print submissions containing unusual file names, path separators, or non-image payload structures in application logs.

Detection Strategies

  • Monitor file-creation events on the PaperCut host and correlate the writing process with the PaperCut service account to flag writes outside expected directories.
  • Baseline normal Web Print job patterns and alert on submissions that deviate in file type, size, or metadata.
  • Enable PaperCut audit logging and ship application logs to a central analytics platform for review of Web Print errors and handler exceptions.

Monitoring Recommendations

  • Track process-lineage telemetry for image-handler and other PaperCut subprocesses to identify unexpected spawned binaries.
  • Alert on new entries in Windows persistence locations such as Startup, Run/RunOnce, scheduled tasks, and service binary paths on the print server.
  • Review authentication logs for interactive or network logons by standard users to the PaperCut host, since the attack path assumes that access.

How to Mitigate CVE-2024-4712

Immediate Actions Required

  • Apply the fixed PaperCut NG/MF release referenced in the PaperCut Security Bulletin May 2024 on all affected Windows servers.
  • Disable Web Print on PaperCut servers that do not require the feature until patching is complete.
  • Remove local login rights for standard network users on the PaperCut host, reducing the required local access vector.
  • Audit the PaperCut installation and spool directories for unexpected files created since the first vulnerable version was deployed.

Patch Information

PaperCut has released fixed versions of PaperCut NG and PaperCut MF addressing CVE-2024-4712 and the companion CVE-2024-8405. Administrators should consult the PaperCut Security Bulletin May 2024 for the specific fixed build numbers that correspond to their deployment track and upgrade accordingly. The patch hardens the image-handler logic that previously allowed arbitrary file creation during Web Print processing.

Workarounds

  • Disable the Web Print feature in the PaperCut admin console for environments that do not depend on browser-based printing.
  • Restrict interactive and network logon rights on the PaperCut host to administrators only, blocking the local attack prerequisite.
  • Isolate the PaperCut server on a dedicated management network segment and limit access to trusted print clients.
bash
# Example: list local users with interactive logon rights on the PaperCut Windows host
# Review output and remove non-administrative accounts that do not require local access
whoami /priv
net localgroup "Users"
net localgroup "Remote Desktop Users"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.