CVE-2022-30123
Possible shell escape sequence injection vulnerability in Rack
Reported by hackerone · Published December 5, 2022
rack is fixed in 2.2.3.1, 2.1.4.1 and 2.0.9.1 (RubyGems)
A sequence injection vulnerability exists in Rack <2.0.9.1, <2.1.4.1 and <2.2.3.1 which could allow is a possible shell escape in the Lint and CommonLogger components of Rack.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| rack | RubyGems | 2.2.3.1, 2.1.4.1, 2.0.9.1 |
| pcs | Amazon Linux | 0.9.169-3.amzn2.1.2 |
| pcs-snmp | Amazon Linux | 0.9.169-3.amzn2.1.2 |
| rack | rack_project | 2.2.3.1, 2.1.4.1, 2.0.9.1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | https://github.com/rack/rack | 2.0.9.1, 2.1.4.1, 2.2.3.1 |
| amazon:2 | pcs | 0 |
| amazon:2 | pcs-snmp | 0 |
| RubyGems | rack | |
| RubyGems | rack | 2.2.0, 0, 2.1.0 |
| n/a | https://github.com/rack/rack | 2.0.9.1, 2.1.4.1, 2.2.3.1 |
Timeline
- Dec 5, 2022 CVE Published
- Dec 6, 2022 EPSS Score (30 in total, the first dated here)
- Jun 28, 2023 PoC Published
- Mar 17, 2026 Security Advisory (14 in total, the first dated here)
- Jun 26, 2026 Coalition ESS Score
- Nov 22, 2026 Distribution Patch (7 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-30123
vulnetix vdb fixes CVE-2022-30123
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-30123/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- DSA-5530 vendor-advisory
- GLSA-202310-18 vendor-advisory
- https://nvd.nist.gov/vuln/detail/CVE-2022-30123 advisory
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2022-30123.yml advisory
- https://groups.google.com/g/ruby-security-ann/c/LWB10kWzag8 url
- https://github.com/advisories/GHSA-wq4h-7r42-5hrr advisory