OCaml Opam Directory Traversal Vulnerability in .install Field

Vulnerability

A directory traversal vulnerability has been identified in OCaml Opam versions prior to 2.5.1. The issue arises in the .install field when it contains a destination filepath that can be manipulated to reach a parent directory using '../'. This could potentially allow for unauthorized access to files or directories outside the intended scope.

Impact

Exploitation of this vulnerability could lead to unauthorized file access or manipulation by traversing directories outside the intended boundaries.

Remediation

Users can upgrade to OCaml Opam version 2.5.1 or later to address this vulnerability.

Added: Apr 16, 2026, 6:27 PM
Updated: Apr 16, 2026, 6:27 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
0.6
exploitability
4.2
remediation
0.0
relevance
6.0
threat
0.0
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.