Description
In OCaml opam before 2.5.1, a .install field containing a destination filepath can use ../ to reach a parent directory.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| OCaml | opam | < 2.5.1 | 2.5.1 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | opam | 2.5.1-1 | — |
| Debian 13 | opam | 2.3.0-1+deb13u1 | — |
| Debian 12 | opam | 2.1.2-1+deb12u1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | opam | No fix yet | — |
| Ubuntu 25.10 | opam | 2.3.0-1+deb13u1build0.25.10.1 | — |
| Ubuntu 22.04 LTS | opam | 2.1.2-1+deb12u1build0.22.04.1 | — |
| Ubuntu 18.04 LTS | opam | No fix yet | — |
| Ubuntu 16.04 LTS | opam | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 26.04 LTS | opam | 2.5.0-1ubuntu0.1~esm1 | — |
| Ubuntu Pro 24.04 LTS | opam | 2.1.5-1ubuntu0.1~esm2 | — |
| Ubuntu Pro 20.04 LTS | opam | 2.0.5-1ubuntu1+esm1 | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | opam | 2.5.1-1.1 | openSUSE-SU-2026:10568-1 |
| openSUSE Leap 16.0 | opam | 2.5.2-bp160.1.1 | openSUSE-SU-2026:21380-1 |
Advisories 2
- openSUSE-SU-2026:21380-1 Security update for opam SUSE / openSUSE Security Updates · Jul 22, 2026
- openSUSE-SU-2026:10568-1 opam-2.5.1-1.1 on GA media SUSE / openSUSE Security Updates · Apr 18, 2026