USN-8256-1

Type: Security
Severity: Medium
Published: 2026-05-07
Ubuntu 20.04 LTS (Focal Fossa)
Ubuntu 24.04 LTS (Noble Numbat)
Ubuntu 22.04 LTS (Jammy Jellyfish)
Ubuntu 25.10 (Questing Quokka)
Ubuntu 26.04 LTS (Resolute Raccoon)

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. Update Instructions: Run `sudo pro fix USN-8256-1` to fix the vulnerability. The problem can be corrected by updating your system to the following package versions: opam - 2.0.5-1ubuntu1+esm1 opam-doc - 2.0.5-1ubuntu1+esm1 opam-installer - 2.0.5-1ubuntu1+esm1 Available with Ubuntu Pro: https://ubuntu.com/pro

Evidence and freshness

Data current

Last supporting evidence check: 2026-11-28T01:47:42.136Z UTC

Official vendor advisory

Ubuntu 20.04 LTS (Focal Fossa)

View source
Observed 2026-11-28T01:47:42.136Z UTC. Last updated 2026-05-11T17:37:33.024Z UTC.

Upstream Advisory

Affected Packages

  • opam 2.0.5-1ubuntu1+esm1-2.0.5-1ubuntu1+esm1

  • opam-doc 2.0.5-1ubuntu1+esm1-2.0.5-1ubuntu1+esm1

  • opam-installer 2.0.5-1ubuntu1+esm1-2.0.5-1ubuntu1+esm1

  • opam 2.1.5-1ubuntu0.1~esm2-2.1.5-1ubuntu0.1~esm2

  • opam-doc 2.1.5-1ubuntu0.1~esm2-2.1.5-1ubuntu0.1~esm2

  • opam-installer 2.1.5-1ubuntu0.1~esm2-2.1.5-1ubuntu0.1~esm2

  • opam 2.1.2-1+deb12u1build0.22.04.1-2.1.2-1+deb12u1build0.22.04.1

  • opam-doc 2.1.2-1+deb12u1build0.22.04.1-2.1.2-1+deb12u1build0.22.04.1

  • opam-installer 2.1.2-1+deb12u1build0.22.04.1-2.1.2-1+deb12u1build0.22.04.1

  • opam 2.3.0-1+deb13u1build0.25.10.1-2.3.0-1+deb13u1build0.25.10.1

  • opam-doc 2.3.0-1+deb13u1build0.25.10.1-2.3.0-1+deb13u1build0.25.10.1

  • opam-installer 2.3.0-1+deb13u1build0.25.10.1-2.3.0-1+deb13u1build0.25.10.1

  • opam 2.5.0-1ubuntu0.1~esm1-2.5.0-1ubuntu0.1~esm1

  • opam-doc 2.5.0-1ubuntu0.1~esm1-2.5.0-1ubuntu0.1~esm1

  • opam-installer 2.5.0-1ubuntu0.1~esm1-2.5.0-1ubuntu0.1~esm1

Interested in being alerted when there are new versions of opam and the other packages? Set up an alert.
USN-8256-1: opam vulnerability | Package Alert