PaperCut MF/NG: Unsafe Dynamic Class Loading in Database Connector
Patch now. It under exploitation confirmed by CISA and has a working public exploit.
Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk (see URL in Notes) guidance and CISA’s “Forensics Triage Requirements” (see URL in Notes). Follow applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset's internet exposure and ensuring adherence to BOD 26-04 patching guidelines.
PaperCut MF/NG allows attackers to run malicious code on the server by manipulating database driver settings, because the application doesn't validate which database drivers it loads. This gives attackers complete control over the server if they can change the configuration.
The vulnerability stems from unsafe dynamic class loading in PaperCut's database connector that instantiates driver classes based on user-configurable parameters without allowlist validation (CWE-470). An attacker with configuration access can specify arbitrary Java classes from the application classpath, achieving remote code execution under the PaperCut server's security context.