Skip to main content
Vulnerability Database/CVE-2025-13791

CVE-2025-13791: Scada-LTS Path Traversal Vulnerability

CVE-2025-13791 is a path traversal vulnerability in Scada-LTS affecting versions up to 2.7.8.1, allowing remote attackers to access unauthorized files. This article covers technical details, impact analysis, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2025-13791 Overview

CVE-2025-13791 is a path traversal vulnerability in Scada-LTS versions up to 2.7.8.1. The flaw resides in the Common.getHomeDir function within br/org/scadabr/vo/exporter/ZIPProjectManager.java, part of the Project Import component. An authenticated remote attacker can craft a malicious ZIP archive containing entries with directory traversal sequences, which the application extracts outside the intended project directory. This class of flaw is commonly known as Zip Slip and maps to CWE-22. The vendor was notified prior to public disclosure but did not respond, and a public proof-of-concept exists.

Critical Impact

An authenticated attacker can write arbitrary files to locations outside the project directory on the Scada-LTS host, enabling tampering with application files and potentially leading to broader compromise of the SCADA environment.

Affected Products

  • Scada-LTS 2.0 through 2.7.8.1
  • Component: Project Import (ZIPProjectManager.java)
  • Function: Common.getHomeDir

Discovery Timeline

  • 2025-11-30 - CVE-2025-13791 published to the National Vulnerability Database
  • 2026-10-18 - Last updated in NVD database

Technical Details for CVE-2025-13791

Vulnerability Analysis

Scada-LTS is an open-source Supervisory Control and Data Acquisition (SCADA) platform used to monitor and control industrial processes. The Project Import feature allows users to upload ZIP archives that package SCADA project assets. The vulnerable code in br/org/scadabr/vo/exporter/ZIPProjectManager.java extracts archive entries without validating that each entry's resolved path remains within the directory returned by Common.getHomeDir.

Because archive entries can contain relative segments such as ../, the extraction routine writes files to attacker-chosen locations on the host filesystem. The vulnerability requires low-privileged authenticated access and no user interaction. Impact is limited to the privileges of the Scada-LTS process, but file-write primitives in SCADA environments can disrupt operational monitoring and configuration integrity.

Root Cause

The root cause is missing canonicalization and boundary enforcement during ZIP extraction. The code resolves each entry name relative to the import home directory but does not verify that the canonical destination path remains inside that base directory. This is the standard Zip Slip pattern cataloged under CWE-22: Improper Limitation of a Pathname to a Restricted Directory.

Attack Vector

An authenticated user with permission to import projects uploads a crafted ZIP archive. The archive contains one or more entries whose names include traversal sequences, for example ../../../../etc/scada-lts/overwrite.properties. When Scada-LTS extracts the archive, the traversal resolves outside the project home directory and writes attacker-controlled content to that location. Full technical details and a proof-of-concept are available in the GitHub Zip Slip report.

Detection Methods for CVE-2025-13791

Indicators of Compromise

  • Unexpected files created outside the configured Scada-LTS project import directory, especially in system or configuration paths.
  • ZIP uploads whose entries contain ../ or absolute path prefixes recorded in application or web server logs.
  • Modified timestamps on Scada-LTS binaries, configuration files, or startup scripts without a corresponding administrative change.

Detection Strategies

  • Inspect application logs for calls to the Project Import endpoint followed by file-write activity in directories outside the project home.
  • Scan uploaded ZIP archives at the web proxy or WAF layer for entries containing traversal sequences before they reach the application.
  • Correlate authentication events for low-privileged accounts with Project Import actions to spot abuse of valid credentials.

Monitoring Recommendations

  • Enable filesystem auditing on the Scada-LTS installation directory, system configuration paths, and the operating user's home directory.
  • Alert on process writes by the Scada-LTS Java process to paths outside its documented working directories.
  • Monitor for new or modified cron jobs, systemd units, or web-accessible scripts following a project import event.

How to Mitigate CVE-2025-13791

Immediate Actions Required

  • Restrict Project Import permissions to a minimal set of trusted administrators until a patched release is available.
  • Place Scada-LTS behind an authenticated reverse proxy and block unauthenticated access to the import endpoints.
  • Review audit logs for any Project Import activity since deployment and verify filesystem integrity of the Scada-LTS host.

Patch Information

At the time of publication the vendor has not released a fix and did not respond to the disclosure. Monitor the Scada-LTS GitHub repository for new releases addressing ZIPProjectManager.java and apply updates once published. Track the vulnerability record at VulDB #333795 for status changes.

Workarounds

  • Disable the Project Import feature or remove web access to the associated endpoint until a patched version is deployed.
  • Run Scada-LTS as a non-privileged service account with filesystem permissions limited to its own installation and data directories.
  • Deploy a web application firewall rule that inspects multipart ZIP uploads and rejects archives containing entries with .., backslashes, or absolute paths.
  • Isolate the Scada-LTS host on a segmented operational technology network with egress filtering to limit the impact of file-write primitives.
bash
# Example WAF-style check: reject ZIP uploads containing traversal entries
unzip -l uploaded.zip | awk '{print $4}' | grep -E '(^/|\.\./|\\)' \
  && echo "REJECT: traversal entry detected" \
  || echo "ACCEPT: no traversal entries"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.