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
The vulnerability CVE-2026-41082 affects OCaml opam prior to version 2.5.1. The issue arises because the .install field in opam packages can include '../' sequences, enabling path traversal to parent directories. This flaw can be exploited to write files outside the designated installation directory, potentially leading to integrity and availability impacts. The CVSS 3.1 base score is 7.3, indicating a high severity with local attack vector, low attack complexity, no privileges required, no user interaction, and impacts including low confidentiality, high integrity, and low availability.
Potential Impact
An attacker who can control the .install field in an opam package can cause files to be written outside the intended directory structure, potentially overwriting or creating files in parent directories. This can compromise system integrity and availability. Confidentiality impact is low as the vulnerability primarily concerns file write paths.
Mitigation Recommendations
No official fix or patch is explicitly stated in the vendor advisory. Patch status is not yet confirmed — check the vendor advisory at https://access.redhat.com/security/cve/CVE-2026-41082 for current remediation guidance. Until a fix is available, avoid installing untrusted opam packages or review .install fields for path traversal sequences before installation.
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
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability CVE-2026-41082 affects OCaml opam prior to version 2.5.1. The issue arises because the .install field in opam packages can include '../' sequences, enabling path traversal to parent directories. This flaw can be exploited to write files outside the designated installation directory, potentially leading to integrity and availability impacts. The CVSS 3.1 base score is 7.3, indicating a high severity with local attack vector, low attack complexity, no privileges required, no user interaction, and impacts including low confidentiality, high integrity, and low availability.
Potential Impact
An attacker who can control the .install field in an opam package can cause files to be written outside the intended directory structure, potentially overwriting or creating files in parent directories. This can compromise system integrity and availability. Confidentiality impact is low as the vulnerability primarily concerns file write paths.
Mitigation Recommendations
No official fix or patch is explicitly stated in the vendor advisory. Patch status is not yet confirmed — check the vendor advisory at https://access.redhat.com/security/cve/CVE-2026-41082 for current remediation guidance. Until a fix is available, avoid installing untrusted opam packages or review .install fields for path traversal sequences before installation.
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
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-41082","vendor":"Red Hat"}]
Threat ID: 69e1241082d89c981fafb517
Added to database: 04/16/2026, 18:01:52 UTC
Last enriched: 07/16/2026, 08:59:34 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 127
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.