CVE-2026-57825 Path traversal in opam
Attackers can bypass sandbox protections in the opam package manager via symlink mishandling, potentially executing arbitrary code.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-57825?
CVE-2026-57825 is a medium-severity path traversal vulnerability in OCaml opam, published on 9 Sep 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
In the opam package before 2.5.2 for OCaml, the sandbox protection mechanism can be bypassed because symlinks are mishandled during use of .install files.
Weakness: CWE-61
Which versions are affected by CVE-2026-57825?
Linux distribution packages (1)
opam openSUSE:Tumbleweed | All versions | 2.5.2-1.2 |
How do I fix CVE-2026-57825?
Upgrade to a fixed version.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2026-57825 being exploited?
There is no known exploitation of CVE-2026-57825 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2026-57825, GHSA-rwq5-7hr3-r2qf, OSEC-2026-10, UBUNTU-CVE-2026-57825, openSUSE-SU-2026:11296-1.