Description
In the opam package before 2.5.2 for OCaml, the sandbox protection mechanism can be bypassed because symlinks are mishandled during use of .install files.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| OCaml | opam | < 2.5.2 | 2.5.2 |
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.2-1 | — |
| Debian 13 | opam | 2.3.0-1+deb13u2 | — |
| Debian 12 | opam | 2.1.2-1+deb12u2 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | opam | No fix yet | — |
| Ubuntu 22.04 LTS | opam | No fix yet | — |
| 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 | No fix yet | — |
| Ubuntu Pro 24.04 LTS | opam | No fix yet | — |
| Ubuntu Pro 20.04 LTS | opam | No fix yet | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | opam | 2.5.2-1.2 | openSUSE-SU-2026:11296-1 |
| openSUSE Leap 16.0 | opam | 2.5.2-bp160.1.1 | openSUSE-SU-2026:21380-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | opam | 2.5.2-r0 | — |
| Alpine v3.23 | opam | 2.5.2-r0 | — |
Advisories 2
- openSUSE-SU-2026:21380-1 Security update for opam SUSE / openSUSE Security Updates · Jul 22, 2026
- openSUSE-SU-2026:11296-1 opam-2.5.2-1.2 on GA media SUSE / openSUSE Security Updates · Jul 18, 2026