Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2023-27350: Unauthenticated Remote Code Execution in PaperCut NG/MF

Published Apr 20, 2023 · Updated 24 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.8Critical · v3.1
EPSS100.0%100th percentile
CISA KEVYesAdded Apr 21, 2023
In the wildActivePer CISA KEV
Vendor
PaperCut Software
IdentifiersCVE-2023-27350CWE-284 · Improper Access Control

CVE-2023-27350 is an improper access-control vulnerability in the SetupCompleted Java class of PaperCut NG and MF. Unauthenticated remote attackers can obtain administrative access and abuse application features, including print scripting and User/Group Sync, to execute arbitrary code with the PaperCut server process's privileges. Affected releases are 8.0.0–19.2.7, 20.0.0–20.1.6, 21.0.0–21.2.10, and 22.0.0–22.0.8, including vulnerable Application Servers and Site Servers across supported operating systems. PaperCut released a patch on March 8, 2023; exploitation was observed by April 13, 2023.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Successful exploitation can fully compromise the PaperCut host, with arbitrary code execution as SYSTEM on Windows or root where the service runs with those privileges. Attackers can alter application settings, access data available to the service, deploy malware, and establish a foothold for further network compromise. Observed exploitation has supported remote-access tooling, ransomware deployment, data exfiltration, cryptocurrency mining, and botnet activity. Access to archived print documents is possible where Print Archiving is enabled and the documents are accessible to the compromised service.

Mitigation

If you can’t patch tonight, do this now.

If immediate patching is unavailable, remove direct internet access to vulnerable servers and block external inbound traffic to management ports TCP 9191 and 9192; restrict access to trusted management networks or block all inbound management traffic where operationally feasible. Monitor for unexpected command interpreters launched by the PaperCut server process, unfamiliar print scripts, altered User/Group Sync settings, and SetupCompleted activity outside installation or upgrade periods. Isolate servers showing suspicious activity while investigating. Network restrictions do not remediate the underlying flaw.

Remediation

Patch, then assume compromise.

Upgrade all affected PaperCut NG/MF Application Servers and Site Servers to a current supported release. Historical fixed releases are 20.1.7, 21.2.11, and 22.0.9. Prioritize internet-exposed installations. Organizations that delayed patching should investigate for compromise rather than treating patch installation as sufficient recovery. For confirmed compromise, preserve evidence, wipe and rebuild affected servers, restore the database from a known-safe backup, and conduct broader incident response to identify additional affected systems.

Public exploits

Exploits

9 exploits validated by Mallory's analysis. Hidden: 4 rejected by Mallory's analysis as not a working exploit; 2 not yet analyzed, such as Exploit-DB entries.

View more in app →
papercut_ng_auth_bypass.rbThis repository contains a single Metasploit module (Ruby file) that exploits an authentication bypass vulnerability (CVE-2023-27350) in PaperCut NG print management software. The exploit targets the web interface (typically at /app on port 9191) and leverages the authentication bypass to modify server configuration options, specifically enabling scripting and disabling sandboxing. It then uses the print scripting feature (RhinoJS engine) to execute arbitrary Java code by loading a malicious .jar payload from a remote URL. The module is fully integrated with Metasploit, allowing for customizable payloads and automated exploitation. The exploit is weaponized, providing reliable remote code execution on vulnerable PaperCut NG servers. The only file in the repository is the Metasploit module itself, written in Ruby, and it contains all logic for authentication bypass, configuration manipulation, and payload delivery.Disclosed Mar 13, 2023 · Framework: metasploit · ruby · networkWeaponizedCVE-2023-27350This repository contains a Python exploit (exploit.py) targeting CVE-2023-27350, an unauthenticated remote code execution vulnerability in PaperCut MF/NG servers prior to version 22.0.8. The exploit leverages improper access controls in the SetupCompleted Java class to bypass authentication and gain administrative access. It then reconfigures the server to enable scripting and disables sandboxing, allowing the injection of a malicious print script that executes arbitrary system commands via java.lang.Runtime.getRuntime().exec(). The exploit provides an interactive shell for the attacker, running commands as SYSTEM/root. The script attempts to revert configuration changes on exit or when interrupted. The main attack vector is network-based, requiring access to the PaperCut web interface. The endpoints targeted are various /app HTTP endpoints used for authentication bypass, configuration changes, and command execution. The repository consists of a single exploit script and a README with usage instructions and warnings.monke443 · Disclosed Mar 9, 2025 · python · networkOperationalCVE-2023-27350This repository contains a Python proof-of-concept exploit for CVE-2023-27350, a critical authentication bypass and remote code execution vulnerability in PaperCut MF/NG (version 8.0 or later, unpatched). The exploit consists of a single Python script (CVE-2023-27350.py) and a README.md file. The script automates the exploitation process by first bypassing authentication to obtain a valid session, then enabling and abusing the PaperCut scripting functionality to execute arbitrary system commands on the server. The exploit interacts with the PaperCut web interface via HTTP requests to specific endpoints, and can be used to run any command supplied by the attacker. The README provides usage instructions and mitigation advice. The exploit is operational and demonstrates real-world impact, allowing unauthenticated attackers with network access to the PaperCut web interface to achieve remote code execution.Royall-Researchers · Disclosed Jul 5, 2025 · python · networkOperationalCVE-2023-27350This repository contains a Bash exploit script (rce.sh) targeting CVE-2023-27350, a critical authentication bypass and remote code execution vulnerability in PaperCut NG/MG print management software. The exploit automates the process of bypassing authentication, enabling the printer scripting engine, disabling its sandbox, and injecting a malicious script that executes arbitrary system commands on the server. The script interacts with the PaperCut web interface over HTTP(S), optionally via a proxy, and requires the attacker to specify the target URL and command to execute. The README provides usage instructions and example payloads, including reverse shell callbacks. The exploit is operational, providing real RCE if the target is vulnerable and properly configured. No detection-only scripts are present; the code is a working exploit. The only code file is rce.sh, with LICENSE and README.md providing documentation and legal information.dezso-dfield · Disclosed Dec 19, 2025 · bash · networkOperationalPaperCut-Authentication_Bypass_and_RCEThis is a small standalone exploit repository for CVE-2023-27350 targeting PaperCut NG/MF. The repository contains only three files: LICENSE, README.md, and a single Python exploit script (exploit.py). The code is not part of a larger exploitation framework; it is a self-contained operational exploit that automates authentication bypass, configuration changes, malicious script injection, and delivery of a Java payload. The exploit flow is straightforward: it first abuses the unauthenticated /app?service=page/SetupCompleted endpoint to obtain an authenticated administrative session. It then parses the returned HTML to estimate the major PaperCut version. For versions 19 and newer, it uses ConfigEditor POST requests to enable print scripting (print-and-device.script.enabled=Y) and disable sandboxing (print.script.sandboxed=N). Next, it selects a hardcoded printer object (l1001) and submits a malicious RhinoJS print script through the PrinterDetails form. That script constructs a java.net.URLClassLoader pointing to an attacker-controlled URL hosting payload.jar, loads the payload's Main-Class, instantiates it, and invokes main([]), resulting in arbitrary code execution inside the PaperCut JVM. The script also starts a minimal local HTTP server using Python's http.server/socketserver modules to serve the attacker-provided JAR exactly once. It reads META-INF/MANIFEST.MF from the JAR to determine the Main-Class automatically, defaulting to metasploit.Payload if none is found. The README instructs the operator to generate the JAR with msfvenom using java/shell_reverse_tcp and to catch the callback with netcat, so the intended end result is a reverse shell. Notable implementation details: TLS verification is disabled; success detection for the auth bypass is based on HTTP 200 and presence of the string 'papercut' in the response body; printer ID l1001 is hardcoded; and the exploit attempts to restore the modified PaperCut settings after execution. Overall, this repository is a real exploit, not a detector, and provides authenticated bypass plus RCE capability against vulnerable PaperCut instances that can reach the attacker's HTTP server.joaoaugustom · Disclosed May 30, 2026 · python · markdown · web · networkOperationalCVE-2023-27350This repository contains a proof-of-concept (POC) exploit for CVE-2023-27350, an authentication bypass and remote code execution vulnerability in PaperCut MF/NG. The main file, 'CVE-2023-27350.py', is a Python script that automates exploitation by first bypassing authentication to obtain a valid session, then abusing the application's scripting functionality to execute arbitrary system commands on the target server. The exploit interacts with the PaperCut web interface via HTTP requests, modifying configuration settings to enable scripting and disable sandboxing, and then injects a malicious script to trigger command execution. The script is parameterized to allow the user to specify the target URL and the command to execute. The README provides usage instructions, technical background, and mitigation advice. The exploit is network-based and targets PaperCut servers accessible over HTTP(S). Notable endpoints include the PaperCut web interface (e.g., 'http://10.0.40.56:9191/app') and a hardcoded callback URL used in a sample payload. The repository is structured simply, with one exploit script and a README.horizon3ai · Disclosed Apr 22, 2023 · python · networkPoCCVE-2023-27350This repository provides a Python-based proof-of-concept exploit for CVE-2023-27350, a critical unauthenticated remote code execution vulnerability in PaperCut MF/NG. The main exploit script (CVE-2023-27350.py) allows an attacker to: - Check if one or more PaperCut servers are vulnerable (via a single URL or a file of IPs) - Exploit the vulnerability to execute arbitrary commands or obtain a reverse shell as SYSTEM on the target The exploit works by interacting with the PaperCut web management interface, modifying configuration settings to enable scripting, and injecting a malicious script that executes attacker-supplied commands. The script supports both direct command execution and reverse shell payloads. The repository includes a README with detailed usage instructions, a requirements.txt for dependencies (argparse, requests), and standard project files. The attack vector is network-based, targeting the HTTP interface of PaperCut servers. The exploit is operational and can be used for real-world attacks if the target is unpatched.adhikara13 · Disclosed Apr 25, 2023 · python · networkPoCCVE-2023-27350This repository provides a Python script (papercut.py) that targets CVE-2023-27350, an authentication bypass vulnerability in PaperCut MF/NG print management software. The script is designed for mass scanning: it takes a file containing a list of domain names or IP addresses, then uses multithreading to check each target for the vulnerability. It does this by sending HTTP requests to specific endpoints (/app?service=page/SetupCompleted and /app?service=page/Dashboard) and parsing the responses to determine if authentication can be bypassed and to extract the PaperCut version. Results are saved to a Results/Results.txt file. The repository also includes a README.md with usage instructions and a requirements.txt listing Python dependencies. The exploit is a proof-of-concept for mass vulnerability assessment, not a weaponized exploit, and does not provide post-exploitation payloads.ThatNotEasy · Disclosed May 27, 2023 · python · networkPoCCVE-2023-27350-PoCThis repository contains a proof-of-concept exploit for CVE-2023-27350, targeting PaperCut MF/NG web applications. The exploit is implemented in a single Python script (cve-2023-27350.py) and is accompanied by a README.md that explains the vulnerability and usage. The script takes a target IP address as input and attempts to access the PaperCut web interface on port 9191. It first checks the version by accessing the SetupCompleted page, then demonstrates how to bypass authentication by directly visiting the Dashboard page. If successful, this grants the attacker unauthenticated access to the admin panel, allowing them to review or change system settings. The exploit is a network-based web exploit and does not require valid credentials. The repository is structured simply, with one exploit script and a README providing context and usage instructions.0xB0y426 · Disclosed Apr 14, 2025 · python · networkPoC
Exposure surface

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.

VendorProductType
PaperCut SoftwarePapercut Mfapplication
PaperCut SoftwarePapercut Ngapplication
FAQ

Frequently asked questions

Is CVE-2023-27350 exploited in the wild?
Yes. As of Oct 24, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Apr 21, 2023.
Is there a public exploit for CVE-2023-27350?
Yes. Mallory tracks 9 public exploits or proofs of concept for CVE-2023-27350, the earliest disclosed Mar 13, 2023.
Is there a patch for CVE-2023-27350?
Upgrade all affected PaperCut NG/MF Application Servers and Site Servers to a current supported release. Historical fixed releases are 20.1.7, 21.2.11, and 22.0.9.
What products are affected by CVE-2023-27350?
PaperCut Software Papercut Ng and PaperCut Software Papercut Mf.
How severe is CVE-2023-27350?
CVE-2023-27350 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 100.0% (100th percentile) as of Oct 24, 2026.
Activity feed

Recent activity

61 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+42 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence95Every report linking this CVE to a named adversary.
Associated malware54Malware families linked to this CVE, with evidence and IOCs.
Detection signatures3YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity6Community discussion across Reddit, Mastodon, and other social sources.