Skip to content

CVE-2026-41082 ocaml-opam: path traversal via the .install field

HighCVSS 7.8 EPSS 0.21%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial
Technology
UbuntuDebianRed Hat

Description

In OCaml opam before 2.5.1, a .install field containing a destination filepath can use ../ to reach a parent directory.

Upgrade path

12 packages: 8 fixed, 3 with no fix yet.

PackageAffectedFixed inStatus
redhat enterprise linux = 10.0; All versions No fix listed No fix yet
redhat/ocaml-dune(Red Hat enterprise_linux 10) All versions No fix listed No fix yet
ubuntu/opam(Ubuntu 26.10) All versions No fix listed No fix yet
debian/opam(Debian 12) < 2.1.2-1+deb12u1; = 2.1.2-1 2.1.2-1+deb12u1 Fixed
debian/opam(Debian 13) < 2.3.0-1+deb13u1; = 2.3.0-1 2.3.0-1+deb13u1 Fixed
debian/opam(Debian 14) < 2.5.1-1; = 2.3.0-1; = 2.4.1-1; = 2.5.0-1 2.5.1-1 Fixed
ocaml opam < 2.5.1 2.5.1 Fixed
opam-format < 2.5.1 2.5.1 Fixed
ubuntu/opam(Ubuntu 22.04) < 2.1.2-1+deb12u1build0.22.04.1 2.1.2-1+deb12u1build0.22.04.1 Fixed
ubuntu/opam(Ubuntu 24.04) < 2.1.5-1ubuntu0.1~esm2 2.1.5-1ubuntu0.1~esm2 Fixed
ubuntu/opam(Ubuntu 26.04) < 2.5.0-1ubuntu0.1~esm1 2.5.0-1ubuntu0.1~esm1 Fixed
debian linux = 11.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
opam-format < 2.5.1 2.5.1
redhat enterprise linux All versions No fix listed
debian/opam(Debian:12) < 2.1.2-1+deb12u1 2.1.2-1+deb12u1
debian/opam(Debian:14) < 2.5.1-1 2.5.1-1
debian/opam(Debian:13) < 2.3.0-1+deb13u1 2.3.0-1+deb13u1
debian/opam(Debian:12) = 2.1.2-1 No fix listed
debian/opam(Debian:13) = 2.3.0-1 No fix listed
debian/opam(Debian:14) = 2.3.0-1 No fix listed
debian/opam(Debian:14) = 2.4.1-1 No fix listed
debian/opam(Debian:14) = 2.5.0-1 No fix listed
redhat/ocaml-dune(Red Hat:enterprise_linux:10) All versions No fix listed
ubuntu/opam(Ubuntu:22.04) < 2.1.2-1+deb12u1build0.22.04.1 2.1.2-1+deb12u1build0.22.04.1
ubuntu/opam(Ubuntu:24.04) < 2.1.5-1ubuntu0.1~esm2 2.1.5-1ubuntu0.1~esm2
ubuntu/opam(Ubuntu:26.04) < 2.5.0-1ubuntu0.1~esm1 2.5.0-1ubuntu0.1~esm1
ubuntu/opam(Ubuntu:26.10) All versions No fix listed
ocaml opam < 2.5.1 2.5.1
debian linux = 11.0 No fix listed
redhat enterprise linux = 10.0 No fix listed

References