{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "0.1.4"
              },
              {
                "introduced": "0.2.0"
              },
              {
                "fixed": "0.2.4"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "introduced": "6acf7ba2371cacc248fe8ebe26ce4a4ccc0b95a4"
            },
            {
              "fixed": "5860106629ae727c7f319b7ddaa3653540d3a0e8"
            },
            {
              "fixed": "74f90a5e080b4b8fccab7dcdee46b112128d75a0"
            },
            {
              "fixed": "959745bb5917c17f0316af199aace6c71baa5ad7"
            }
          ],
          "repo": "https://github.com/redhatinsights/yggdrasil-worker-package-manager",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "redhat",
    "cwe_ids": [
      "CWE-88"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/18xxx/CVE-2026-18157.json"
  },
  "details": "A flaw was found in yggdrasil-worker-package-manager. A local attacker with existing access to the system could exploit an argument injection vulnerability in the APT backend. This allows specially crafted package names, which begin with a hyphen, to be misinterpreted as command options by apt-get. Successful exploitation could lead to remote code execution (RCE) with root privileges, enabling the attacker to fully compromise the system's integrity, confidentiality, and availability.",
  "id": "CVE-2026-18157",
  "modified": "2026-08-12T03:51:42.569158858Z",
  "published": "2026-07-31T02:38:28.243Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://access.redhat.com/downloads/content/package-browser/"
    },
    {
      "type": "WEB",
      "url": "https://github.com/RedHatInsights/yggdrasil-worker-package-manager/releases/tag/0.1.4"
    },
    {
      "type": "WEB",
      "url": "https://github.com/RedHatInsights/yggdrasil-worker-package-manager/releases/tag/0.2.4"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/security/cve/CVE-2026-18157"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/18xxx/CVE-2026-18157.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-18157"
    },
    {
      "type": "REPORT",
      "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2465250"
    },
    {
      "type": "FIX",
      "url": "https://github.com/RedHatInsights/yggdrasil-worker-package-manager/commit/959745bb5917c17f0316af199aace6c71baa5ad7"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/RedHatInsights/yggdrasil-worker-package-manager"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Yggdrasil-worker-package-manager: yggdrasil-worker-package-manager: remote code execution via apt argument injection"
}