☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
Papercut logo [ WEBSITE ] [ VENDOR STATS ]
CVSS: 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N 🐛 CWE-200
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2024-1221

CVE-2024-1221 Information Disclosure in Papercut
📅 PUBLISHED: 2024-03-14 03:01 UTC 🔄 UPDATED: 2026-08-12 14:53 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.75%
👁️
0.75% probability
18.7× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1190
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
Country: Australia License: Commercial
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 3.1
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: N Privileges Required None
UI: N User Interaction None
S: U Scope Unchanged
C: L Confidentiality Low
I: N Integrity None
A: N Availability None
3.1
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-1221 is a low-severity information disclosure vulnerability affecting PaperCut NG/MF servers running on Linux and macOS. The flaw allows an authenticated attacker (or an attacker who has obtained a valid system token through reconnaissance) to craft a malicious payload against a specific API endpoint, potentially exposing files on the server. The vulnerability has a CVSS score of 3.1, indicating low impact, but it could be leveraged in conjunction with other attacks to escalate privileges or gather sensitive data. No public exploit code or proof-of-concept is currently available, and the vendor has not released a patch.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

CVSS Breakdown & Threat Level

  • CVSS Score: 3.1 (Low)
  • Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
  • Attack Vector: Network
  • Attack Complexity: Low
  • Privileges Required: None (but requires knowledge of a system token)
  • User Interaction: None
  • Scope: Unchanged
  • Confidentiality Impact: Low
  • Integrity Impact: None
  • Availability Impact: None

The low CVSS score reflects the limited impact (only file exposure) and the prerequisite of obtaining a system token. However, in a targeted attack, this could be a stepping stone for further compromise.

Deep Dive & Mechanics

The vulnerability resides in an unspecified API endpoint on PaperCut NG/MF servers. The endpoint does not properly validate or sanitize user-supplied input when processing requests. An attacker who has obtained a valid system token (e.g., through social engineering, previous compromise, or token leakage) can craft a specially formed payload that tricks the server into exposing files outside the intended scope. The attack is limited to Linux and macOS systems, suggesting the issue may be related to file path handling differences in these operating systems compared to Windows.

The exact mechanism is not publicly documented, but it likely involves path traversal or improper access control on the API endpoint. The attacker must first gather a system token, which could be done through reconnaissance of exposed configuration files, logs, or by exploiting other vulnerabilities.

Vulnerable vs. Patched Code

Since no patch is available, a direct code comparison cannot be provided. However, based on the description, the vulnerable code likely lacks proper input validation or authorization checks on the API endpoint. A patched version would:

  • Validate that the requesting user has the necessary permissions.
  • Sanitize file paths to prevent traversal (e.g., using realpath() or equivalent).
  • Require authentication for the endpoint, not just a token.

Exploitation & Lab Setup

Red Team

Prerequisites:

  • A PaperCut NG/MF server running on Linux or macOS.
  • A valid system token (obtained through reconnaissance or prior compromise).

Steps:

  1. Identify the vulnerable API endpoint (e.g., /api/v1/files or similar).
  2. Obtain a system token (e.g., from /etc/papercut/conf/server.properties or via a previous exploit).
  3. Craft a payload that includes the token and a path traversal sequence (e.g., ../../etc/passwd).
  4. Send the request to the endpoint.

Example payload (conceptual):

curl -X GET "https://target:9191/api/v1/files?token=SYSTEM_TOKEN&path=../../etc/passwd"

Note: No public exploit code exists; this is a hypothetical example.

Blue Team

Detection:

  • Monitor API endpoint access logs for unusual path traversal patterns (e.g., ../ sequences).
  • Alert on requests to the vulnerable endpoint without proper authentication.
  • Correlate token usage with known legitimate users.

Hunting:

  • Search for requests containing ../ or ..\\ in API parameters.
  • Look for repeated failed authentication attempts followed by successful token-based access.

Indicators of Compromise (IOCs)

  • Network: HTTP requests to /api/v1/files or similar endpoints with path parameters containing ../.
  • File: Unauthorized access to /etc/passwd, /etc/shadow, or other sensitive files on the server.
  • Log: Entries in PaperCut access logs showing GET /api/v1/files?token=...&path=... with suspicious paths.

Detection Engineering

YARA Rule

rule CVE_2024_1221_Papercut_File_Exposure {
    meta:
        description = "Detects attempts to exploit CVE-2024-1221 in PaperCut NG/MF"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2024-1221"
    strings:
        $api_endpoint = "/api/v1/files" nocase
        $path_traversal = "../" nocase
        $token_param = "token=" nocase
    condition:
        $api_endpoint and $path_traversal and $token_param
}

Sigma Rule

title: CVE-2024-1221 PaperCut File Exposure Attempt
id: 12345678-1234-1234-1234-123456789abc
status: experimental
description: Detects HTTP requests attempting to exploit CVE-2024-1221
author: Valters IT
date: 2025-04-10
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-method: 'GET'
        cs-uri-query|contains:
            - '/api/v1/files'
            - 'token='
            - '../'
    condition: selection
falsepositives:
    - Legitimate administrative use of the API
level: medium

Suricata Rule

alert http any any -> $HOME_NET any (
    msg:"CVE-2024-1221 PaperCut File Exposure Attempt";
    flow:to_server,established;
    content:"/api/v1/files"; http_uri;
    content:"token="; http_uri;
    content:"../"; http_uri;
    classtype:attempted-recon;
    sid:1000001;
    rev:1;
)

Remediation & Mitigation

  • Immediate: Restrict network access to the PaperCut API endpoint to trusted IPs only.
  • Short-term: Monitor for unauthorized token usage and implement additional authentication checks.
  • Long-term: Apply vendor patches when released. Consider upgrading to a version that addresses this issue.
  • Workaround: Disable the vulnerable API endpoint if not required, or implement a web application firewall (WAF) rule to block path traversal patterns.

Valters IT

👁️ SHODAN DORKS (THREAT HUNTING)

What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.

Papercut NG/MF
Papercut server

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2024-1221/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.