CVE-2024-25125
Java vulnerability analysis and mitigation

Overview

Treasure Data's digdag workload automation system version 0.10.5 and earlier is susceptible to a path traversal vulnerability when configured to store log files locally. The vulnerability was discovered on February 13, 2024, and was assigned CVE-2024-25125. The issue affects the digdag workload automation system, which is an open-source tool used to build, run, schedule, and monitor complex pipelines of tasks across various platforms (GitHub Advisory, NVD).

Technical details

The vulnerability stems from improper path validation in the LocalFileLogServerFactory class when handling the filename parameter from the API method getFile. When digdag is configured to store log files locally using the --task-log command line argument, an attacker can provide an absolute path in URL-encoded form (such as %2fetc%2fpasswd) to bypass typical servlet filters. The resolve(Path other) and resolve(String other) methods of java.nio.file.Path ignore the original path if 'other' is an absolute Path. The vulnerability has been assigned a CVSS v3.1 base score of 5.3 (Medium) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N (Security Lab).

Impact

The vulnerability can lead to information disclosure by allowing unauthorized access to files outside the intended directory structure. An attacker could potentially read sensitive files from the system when the digdag server is configured to store log files locally (Security Lab).

Mitigation and workarounds

The vulnerability has been patched in version 0.10.5.1. Users are strongly advised to upgrade to this version. There are no known workarounds for this vulnerability (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management