CVE-2026-41082
Received Received - Intake
Directory Traversal in OCaml opam .install Field Before

Publication date: 2026-04-16

Last updated on: 2026-04-21

Assigner: MITRE

Description
In OCaml opam before 2.5.1, a .install field containing a destination filepath can use ../ to reach a parent directory.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-04-16
Last Modified
2026-04-21
Generated
2026-05-07
AI Q&A
2026-04-16
EPSS Evaluated
2026-05-05
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
ocaml opam to 2.5.1 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
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.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart