# CVE-2026-102422: shell-quote \`quote()\` command injection via a line terminator in a token after a \`{ comment }\` token

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.2 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2026-09-29 · Modified: 2026-09-30
- Aliases: RHSA-2026:69544, RHSA-2026:72750, UBUNTU-CVE-2026-102422, DEBIAN-CVE-2026-102422, CGA-6vjc-vp8r-27xh, CGA-g9xq-c429-9rg8, CGA-ghc6-85ww-h3mh, CGA-h5v4-6wfj-hwpx, GHSA-pqg4-j6r4-53mv, CGA-22fx-q5h3-vrcp, CGA-2h9r-v78q-96jv, CGA-2j32-x6pc-f444, CGA-4gcq-7h7w-fh33, CGA-562w-6frw-9h3q, CGA-5p7x-xg9w-j6vx, CGA-5wq9-57g9-8xc2, CGA-6hgx-m5pv-3cqx, CGA-6hhg-c5gf-cxvf, CGA-7mp8-7x65-6cr8, CGA-7xjq-cxqw-2462, CGA-86xj-hm34-92pr, CGA-9jmc-48wg-x99r, CGA-c2v9-93x7-fxrg, CGA-c8qx-jw7w-93xp, CGA-cq4j-2h5f-fwc3, CGA-f4f8-9636-f5m2, CGA-f8pv-6rfw-q27q, CGA-fg4v-5g95-79wq, CGA-fp4p-5f4v-x5m9, CGA-g458-f3wr-cmg2, CGA-gjc4-563w-3m25, CGA-gmcf-jp57-p9c2, CGA-gmr6-mc4c-wx3q, CGA-gw4f-3599-px9f, CGA-h27q-979c-wrmx, CGA-h79p-fw45-gfw7, CGA-h8f4-xgxw-7vg5, CGA-hqw3-rhf4-g43j, CGA-j6qm-88f6-j239, CGA-jhgq-rr8x-6gj4, CGA-jhqp-j738-9gwv, CGA-mfrh-qpmw-rcrf, CGA-p6c7-82v9-3844, CGA-pqx6-mmqj-c3j2, CGA-q2qr-m67w-prmf, CGA-q8m8-rj92-f3x7, CGA-qmp7-x3q4-7ffq, CGA-qpqx-hffx-92p5, CGA-v38h-45pv-8m4g, CGA-v55x-8c6p-374h, CGA-vmfh-3hfh-558v, CGA-vwq8-v24m-r9q3, CGA-w9xq-j853-2c8m
- Record: https://cvemate.com/vulnerability/CVE-2026-102422 · JSON: https://cvemate.com/vulnerability/CVE-2026-102422/json

## Description

```text
shell-quote's `quote()` function emits a `{ comment }` token as `#` followed by its text, which comments out the rest of the shell line, including the opening quote of any later string token. A line terminator (\n, \r, U+2028, U+2029) in that later string therefore ends the comment, and the rest of the string is parsed as shell input: `quote(['echo', 'ok', { comment: 'x' }, 'a\nid;#'])` runs `id` in sh, bash, dash, ksh and zsh. `parse()` emits a comment token for a `#` in the middle of a word (for example `http://example.com/#frag`), so callers that combine `parse()` output with another untrusted string, such as `quote(parse(untrustedCommand).concat(untrustedArg))`, are affected. The fix for CVE-2026-9277 rejected line terminators in the comment's own text, but not in the tokens after it. Fixed in 1.11.0: `quote()` throws a `TypeError` when a string after a `{ comment }` token contains a line terminator.
```

## Signals

- CVSS: 9.2 critical (v4.0, CVE.org) CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- EPSS: 0.48%, percentile 43.04%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 30)

- chainguard arangodb-3.12 (Chainguard): \< 3.12.12.1-r5
- chainguard code-server (Chainguard): \< 4.141.0-r1
- chainguard commercial-gitlab-rails-ee-19.1 (Chainguard): \< 19.1.7-r3
- chainguard commercial-gitlab-rails-ee-19.2 (Chainguard): \< 19.2.7-r1
- chainguard commercial-gitlab-rails-ee-19.3 (Chainguard): \< 19.3.3-r1
- chainguard commercial-gitlab-rails-ee-19.4 (Chainguard): \< 19.4.1-r1
- chainguard commercial-gitlab-rails-ee-fips-19.1 (Chainguard): All versions (No fix recorded) \| \< 19.1.9-r0
- chainguard commercial-gitlab-rails-ee-fips-19.2 (Chainguard): \< 19.2.7-r1
- chainguard commercial-gitlab-rails-ee-fips-19.3 (Chainguard): \< 19.3.3-r1
- chainguard commercial-gitlab-rails-ee-fips-19.4 (Chainguard): \< 19.4.1-r1
- chainguard eco-jess (Chainguard): All versions (No fix recorded)
- chainguard gemini-cli (Chainguard): \< 0.63.0-r1
- chainguard gitlab-rails-ce-19.0 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.1 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.2 (Chainguard): \< 19.2.7-r7
- chainguard gitlab-rails-ce-19.3 (Chainguard): \< 19.3.3-r6
- chainguard gitlab-rails-ce-19.4 (Chainguard): \< 19.4.1-r8
- chainguard gitlab-rails-ce-fips-19.0 (Chainguard): \< 19.0.9-r3
- chainguard gitlab-rails-ce-fips-19.1 (Chainguard): \< 19.1.8-r9
- chainguard gitlab-rails-ce-fips-19.2 (Chainguard): \< 19.2.7-r7

## References (first 20 of 35)

- <https://github.com/ljharb/shell-quote/security/advisories/GHSA-pqg4-j6r4-53mv>
- <https://github.com/ljharb/shell-quote/commit/6002b2ed90c6b83095eb272b6b0adaf3a172b0bc>
- <https://github.com/ljharb/shell-quote>
- <https://www.npmjs.com/package/shell-quote>
- <https://access.redhat.com/errata/RHSA-2026:69544>
- <https://images.redhat.com/>
- <https://access.redhat.com/security/cve/CVE-2026-102422>
- <https://access.redhat.com/security/updates/classification/>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_69544.json>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2542933>
- <https://www.cve.org/CVERecord?id=CVE-2026-102422>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-102422>
- <https://access.redhat.com/errata/RHSA-2026:72750>
- <https://access.redhat.com/security/cve/CVE-2026-93450>
- <https://access.redhat.com/security/cve/CVE-2026-56851>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_72750.json>
- <https://ubuntu.com/security/CVE-2026-102422>
- <https://security-tracker.debian.org/tracker/CVE-2026-102422>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/102xxx/CVE-2026-102422.json>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2547607>

---

Data as of 2026-12-05T04:58:26.928Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
