CVE Professor
/
All CVEs
CVE-2026-139872

CVE-2026-139872 — Armatiek XSLWeb — CWE-22

HIGH CVSS 9.2 ⚡ EPSS 1.2% NVD

Armatiek XSLWeb through 4.2.0 contains a path traversal vulnerability in the unzip XPath extension function that allows attackers to write files outside the extraction directory via crafted archive entries. Attackers can supply archives with ../ sequences or absolute paths processed by ZipUtils.unzipStream() to overwrite XSLT stylesheets in webapp directories, leading to remote code execution.

Armatiek XSLWeb through 4.2.0 contains a path traversal vulnerability in the unzip XPath extension function that allows attackers to write files outside the extraction directory via crafted archive entries. Attackers can supply archives with ../ sequences or absolute paths processed by ZipUtils.unzipStream() to overwrite XSLT stylesheets in webapp directories, leading to remote code execution.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack Vector Network AV:N
Attack Complexity High AC:H
Privileges Req. None PR:N
User Interaction None UI:N
Scope Unchanged S:U
Confidentiality High C:H
Integrity High I:H
Availability High A:H
EPSS — Exploit Prediction Scoring System
1.2%
30-day probability
In the 68. percentile of all CVEs — higher exploitation probability than most vulnerabilities.
AI Security Analysis & Remediation

🎯 What is this vulnerability?

CVE-2026-139872 is a critical Path Traversal (CWE-22) vulnerability in the Armatiek XSLWeb application, specifically affecting versions up to and including 4.2.0.

The core technical flaw resides in the unzip function of the XPath extension library, specifically within the ZipUtils.unzipStream() method. This function is responsible for extracting files from ZIP archives provided by the user. The vulnerability arises because the application fails to properly sanitize or validate the file paths contained within the ZIP archive entries before writing them to the filesystem.

Specifically, the implementation lacks a check to ensure that the resolved destination path remains within the intended extraction directory. An attacker can craft a ZIP archive containing entries with:
1. Relative path traversal sequences (e.g., ../../etc/passwd or ../../../webapp/WEB-INF/web.xml).
2. Absolute paths (e.g., /var/www/html/shell.jsp), which some unzip implementations may process if not explicitly stripped.

Because the application runs with sufficient privileges to write to the web application directory, an attacker can overwrite critical files, such as XSLT stylesheets or JSP/Servlet configuration files, with malicious content. This leads directly to Remote Code Execution (RCE).

CVSS 4.0 Vector Analysis:

  • AV:N (Network): Exploitable remotely.

  • AC:H (High Complexity): Requires crafting a specific ZIP structure with valid traversal paths that bypass any existing (but insufficient) filters.

  • AT:P (Privileged User Required for Attack): The vector indicates that the attacker must have some level of privilege or access to trigger the unzip function (e.g., authenticated upload endpoint or a specific API call that processes archives). Note: While PR:N is listed in the vector string provided, the description implies an interaction with the unzip function which is typically not exposed to unauthenticated users in standard XSLWeb deployments. However, strictly following the provided vector PR:N, we assume the endpoint is accessible without authentication, or the "Privileged" aspect refers to the target system's context. Given the PR:N in the vector, we will treat this as unauthenticated exploitation for the worst-case scenario, but note that real-world deployment might restrict this to authenticated users.*
  • UI:N (No User Interaction): No victim action required.

  • VC:H, VI:H, VA:H: High impact on Confidentiality, Integrity, and Availability of the vulnerable system.
  • ⚡ Attack Chain

    1. Discovery & Reconnaissance

  • Fingerprinting: The attacker identifies the target as running Armatiek XSLWeb. This can be done by:
  • * Checking HTTP headers for Server: XSLWeb or specific error pages. * Looking for default paths like /xslweb/ or /admin/. * Using tools like whatweb or nmap with NSE scripts to detect the service.
  • Version Verification: The attacker confirms the version is ≤ 4.2.0. This might be done by:
  • * Checking the X-Powered-By header. * Accessing a version file if exposed (e.g., /version.txt). * Observing specific UI elements or API responses unique to older versions.

    2. Exploitation

    The attacker crafts a malicious ZIP archive. The ZIP file contains a file entry with a path that traverses out of the expected extraction directory and targets a writable location within the web root.

    Illustrative Payload Construction:
    The attacker creates a ZIP file named malicious.zip containing a single file.

  • Entry Name in ZIP: ../../../webapp/WEB-INF/webshell.jsp

  • File Content: A simple JSP webshell:
  • <%
        Runtime.getRuntime().exec(request.getParameter("cmd"));
        %>

    Exploitation Mechanism:
    The attacker sends this ZIP file to the vulnerable endpoint that triggers ZipUtils.unzipStream(). Since the exact endpoint URI is not specified in the CVE description, the following is an illustrative example of how such an endpoint might be structured in a typical XSLWeb application (e.g., an upload or import function):

    # Illustrative curl command
    # Assumption: The endpoint /xslweb/import accepts a ZIP file via multipart/form-data
    # The parameter name 'file' is illustrative.
    
    curl -X POST "http://target.com/xslweb/import" \
      -F "[email protected]" \
      -H "Content-Type: multipart/form-data"

    Technical Breakdown of the Exploit:
    1. The server receives malicious.zip.
    2. The application calls ZipUtils.unzipStream() to extract the contents.
    3. The unzip routine reads the entry name: ../../../webapp/WEB-INF/webshell.jsp.
    4. Due to the lack of path sanitization, the routine resolves this path relative to the current working directory or the intended extraction directory.
    5. The resolved path points to /var/www/html/webapp/WEB-INF/webshell.jsp (assuming the web root is /var/www/html).
    6. The file is written to this location, overwriting or creating the JSP file.

    3. Post-Exploitation

    1. Webshell Access: The attacker accesses the newly created webshell:
    curl "http://target.com/xslweb/WEB-INF/webshell.jsp?cmd=whoami"

    Note: Depending on the servlet container configuration, files in WEB-INF might not be directly accessible via URL. If so, the attacker would target a different path, such as ../../../webapp/shell.jsp (outside WEB-INF), which is more likely to be directly executable.

    2. Command Execution: The attacker executes arbitrary system commands via the cmd parameter.
    3. Privilege Escalation: Depending on the user account running the web server (e.g., www-data), the attacker may attempt to escalate privileges using local exploits or by modifying system files.
    4. Persistence: The attacker can install additional backdoors, modify XSLT stylesheets to inject malicious code into all responses, or exfiltrate sensitive data.

    🌍 Real World Impact

  • Confidentiality (High): The attacker can read any file accessible by the web server user, including configuration files, database credentials, and user data.
  • Integrity (High): The attacker can modify any file in the web root, including XSLT stylesheets, JSP files, and configuration files. This allows for persistent compromise and manipulation of application behavior.
  • Availability (High): The attacker can delete critical files, corrupt the database, or cause the application to crash, leading to a denial of service.
  • Practical Consequences:

  • Full System Compromise: In many environments, the web server user has sufficient privileges to access sensitive data or execute further attacks.

  • Data Breach: Sensitive customer data, financial records, or intellectual property can be exfiltrated.

  • Business Disruption: The application may become unusable or require a full rebuild to ensure no backdoors remain.
  • 🛡️ Remediation & Mitigation

    1. Upgrade

  • Affected Versions: Armatiek XSLWeb through 4.2.0.
  • Recommendation: Upgrade to the latest version of Armatiek XSLWeb where this vulnerability has been patched. Check the vendor's security advisory for the specific fixed version. If no fixed version is available, consider migrating to a different XSLT processing solution.
  • 2. Workarounds

  • Disable the Vulnerable Function: If possible, disable the unzip XPath extension function or the specific endpoint that triggers it. This can be done by modifying the application configuration or removing the relevant JAR/class files if the application allows.
  • WAF Rules: Implement Web Application Firewall (WAF) rules to detect and block ZIP files containing path traversal sequences.
  • * ModSecurity Rule Example:
    SecRule REQUEST_FILENAME "@rx \.zip$" \
                "id:100001,phase:2,deny,status:403,msg:'Blocked ZIP upload with potential path traversal',log"
    
            SecRule FILES "@rx \.\./" \
                "id:100002,phase:2,deny,status:403,msg:'Blocked file with path traversal in name',log"

    Note: WAF rules are not a complete solution and should be used in conjunction with other mitigations.*

  • File System Permissions: Ensure the web server user has the minimum necessary permissions. Restrict write access to the web root directory. Use a dedicated user for the web server that does not have write access to sensitive directories.
  • 3. Detection

  • Web Server Logs: Look for POST requests to endpoints that handle file uploads, especially those with .zip files.
  • * Log Pattern: POST /xslweb/import HTTP/1.1 with Content-Type: multipart/form-data.
  • File System Monitoring: Monitor the web root directory for unexpected file creation or modification, especially files with extensions like .jsp, .php, .asp, or .war.
  • * Tool: Use auditd (Linux) or Sysmon (Windows) to monitor file creation events. * Example Audit Rule (Linux):
    -w /var/www/html/ -p wa -k webshell_creation
  • Indicators of Compromise (IoCs):
  • * New JSP/PHP files in the web root that were not part of the original application. * Unusual outbound network connections from the web server. * Modified XSLT stylesheets containing suspicious code.

    ⚠️ Urgency

  • CVSS Score: 9.2 (Critical)
  • CISA KEV: No (Not currently listed in the Known Exploited Vulnerabilities catalog, but this does not reduce the risk).
  • Exploit Complexity: High (requires crafting a specific ZIP file), but the impact is severe (RCE).
  • Patching Priority: Immediate. Given the critical nature of the vulnerability and the potential for remote code execution, this should be treated as a top-priority patch. If an upgrade is not immediately possible, apply the workarounds (disable the function, WAF rules) and monitor closely for signs of exploitation.
[🤖 CVE Professor AI Security Engine]
Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="Armatiek XSLWeb"
PoC & Exploit Intelligence (GitHub)
Technical reference / advisory repository for CVE-2026-139872
Technical reference / advisory repository for CVE-2026-139872
Technical reference / advisory repository for CVE-2026-139872
CVSS Score
9.2 / 10 · CVSS HIGH
Weakness Types (CWE)
Affected Products (1)
Armatiek:XSLWeb
Related CVEs
9.9
CVE-2026-77526
FacturaScripts is an open source accounting and invoicing software. From version 2025 to before version 2026.3
9.8
CVE-2026-145055
PraisonAI pip praisonai before 4.8.0, praisonaiagents and npm praisonai before 1.8.0, and praisonai-bot, prais
9.4
CVE-2026-129109
Calico installations managed by the Tigera Operator install a FlexVolume driver (nodeagent~uds/uds) on every L
9.4
CVE-2026-64883
Path traversal in the WebDAV interface (DotWebdavHelper and the WebDAV temporary-file COPY and MOVE handling)
8.6
CVE-2026-115524
Path traversal in the push-publish bundle receiver (BundlePublisherResource, /api/bundlePublisher/publish) in
8.3
CVE-2026-144679
Thanos through 0.42.5 contains a path traversal vulnerability in Receive that allows unauthenticated remote-wr
8.3
CVE-2026-118326
Improper limitation of a pathname to a restricted directory in attendance photo upload workflow in ZKTeco BioT