CVE-2026-41082: CWE-24 Path Traversal: '../filedir' in OCaml opam
In OCaml opam before 2.5.1, a .install field containing a destination filepath can use ../ to reach a parent directory.
AI Analysis
Technical Summary
This vulnerability in OCaml opam prior to version 2.5.1 involves improper validation of the .install field's destination filepath, which can include '../' sequences to traverse to parent directories. This CWE-24 path traversal flaw could allow an attacker with local access to write files outside the intended directory structure, potentially impacting confidentiality, integrity, and availability. The CVSS 3.1 vector indicates local attack vector, low complexity, no privileges required, no user interaction, unchanged scope, with low confidentiality impact, high integrity impact, and low availability impact.
Potential Impact
An attacker with local access can exploit this vulnerability to write files outside the designated directory by using '../' in the .install field. This can lead to unauthorized modification of files, potentially compromising system integrity and availability. Confidentiality impact is low, but integrity impact is high due to possible unauthorized file writes. Availability impact is low. No known exploits have been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid using untrusted .install files or restrict local access to trusted users only. Monitor official OCaml opam channels for updates regarding a patch or mitigation.
CVE-2026-41082: CWE-24 Path Traversal: '../filedir' in OCaml opam
Description
In OCaml opam before 2.5.1, a .install field containing a destination filepath can use ../ to reach a parent directory.
CVSS v3.1
Score 7.3high
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability in OCaml opam prior to version 2.5.1 involves improper validation of the .install field's destination filepath, which can include '../' sequences to traverse to parent directories. This CWE-24 path traversal flaw could allow an attacker with local access to write files outside the intended directory structure, potentially impacting confidentiality, integrity, and availability. The CVSS 3.1 vector indicates local attack vector, low complexity, no privileges required, no user interaction, unchanged scope, with low confidentiality impact, high integrity impact, and low availability impact.
Potential Impact
An attacker with local access can exploit this vulnerability to write files outside the designated directory by using '../' in the .install field. This can lead to unauthorized modification of files, potentially compromising system integrity and availability. Confidentiality impact is low, but integrity impact is high due to possible unauthorized file writes. Availability impact is low. No known exploits have been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid using untrusted .install files or restrict local access to trusted users only. Monitor official OCaml opam channels for updates regarding a patch or mitigation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- mitre
- Date Reserved
- 2026-04-16T17:32:39.584Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69e1241082d89c981fafb517
Added to database: 4/16/2026, 6:01:52 PM
Last enriched: 4/24/2026, 4:00:28 PM
Last updated: 6/2/2026, 6:51:45 AM
Views: 71
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.