USN-8256-1

Source
https://ubuntu.com/security/notices/USN-8256-1
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-8256-1.json
JSON Data
https://api.test.osv.dev/v1/vulns/USN-8256-1
Upstream
Related
Published
2026-05-07T15:21:08Z
Modified
2026-05-08T13:59:17.146132060Z
Summary
opam vulnerability
Details

Andrew Nesbitt discovered that opam did not properly validate file destination paths in package install files. An attacker could use this issue to bypass sandbox protections and write files to arbitrary locations, possibly leading to arbitrary code execution.

References

Affected packages

Ubuntu:Pro:20.04:LTS / opam

Package

Name
opam
Purl
pkg:deb/ubuntu/opam@2.0.5-1ubuntu1+esm1?arch=source&distro=esm-apps/focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.0.5-1ubuntu1+esm1

Affected versions

2.*
2.0.5-1
2.0.5-1ubuntu1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "2.0.5-1ubuntu1+esm1",
            "binary_name": "opam"
        },
        {
            "binary_version": "2.0.5-1ubuntu1+esm1",
            "binary_name": "opam-installer"
        }
    ],
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
}

Database specific

cves_map
{
    "ecosystem": "Ubuntu:Pro:20.04:LTS",
    "cves": [
        {
            "id": "CVE-2026-41082",
            "severity": [
                {
                    "type": "CVSS_V3",
                    "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L"
                },
                {
                    "type": "Ubuntu",
                    "score": "medium"
                }
            ]
        }
    ]
}
source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-8256-1.json"

Ubuntu:22.04:LTS / opam

Package

Name
opam
Purl
pkg:deb/ubuntu/opam@2.1.2-1+deb12u1build0.22.04.1?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.1.2-1+deb12u1build0.22.04.1

Affected versions

2.*
2.0.8-1
2.0.10-1
2.1.2-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "2.1.2-1+deb12u1build0.22.04.1",
            "binary_name": "opam"
        },
        {
            "binary_version": "2.1.2-1+deb12u1build0.22.04.1",
            "binary_name": "opam-installer"
        }
    ],
    "availability": "No subscription required"
}

Database specific

cves_map
{
    "ecosystem": "Ubuntu:22.04:LTS",
    "cves": [
        {
            "id": "CVE-2026-41082",
            "severity": [
                {
                    "type": "CVSS_V3",
                    "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L"
                },
                {
                    "type": "Ubuntu",
                    "score": "medium"
                }
            ]
        }
    ]
}
source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-8256-1.json"

Ubuntu:Pro:24.04:LTS / opam

Package

Name
opam
Purl
pkg:deb/ubuntu/opam@2.1.5-1ubuntu0.1~esm2?arch=source&distro=esm-apps/noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.1.5-1ubuntu0.1~esm2

Affected versions

2.*
2.1.5-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "2.1.5-1ubuntu0.1~esm2",
            "binary_name": "opam"
        },
        {
            "binary_version": "2.1.5-1ubuntu0.1~esm2",
            "binary_name": "opam-installer"
        }
    ],
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
}

Database specific

cves_map
{
    "ecosystem": "Ubuntu:Pro:24.04:LTS",
    "cves": [
        {
            "id": "CVE-2026-41082",
            "severity": [
                {
                    "type": "CVSS_V3",
                    "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L"
                },
                {
                    "type": "Ubuntu",
                    "score": "medium"
                }
            ]
        }
    ]
}
source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-8256-1.json"

Ubuntu:25.10 / opam

Package

Name
opam
Purl
pkg:deb/ubuntu/opam@2.3.0-1+deb13u1build0.25.10.1?arch=source&distro=questing

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.3.0-1+deb13u1build0.25.10.1

Affected versions

2.*
2.3.0-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "2.3.0-1+deb13u1build0.25.10.1",
            "binary_name": "opam"
        },
        {
            "binary_version": "2.3.0-1+deb13u1build0.25.10.1",
            "binary_name": "opam-installer"
        }
    ],
    "availability": "No subscription required"
}

Database specific

cves_map
{
    "ecosystem": "Ubuntu:25.10",
    "cves": [
        {
            "id": "CVE-2026-41082",
            "severity": [
                {
                    "type": "CVSS_V3",
                    "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L"
                },
                {
                    "type": "Ubuntu",
                    "score": "medium"
                }
            ]
        }
    ]
}
source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-8256-1.json"

Ubuntu:Pro:26.04:LTS / opam

Package

Name
opam
Purl
pkg:deb/ubuntu/opam@2.5.0-1ubuntu0.1~esm1?arch=source&distro=esm-apps/resolute

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.5.0-1ubuntu0.1~esm1

Affected versions

2.*
2.3.0-1
2.4.1-1
2.5.0-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "2.5.0-1ubuntu0.1~esm1",
            "binary_name": "opam"
        },
        {
            "binary_version": "2.5.0-1ubuntu0.1~esm1",
            "binary_name": "opam-installer"
        }
    ],
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
}

Database specific

cves_map
{
    "ecosystem": "Ubuntu:Pro:26.04:LTS",
    "cves": [
        {
            "id": "CVE-2026-41082",
            "severity": [
                {
                    "type": "CVSS_V3",
                    "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L"
                },
                {
                    "type": "Ubuntu",
                    "score": "medium"
                }
            ]
        }
    ]
}
source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-8256-1.json"