Skip to content
Path traversal Advisory Intermediate CVE-2024-25125

GHSL-2023-221: Path traversal vulnerability in digdag - CVE-2024-25125

The digdag workload automation system, when configured to store log files locally, allowed an attacker to supply an absolute path in the file name parameter of the log download API, bypassing typical path traversal filters. This could lead to information disclosure by reading arbitrary files on the server.

p Follow

Originally disclosed on GitHub Security Lab

Treasure Data’s digdag workload automation system is susceptible to a path traversal vulnerability if it’s configured to store log files locally.

p-, on GitHub Security Lab

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The application passed a user-controlled file name directly to Java's Path.resolve method without validating that it was a relative path, and an absolute path overrides the base directory.

Impact

This issue may lead to Information Disclosure.

What the attacker needed

Digdag configured to store logs locally; access to the log download API

The fix

The vulnerability was fixed in version v0.10.5.1.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

When a web application lets you download a file, it usually takes a file name from the URL and looks for that file in a specific folder. If the application does not check the name properly, you can give it a full path to a file elsewhere on the computer, like a password file. This report shows that digdag had this flaw when it stored logs locally, so an attacker could read files they should not see.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

More by p

View all

49 more disclosed reports, best first.

More from GitHub Security Lab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.