Red Hat VEX
RHVEX-CVE-2026-9277
shell-quote: shell-quote: Arbitrary code execution via command injection due to unescaped line terminators
Details
A flaw was found in the shell-quote component. The quote() function did not properly validate object-token inputs, allowing line terminators to pass unescaped into the output. A remote attacker could exploit this vulnerability by providing specially crafted input, which a POSIX shell would interpret as a command separator. This could lead to command injection, enabling the attacker to execute arbitrary code on the system.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:9 | grafana | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | grafana-selinux | All versions, will not be fixed |
References
- https://access.redhat.com/security/cve/CVE-2026-9277
- https://bugzilla.redhat.com/show_bug.cgi?id=2480741
- https://www.cve.org/CVERecord?id=CVE-2026-9277
- https://nvd.nist.gov/vuln/detail/CVE-2026-9277
- https://github.com/ljharb/shell-quote
- https://github.com/ljharb/shell-quote/commit/1518179
- https://github.com/ljharb/shell-quote/security/advisories/GHSA-w7jw-789q-3m8p
- https://www.npmjs.com/package/shell-quote