This module exploits an authentication bypass in PaperCut NG and MF. A crafted Apache Tapestry complex-direct request invokes privileged ConfigEditor components through the public Home page. On version 26, the module reconfigures external user lookup to use an H2 JDBC URL whose initialization SQL evaluates Groovy code. On versions 24 and 25, it uses a bundled Derby procedure to write a temporary Groovy bootstrap class to the application classpath, then loads it as a database driver. The Java target serves an executable payload JAR and a generic memory-backed JAR loader over HTTP. Its payload classes and resources remain in memory; however, versions 24 and 25 still require the temporary Derby bootstrap class. The command targets execute a Windows or Linux command payload directly. This module was successfully tested against: * PaperCut MF 26.0.4 (Build 76494) <-- emergency patch v1 * PaperCut NG 26.0.4 (Build 76495) <-- emergency patch v1 * PaperCut NG 26.0.3 (Build 76225) * PaperCut NG 25.0.11 (Build 75758) * PaperCut NG 24.1.9 (Build 73376)
Exploit database
Vulnerability
CVE-2026-82078
PaperCut MF/NG: Unsafe Dynamic Class Loading in Database Connector
Vulnerability details
- Score
- 9.4
- Severity
- critical
CVSS 4.0 · PaperCut
Vector string
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:HDescription
An unsafe dynamic class loading vulnerability exists in the database connection utilities of PaperCut MF and PaperCut NG. The application instantiates database driver classes based on configurable driver names without validating against an allowlist of approved drivers. If an attacker can manipulate system configuration parameters, this enables the execution of arbitrary Java bytecode residing on the application classpath under the security context of the PaperCut server process.
CVE ProgramExploit source choices
1 sourcePaperCut NG/MF Unauthenticated RCE (CVE-2026-81578 + CVE-2026-82078)
2026-08-27papercut_ng_external_user_lookup_rce.rb