CVE-2026-41082: CWE-24 Path Traversal: '../filedir' in OCaml opam
CVE-2026-41082 is a path traversal vulnerability in OCaml opam versions before 2. 5. 1. The issue arises from the . install field allowing use of '.. /' sequences to specify destination file paths that can escape the intended directory and reach parent directories. This can lead to unauthorized file writes outside the expected installation directory. The vulnerability has a high severity with a CVSS score of 7. 3. No official patch or remediation guidance is currently confirmed from the vendor.
AI Analysis
Technical Summary
The vulnerability CVE-2026-41082 affects OCaml opam prior to version 2.5.1. It involves improper handling of the .install field in package definitions, where the use of '../' sequences in destination file paths enables path traversal. This allows an attacker to write files outside the intended directory hierarchy, potentially leading to unauthorized modification of files. The CVSS 3.1 base score is 7.3, reflecting a high severity with local attack vector, low attack complexity, no privileges required, no user interaction, and impacts on confidentiality, integrity, and availability.
Potential Impact
Successful exploitation could allow an attacker with local access to write files to arbitrary locations on the filesystem, potentially overwriting critical files or placing malicious files outside the intended directory. This can lead to partial loss of confidentiality, high integrity impact, and low availability impact. No known exploits are reported in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since the vulnerability affects versions before 2.5.1, upgrading to version 2.5.1 or later (if available) is recommended once confirmed. Until then, avoid using untrusted .install fields that contain relative path sequences. Monitor official OCaml opam channels for updates.
CVE-2026-41082: CWE-24 Path Traversal: '../filedir' in OCaml opam
Description
CVE-2026-41082 is a path traversal vulnerability in OCaml opam versions before 2. 5. 1. The issue arises from the . install field allowing use of '.. /' sequences to specify destination file paths that can escape the intended directory and reach parent directories. This can lead to unauthorized file writes outside the expected installation directory. The vulnerability has a high severity with a CVSS score of 7. 3. No official patch or remediation guidance is currently confirmed from the vendor.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability CVE-2026-41082 affects OCaml opam prior to version 2.5.1. It involves improper handling of the .install field in package definitions, where the use of '../' sequences in destination file paths enables path traversal. This allows an attacker to write files outside the intended directory hierarchy, potentially leading to unauthorized modification of files. The CVSS 3.1 base score is 7.3, reflecting a high severity with local attack vector, low attack complexity, no privileges required, no user interaction, and impacts on confidentiality, integrity, and availability.
Potential Impact
Successful exploitation could allow an attacker with local access to write files to arbitrary locations on the filesystem, potentially overwriting critical files or placing malicious files outside the intended directory. This can lead to partial loss of confidentiality, high integrity impact, and low availability impact. No known exploits are reported in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since the vulnerability affects versions before 2.5.1, upgrading to version 2.5.1 or later (if available) is recommended once confirmed. Until then, avoid using untrusted .install fields that contain relative path sequences. Monitor official OCaml opam channels for updates.
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/16/2026, 6:16:52 PM
Last updated: 4/16/2026, 8:13:26 PM
Views: 8
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.