CVE-2025-55345 Unsafe symlink following in restricted workspace-write sandbox leads to RCE

High 8.8 Published Updated

Attackers can achieve remote code execution and arbitrary file overwrites by exploiting unsafe symlink following in the Codex CLI workspace-write sandbox.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2025-55345?

CVE-2025-55345 is a high-severity path traversal vulnerability, published on 13 Aug 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Using Codex CLI in workspace-write mode inside a malicious context (repo, directory, etc) could lead to arbitrary file overwrite and potentially remote code execution due to symlinks being followed outside the allowed current working directory.

Weakness: CWE-61

Which versions are affected by CVE-2025-55345?

How do I fix CVE-2025-55345?

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

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2025-55345 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-55345 exists.

Sources

Also known as GHSA-698g-97rr-xgjf.

Is CVE-2025-55345 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free