
CVE catalog
CVE-2026-16658
ansible: CVE-2026-16658
- Severity
- Critical · CVSS 9.9
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H - Published
- Source
- [NVD] · [CVE record]
A flaw was found in the community.proxmox Ansible collection's proxmox_pct_remote connection plugin. The _build_pct_command() method constructs a pct exec command string using unquoted string concatenation and passes it to the Proxmox host's shell via Paramiko. Shell metacharacters in the command (such as >, |, ;, &&, or $()) are interpreted on the host instead of inside the target LXC container, allowing commands intended for an unprivileged container to execute on the hypervisor host as root. This constitutes a container-to-host trust boundary crossing. The put_file and fetch_file methods in the same plugin correctly use shell quoting, indicating this is an oversight on the exec path. while CVSS has a score of 9.9, the impact is rated as IMPORTANT for Red Hat assessment due to deployment-dependent privilege model determining risks. 1. In most Proxmox deployments, the Ansible SSH user already has root/sudo on the host (to run pct). In that case, the shell injection does not escalate privileges — it changes WHERE commands execute (host vs container) but the operator already has host access. 2. In multi-tenant or delegated management models where Ansible operators have container access but NOT host access, this IS a genuine privilege escalation / container escape. 3. The ACCIDENTAL impact (legitimate tasks with metacharacters silently modifying the host) is the most common real-world scenario and is dangerous regardless of privilege model. The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | ansible | sid | 14.4.0+dfsg-1 | vulnerable |
| Debian | ansible | forky | 14.0.0+dfsg-1 | vulnerable |
| Debian | ansible | trixie | 12.0.0+dfsg-0+deb13u1 | vulnerable |
| Debian | ansible | bookworm | 7.7.0+dfsg-3+deb12u1 | not affected |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | ansible | source | sid | (unfixed) | not yet assigned | Not reported | [1146701] |
| Debian | ansible | source | forky | (unfixed) | not yet assigned | Not reported | [1146701] |
| Debian | ansible | source | trixie | (unfixed) | not yet assigned | Not reported | [1146701] |
| Debian | ansible | source | bookworm | Not affected | unimportant | Not reported | [1146701] |
Notes
[trixie] ansible: Minor issue
OpenFactory catalog packages
[Debian 13 (Trixie)]
- [ansible]Affected
Details (2)
12.0.0+dfsg-0+deb13u1· all · trixieAffected
dsa · ansible · debian · 13
12.0.0+dfsg-0+deb13u1· all · trixieAffected
dsa · ansible · debian · 13
[Debian 12 (Bookworm)]
- [ansible]Not affected
Details (2)
7.7.0+dfsg-3+deb12u1· all · bookwormNot affected
dsa · ansible · debian · bookworm
7.7.0+dfsg-3+deb12u1· all · bookwormNot affected
dsa · ansible · debian · bookworm
Observed: