Medium
opam — security advisory
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.
- Products
- opam
- Affected versions
- 1.2.2-3, 1.2.2-3build1, 1.2.2-4, 1.2.2-6, 2.0.10-1, 2.0.5-1, 2.0.5-1ubuntu1, 2.0.5-1ubuntu1+esm1, 2.0.8-1, 2.1.2-1, 2.1.2-1+deb12u1build0.22.04.1, 2.1.5-1, 2.1.5-1ubuntu0.1~esm2, 2.3.0-1, 2.4.1-1, 2.5.0-1, 2.5.0-1ubuntu0.1~esm1, 2.5.2-1
- Fixed versions
- Not specified
- CVEs
- CVE-2026-57825
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 03:10 UTC · Revision 1
Source evidence
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.
osv:UBUNTU-CVE-2026-57825
opam
Fixed versions: Not specified
opam
Fixed versions: Not specified
opam
Fixed versions: Not specified
opam
Fixed versions: Not specified
opam
Fixed versions: Not specified
opam
Fixed versions: Not specified
opam
Fixed versions: Not specified
Complete source record
{
"id": "1c7db188759cec4098240dfd25613cc3c081a811d43a550e4382a89ead05d281",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-57825",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2026-57825",
"summary": "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.",
"evidence": "osv:UBUNTU-CVE-2026-57825",
"products": [
{
"name": {
"value": "opam",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.2.2-3",
"evidence": "/affected/0/versions"
},
{
"value": "1.2.2-3build1",
"evidence": "/affected/0/versions"
},
{
"value": "1.2.2-4",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "opam",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.2.2-6",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "opam",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.0.5-1",
"evidence": "/affected/2/versions"
},
{
"value": "2.0.5-1ubuntu1",
"evidence": "/affected/2/versions"
},
{
"value": "2.0.5-1ubuntu1+esm1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "opam",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.0.8-1",
"evidence": "/affected/3/versions"
},
{
"value": "2.0.10-1",
"evidence": "/affected/3/versions"
},
{
"value": "2.1.2-1",
"evidence": "/affected/3/versions"
},
{
"value": "2.1.2-1+deb12u1build0.22.04.1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "opam",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.1.5-1",
"evidence": "/affected/4/versions"
},
{
"value": "2.1.5-1ubuntu0.1~esm2",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "opam",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.5.0-1",
"evidence": "/affected/5/versions"
},
{
"value": "2.5.2-1",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "opam",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.3.0-1",
"evidence": "/affected/6/versions"
},
{
"value": "2.4.1-1",
"evidence": "/affected/6/versions"
},
{
"value": "2.5.0-1",
"evidence": "/affected/6/versions"
},
{
"value": "2.5.0-1ubuntu0.1~esm1",
"evidence": "/affected/6/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "UBUNTU-CVE-2026-57825",
"aliases": [
"UBUNTU-CVE-2026-57825"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "opam",
"purl": "pkg:deb/ubuntu/opam?arch=source&distro=xenial",
"ecosystem": "Ubuntu:16.04:LTS"
},
"versions": [
"1.2.2-3",
"1.2.2-3build1",
"1.2.2-4"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-57825.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "opam",
"binary_version": "1.2.2-4"
},
{
"binary_name": "opam-docs",
"binary_version": "1.2.2-4"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "opam",
"purl": "pkg:deb/ubuntu/opam?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"1.2.2-6"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-57825.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "opam",
"binary_version": "1.2.2-6"
},
{
"binary_name": "opam-docs",
"binary_version": "1.2.2-6"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "opam",
"purl": "pkg:deb/ubuntu/opam?arch=source&distro=esm-apps%2Ffocal",
"ecosystem": "Ubuntu:Pro:20.04:LTS"
},
"versions": [
"2.0.5-1",
"2.0.5-1ubuntu1",
"2.0.5-1ubuntu1+esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-57825.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "opam",
"binary_version": "2.0.5-1ubuntu1+esm1"
},
{
"binary_name": "opam-installer",
"binary_version": "2.0.5-1ubuntu1+esm1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "opam",
"purl": "pkg:deb/ubuntu/opam?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"2.0.8-1",
"2.0.10-1",
"2.1.2-1",
"2.1.2-1+deb12u1build0.22.04.1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-57825.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "opam",
"binary_version": "2.1.2-1+deb12u1build0.22.04.1"
},
{
"binary_name": "opam-installer",
"binary_version": "2.1.2-1+deb12u1build0.22.04.1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "opam",
"purl": "pkg:deb/ubuntu/opam?arch=source&distro=esm-apps%2Fnoble",
"ecosystem": "Ubuntu:Pro:24.04:LTS"
},
"versions": [
"2.1.5-1",
"2.1.5-1ubuntu0.1~esm2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-57825.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "opam",
"binary_version": "2.1.5-1ubuntu0.1~esm2"
},
{
"binary_name": "opam-installer",
"binary_version": "2.1.5-1ubuntu0.1~esm2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "opam",
"purl": "pkg:deb/ubuntu/opam?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"2.5.0-1",
"2.5.2-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-57825.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "opam",
"binary_version": "2.5.2-1"
},
{
"binary_name": "opam-installer",
"binary_version": "2.5.2-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "opam",
"purl": "pkg:deb/ubuntu/opam?arch=source&distro=esm-apps%2Fresolute",
"ecosystem": "Ubuntu:Pro:26.04:LTS"
},
"versions": [
"2.3.0-1",
"2.4.1-1",
"2.5.0-1",
"2.5.0-1ubuntu0.1~esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-57825.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "opam",
"binary_version": "2.5.0-1ubuntu0.1~esm1"
},
{
"binary_name": "opam-installer",
"binary_version": "2.5.0-1ubuntu0.1~esm1"
}
]
}
}
],
"modified": "2026-10-17T13:00:29.068525998Z",
"provider": "osv",
"upstream": [
"CVE-2026-57825"
],
"references": [
"https://ubuntu.com/security/CVE-2026-57825",
"https://www.cve.org/CVERecord?id=CVE-2026-57825",
"https://github.com/ocaml/security-advisories/blob/main/advisories/2026/OSEC-2026-10.md",
"https://github.com/ocaml/opam/pull/7005"
]
},
"related_cves": [
{
"value": "CVE-2026-57825",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 360597,
"published_at": "2026-09-09T04:18:00+00:00"
}