CVE-2022-30123:
Possible shell escape sequence injection vulnerability in Rack
10
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.83931%
CWE
Published
5/27/2022
Updated
12/17/2023
KEV Status
No
Technology
Ruby
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
rack | rubygems | <= 2.0.9.0 | 2.0.9.1 |
rack | rubygems | >= 2.1, <= 2.1.4.0 | 2.1.4.1 |
rack | rubygems | >= 2.2, <= 2.2.3.0 | 2.2.3.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The GitHub commit diff shows critical changes in these two components:
- In CommonLogger, a gsub! was added to escape non-printable characters in log messages
- In Lint, .dump was added to sanitize REQUEST_METHOD values in error messages These changes directly address CWE-150 (escape sequence injection) by adding proper sanitization where user-controlled data (HTTP method) was being output to logs/errors. The vulnerability description explicitly names these middleware components as the attack vectors.