CVE-2026-41082
published high CVSS 3.1 · 7.3ocaml-opam: path traversal via the .install field
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| OCaml | — | opam0 to < 2.5.1 · Other versions: unaffected | Affected | Not stated | mitre |
| Red Hat Enterprise Linux | 10 | ocaml-dune | Affected | Not stated | redhat-SADP |
| Debian | bookworm | opam | Advisory build | 2.1.2-1+deb12u1 | DSA-6216-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | opamaarch64 | Advisory build | 2.5.2-bp160.1.1 | OPENSUSE-SU-2026:21380-1 |
| Ubuntu | focal | opam | Advisory build | 2.0.5-1ubuntu1+esm1 | USN-8256-1 |
| Debian | bullseye | opam | Advisory build | 2.0.8-1+deb11u1 | DLA-4541-1 |
| Debian | trixie | opam | Advisory build | 2.3.0-1+deb13u1 | DSA-6216-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | opamppc64le | Advisory build | 2.5.2-bp160.1.1 | OPENSUSE-SU-2026:21380-1 |
Show 31 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Leap-16.0 | opams390x | Advisory build | 2.5.2-bp160.1.1 | OPENSUSE-SU-2026:21380-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | opamx86_64 | Advisory build | 2.5.2-bp160.1.1 | OPENSUSE-SU-2026:21380-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | opamaarch64 | Advisory build | 2.5.1-1.1 | OPENSUSE-SU-2026:10568-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | opamppc64le | Advisory build | 2.5.1-1.1 | OPENSUSE-SU-2026:10568-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | opams390x | Advisory build | 2.5.1-1.1 | OPENSUSE-SU-2026:10568-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | opamx86_64 | Advisory build | 2.5.1-1.1 | OPENSUSE-SU-2026:10568-1 |
| Ubuntu | jammy | opam | Advisory build | 2.1.2-1+deb12u1build0.22.04.1 | USN-8256-1 |
| Ubuntu | noble | opam | Advisory build | 2.1.5-1ubuntu0.1~esm2 | USN-8256-1 |
| Ubuntu | questing | opam | Advisory build | 2.3.0-1+deb13u1build0.25.10.1 | USN-8256-1 |
| Ubuntu | resolute | opam | Advisory build | 2.5.0-1ubuntu0.1~esm1 | USN-8256-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | opam-develaarch64 | Advisory build | 2.5.2-bp160.1.1 | OPENSUSE-SU-2026:21380-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | opam-develppc64le | Advisory build | 2.5.2-bp160.1.1 | OPENSUSE-SU-2026:21380-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | opam-devels390x | Advisory build | 2.5.2-bp160.1.1 | OPENSUSE-SU-2026:21380-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | opam-develx86_64 | Advisory build | 2.5.2-bp160.1.1 | OPENSUSE-SU-2026:21380-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | opam-installeraarch64 | Advisory build | 2.5.2-bp160.1.1 | OPENSUSE-SU-2026:21380-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | opam-installerppc64le | Advisory build | 2.5.2-bp160.1.1 | OPENSUSE-SU-2026:21380-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | opam-installers390x | Advisory build | 2.5.2-bp160.1.1 | OPENSUSE-SU-2026:21380-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | opam-installerx86_64 | Advisory build | 2.5.2-bp160.1.1 | OPENSUSE-SU-2026:21380-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | opam-develaarch64 | Advisory build | 2.5.1-1.1 | OPENSUSE-SU-2026:10568-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | opam-develppc64le | Advisory build | 2.5.1-1.1 | OPENSUSE-SU-2026:10568-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | opam-devels390x | Advisory build | 2.5.1-1.1 | OPENSUSE-SU-2026:10568-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | opam-develx86_64 | Advisory build | 2.5.1-1.1 | OPENSUSE-SU-2026:10568-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | opam-installeraarch64 | Advisory build | 2.5.1-1.1 | OPENSUSE-SU-2026:10568-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | opam-installerppc64le | Advisory build | 2.5.1-1.1 | OPENSUSE-SU-2026:10568-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | opam-installers390x | Advisory build | 2.5.1-1.1 | OPENSUSE-SU-2026:10568-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | opam-installerx86_64 | Advisory build | 2.5.1-1.1 | OPENSUSE-SU-2026:10568-1 |
| Ubuntu | focal | opam-installer | Advisory build | 2.0.5-1ubuntu1+esm1 | USN-8256-1 |
| Ubuntu | jammy | opam-installer | Advisory build | 2.1.2-1+deb12u1build0.22.04.1 | USN-8256-1 |
| Ubuntu | noble | opam-installer | Advisory build | 2.1.5-1ubuntu0.1~esm2 | USN-8256-1 |
| Ubuntu | questing | opam-installer | Advisory build | 2.3.0-1+deb13u1build0.25.10.1 | USN-8256-1 |
| Ubuntu | resolute | opam-installer | Advisory build | 2.5.0-1ubuntu0.1~esm1 | USN-8256-1 |
Description
In OCaml opam before 2.5.1, a .install field containing a destination filepath can use ../ to reach a parent directory.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.3 / 10
- Severity
- high
- Provider
- mitre · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.1 | high | redhat-SADP · adp | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| OCaml | opam | 0 to < 2.5.1 (affected · semver)Default: unaffected | mitre · cna |
| Red Hat | Red Hat Enterprise Linux 10 | Default: affected | redhat-SADP · adp |
Weaknesses
2- CWE-24 CWE-24 Path Traversal: '../filedir'
- CWE-24 Path Traversal: '../filedir'
References
7- https://access.redhat.com/security/cve/CVE-2026-41082
- RHBZ#2459003 https://bugzilla.redhat.com/show_bug.cgi?id=2459003
- https://github.com/ocaml/opam/pull/6897
- https://github.com/ocaml/opam/releases/tag/2.5.1
- https://lists.debian.org/debian-lts-announce/2026/04/msg00021.html
- https://osv.dev/vulnerability/OSEC-2026-03
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41082.json
Provider assertions
4mitre · cna
redhat-SADP · adp
ocaml-opam: path traversal via the .install field
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 48210d08c9dc0918dc9bad6cbbc4d76352ac5116323e4c01403b4ebefb572992
- Ingested
- 23 Sep 2026, 09:13:40 UTC
- Source record
- Official CVE record