Description (CNA)
In OCaml opam before 2.5.1, a .install field containing a destination filepath can use ../ to reach a parent directory.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| OCaml / opam | affected 0 before 2.5.1 |
CWE
CWE-24
References
- https://github.com/ocaml/opam/releases/tag/2.5.1
- https://github.com/ocaml/opam/pull/6897
- https://osv.dev/vulnerability/OSEC-2026-03
ADP enrichment
No English description supplied.
No English description supplied.
A flaw was found in OCaml opam. A malicious package containing a crafted .install field with directory traversal sequences allows an attacker to write files to arbitrary locations, potentially overwriting system files and causing arbitrary code execution.