PT-2026-42766

CVE-2026-9277

·

Published

2026-05-22

·

Updated

2026-10-30

Description by

CVSS 4.0
9.2
Critical
MetricsAV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions shell-quote versions prior to 1.8.4
Description The quote() function fails to validate object-token inputs against the operator model used by parse(). Specifically, the .op field is escaped using a regular expression that does not match line terminators such as , r, U+2028, and U+2029. This allows line terminators to pass unescaped into the output. Since POSIX shells treat literal newlines as command separators, any content following the newline is executed as a separate command, leading to command injection. This issue is reachable through the direct construction of { op: '... ...' } from external input or via parse(cmd, envFn) when envFn returns object tokens with an attacker-influenced .op field.
Recommendations Update to version 1.8.4 or later. As a temporary workaround, restrict external input from influencing the .op field in object tokens passed to the quote() function or returned by envFn in the parse() function.
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Related identifiers
GHSA-W7JW-789Q-3M8P
CLEANSTART-2026-AQ31115
CLEANSTART-2026-GD45765
CLEANSTART-2026-GJ43492
CLEANSTART-2026-JC29454
CLEANSTART-2026-WJ25925
ECHO-9C06-21C4-EEE8
OPENSUSE-SU-2026:10861-1
OPENSUSE-SU-2026:10979-1
OPENSUSE-SU-2026:20839-1
OPENSUSE-SU-2026:20919-1
USN-8410-1
Found an issue in the description? Have something to add? Feel free to write us 👾