Skip to content
Heist/ feed
Back to feed
HighFix available

opam — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-41082

In OCaml opam before 2.5.1, a .install field containing a destination filepath can use ../ to reach a parent directory.

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.8-1, 2.1.2-1, 2.1.5-1, 2.3.0-1, 2.4.1-1, 2.5.0-1, 2.5.2-1
Fixed versions
2.0.5-1ubuntu1+esm1, 2.1.2-1+deb12u1build0.22.04.1, 2.1.5-1ubuntu0.1~esm2, 2.3.0-1+deb13u1build0.25.10.1, 2.5.0-1ubuntu0.1~esm1
CVEs
CVE-2026-41082
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 02:11 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-41082

core-osv · Original source

Published 17 Apr 2026, 00:00 UTC

In OCaml opam before 2.5.1, a .install field containing a destination filepath can use ../ to reach a parent directory.

osv:UBUNTU-CVE-2026-41082

opam

Fixed versions: Not specified

opam

Fixed versions: Not specified

opam

Fixed versions: 2.0.5-1ubuntu1+esm1

opam

Fixed versions: 2.1.2-1+deb12u1build0.22.04.1

opam

Fixed versions: 2.1.5-1ubuntu0.1~esm2

opam

Fixed versions: 2.3.0-1+deb13u1build0.25.10.1

opam

Fixed versions: Not specified

opam

Fixed versions: 2.5.0-1ubuntu0.1~esm1

Complete source record
{
  "id": "a2080d436a1869d489c4c4257d6f8dc2a3fbfe28d1355b30ebfa275fcdcc5c6e",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-41082",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-41082",
    "summary": "In OCaml opam before 2.5.1, a .install field containing a destination filepath can use ../ to reach a parent directory.",
    "evidence": "osv:UBUNTU-CVE-2026-41082",
    "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": [
          {
            "value": "2.0.5-1ubuntu1+esm1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "2.0.5-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "2.0.5-1ubuntu1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "opam",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.1.2-1+deb12u1build0.22.04.1",
            "evidence": "/affected/3/ranges"
          }
        ],
        "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"
          }
        ]
      },
      {
        "name": {
          "value": "opam",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.1.5-1ubuntu0.1~esm2",
            "evidence": "/affected/4/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "2.1.5-1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "opam",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.3.0-1+deb13u1build0.25.10.1",
            "evidence": "/affected/5/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "2.3.0-1",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "opam",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.5.0-1",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "2.5.2-1",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "opam",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.5.0-1ubuntu0.1~esm1",
            "evidence": "/affected/7/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "2.3.0-1",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "2.4.1-1",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "2.5.0-1",
            "evidence": "/affected/7/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2026-41082",
      "aliases": [
        "UBUNTU-CVE-2026-41082"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
        },
        {
          "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-41082.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-41082.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"
                },
                {
                  "fixed": "2.0.5-1ubuntu1+esm1"
                }
              ]
            }
          ],
          "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"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41082.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"
              }
            ],
            "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.1.2-1+deb12u1build0.22.04.1"
                }
              ]
            }
          ],
          "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"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41082.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"
              }
            ],
            "availability": "No subscription required"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.1.5-1ubuntu0.1~esm2"
                }
              ]
            }
          ],
          "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"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41082.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"
              }
            ],
            "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.3.0-1+deb13u1build0.25.10.1"
                }
              ]
            }
          ],
          "package": {
            "name": "opam",
            "purl": "pkg:deb/ubuntu/opam?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "2.3.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41082.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "opam",
                "binary_version": "2.3.0-1+deb13u1build0.25.10.1"
              },
              {
                "binary_name": "opam-installer",
                "binary_version": "2.3.0-1+deb13u1build0.25.10.1"
              }
            ],
            "availability": "No subscription required"
          }
        },
        {
          "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-41082.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"
                },
                {
                  "fixed": "2.5.0-1ubuntu0.1~esm1"
                }
              ]
            }
          ],
          "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"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41082.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"
              }
            ],
            "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
          }
        }
      ],
      "modified": "2026-10-17T12:58:14.782240849Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-41082"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-41082",
        "https://www.cve.org/CVERecord?id=CVE-2026-41082",
        "https://github.com/ocaml/security-advisories/blob/main/advisories/2026/OSEC-2026-03.md",
        "https://ubuntu.com/security/notices/USN-8256-1"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-41082",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/2/score"
  },
  "source_id": "core-osv",
  "document_id": 358427,
  "published_at": "2026-04-17T00:00:00+00:00"
}