CVE-2026-41082
Description
In OCaml opam before 2.5.1, a .install field containing a destination filepath can use ../ to reach a parent directory.
Description as published by the source, in English.
Key facts
- Published
- 2026-04-16
- Last modified
- 2026-10-26
- Assigned by
- cve@mitre.org
- CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H- Scored by
- nvd@nist.gov (NVD Primary)
- Probability of exploitation
-
0.2 %
higher than 11 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Yes, see references
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Debian | Debian Linux | 11.0 | Affected |
| Ocaml | Opam | < 2.5.1 | Affected |
| Redhat | Enterprise Linux | 10.0 | Affected |
Weakness type
-
CWE-22: Improper Limitation of a Pathname to a Restricted Directory
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special ele…
-
CWE-24: Path Traversal: '../filedir'
The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize "../" sequences that can resolve to a location that is outside of that directory.
References
- https://github.com/ocaml/opam/pull/6897
- https://github.com/ocaml/opam/releases/tag/2.5.1
- https://osv.dev/vulnerability/OSEC-2026-03
- https://lists.debian.org/debian-lts-announce/2026/04/msg00021.html
- https://access.redhat.com/security/cve/CVE-2026-41082
- https://bugzilla.redhat.com/show_bug.cgi?id=2459003
- https://osv.dev/vulnerability/OSEC-2026-03
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41082.json
Related at Berigo
Articles
-
An eighteen-year-old Linux kernel flaw hands ordinary users root
Same product
2026-08-08
Tencent Zhuque Lab has found a flaw in the SCTP part of the Linux kernel that has been there since 2008. An ordinary user can use it to gain root, an…
-
Bad Epoll grants root access in the Linux kernel
Same product
2026-07-03
CVE-2026-46242 is a use-after-free in the Linux kernel's epoll that lets an unprivileged process gain root on servers, desktops and Android devices.
-
Red Hat npm Miasma credential-stealing campaign
Same product
2026-06-05
32 npm packages under @redhat-cloud-services were modified with malware that steals cloud, SSH and AI tool credentials and spreads to further package…
-
Compromised npm packages steal developer and CI/CD secrets
Same product
2026-06-01
A new supply chain campaign has compromised npm packages under the @redhat-cloud-services namespace, running at install time to harvest secrets.
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.