# CVE-2025-24888: Path traversal in SecureDrop Client API.download_reply()

> A compromised SecureDrop Server can achieve code execution on the journalist's client VM via path traversal in reply downloads.

- **Severity:** High 8.1 (`CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 13 Feb 2025
- **Updated:** 13 Feb 2025
- **Also known as:** GHSA-6c3p-chq6-q3j2

## What is CVE-2025-24888?

CVE-2025-24888 is a high-severity path traversal vulnerability in freedomofpress securedrop-client, published on 13 Feb 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

The SecureDrop Client is a desktop application for journalists to communicate with sources and work with submissions on the SecureDrop Workstation. Prior to version 0.14.1, a malicious SecureDrop Server could obtain code execution on the SecureDrop Client virtual machine (`sd-app`). SecureDrop Server itself has multiple layers of built-in hardening, and is a dedicated physical machine exposed on the internet only via Tor hidden services for the Source and Journalist interfaces, and optionally via remote SSH access over another Tor hidden service. A newsroom's SecureDrop Workstation communicates only with its own dedicated SecureDrop Server.

The SecureDrop Client runs in a dedicated Qubes virtual machine, named `sd-app`, as part of the SecureDrop Workstation. The private OpenPGP key used to decrypt submissions and replies is stored in a separate virtual machine and never accessed directly. The vulnerability lies in the code responsible for downloading replies. The filename of the reply is obtained from the `Content-Disposition` HTTP header and used to write the encrypted reply on disk. Note that filenames are generated and sanitized server-side, and files are downloaded in an encrypted format, so a remote attacker who has not achieved server compromise, such as one posing as a source, could not craft the HTTP response necessary for this attack.

While the filename is later checked to guard against path traversal before being moved into the Client’s data storage directory, the file has already been written to a potentially arbitrary location. In this case, `safe_move()` would detect the path traversal and fail, leaving the original downloaded file in the attacker-chosen directory. Code execution can be gained by writing an autostart file in `/home/user/.config/autostart/`.

Version 0.14.1 fixes the issue. As of time of publication, there is no known evidence of exploitation in the wild. This attack requires a previously compromised SecureDrop Server.

Weakness: CWE-22 (Improper Limitation of a Pathname to a Restricted Directory)

## Which versions are affected by CVE-2025-24888?


## How do I fix CVE-2025-24888?

No fix has been published for CVE-2025-24888 yet. Limit exposure of the affected software until one is available.

## Is CVE-2025-24888 being exploited?

There is no known exploitation of CVE-2025-24888 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2025-24888 and fix it if it is affected.

What it is: CVE-2025-24888 is a high-severity path traversal vulnerability in freedomofpress securedrop-client, published on 13 Feb 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2025-24888 in the wild and no public exploit code.

Affected product: freedomofpress securedrop-client. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2025-24888/ (Markdown: https://insights.sbomify.com/CVE-2025-24888/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2025-24888
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2025-24888
- OSV: https://osv.dev/vulnerability/CVE-2025-24888

---
From sbomify Insights: https://insights.sbomify.com/CVE-2025-24888/
Summaries are generated and may contain mistakes; the official description above is the record.
