CVE-2026-41082
Directory Traversal in OCaml opam .install Field Before
Publication date: 2026-04-16
Last updated on: 2026-04-21
Assigner: MITRE
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| ocaml | opam | to 2.5.1 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-24 | 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. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability exists in OCaml opam versions before 2.5.1. It involves the .install field, which specifies a destination filepath. The issue is that this field can include "../" sequences to traverse to a parent directory, potentially allowing files to be installed outside the intended directory.
How can this vulnerability impact me? :
The vulnerability can lead to unauthorized file placement outside the intended directory structure. This may result in overwriting or placing files in sensitive locations, potentially causing integrity issues or enabling further exploitation.