{"id":"CVE-2022-30123","aliases":["CVE-2022-30123","GHSA-wq4h-7r42-5hrr"],"related":[],"kind":"vulnerability","state":"published","title":"Possible shell escape sequence injection vulnerability in Rack","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"There is a possible shell escape sequence injection vulnerability in the Lint\nand CommonLogger components of Rack.  This vulnerability has been assigned the\nCVE identifier CVE-2022-30123.\n\nVersions Affected:  All.\nNot affected:       None\nFixed Versions:     2.0.9.1, 2.1.4.1, 2.2.3.1\n\n## Impact\nCarefully crafted requests can cause shell escape sequences to be written to\nthe terminal via Rack's Lint middleware and CommonLogger middleware.  These\nescape sequences can be leveraged to possibly execute commands in the victim's\nterminal.\n\nImpacted applications will have either of these middleware installed, and\nvulnerable apps may have something like this:\n\n```\nuse Rack::Lint\n```\n\nOr\n\n```\nuse Rack::CommonLogger\n```\n\nAll users running an affected release should either upgrade or use one of the\nworkarounds immediately.\n\n## Workarounds\nRemove these middleware from your application","format":"markdown","source":"ghsa"},{"lang":"es","text":"Existe una vulnerabilidad de inyección de secuencia en Rack &lt;2.0.9.1, &lt;2.1.4.1 y &lt;2.2.3.1 que podría permitir un posible escape de shell en los componentes Lint y CommonLogger de Rack.","source":"nvd"}],"published":"2022-05-27T16:36:51.000Z","modified":"2026-06-17T04:43:04.987Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","score":10,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","score":10,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","score":10,"rating":"CRITICAL"}],"cwes":["CWE-150"],"affected":[{"ranges":[{"version":"2.0.9.1, 2.1.4.1, 2.2.3.1","status":"affected"}],"product":"https://github.com/rack/rack","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.0.9.1"}],"ecosystem":"RubyGems","package":"rack","purl":"pkg:gem/rack","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.1","status":"affected","fixed":"2.1.4.1"}],"ecosystem":"RubyGems","package":"rack","purl":"pkg:gem/rack","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.2","status":"affected","fixed":"2.2.3.1"}],"ecosystem":"RubyGems","package":"rack","purl":"pkg:gem/rack","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.0.9.1"},{"status":"affected","introduced":"2.1.0","fixed":"2.1.4.1"},{"status":"affected","introduced":"2.2.0","fixed":"2.2.3.1"}],"vendor":"rack_project","product":"rack","cpe":"cpe:2.3:a:rack_project:rack:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://discuss.rubyonrails.org/t/cve-2022-30123-possible-shell-escape-sequence-injection-vulnerability-in-rack/80728","tags":["third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.debian.org/security/2023/dsa-5530","tags":["third-party-advisory","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.gentoo.org/glsa/202310-18","tags":["third-party-advisory","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20231208-0011/","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-30123","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/rack/rack/commit/b426cc224908ec6ed6eb8729325392b048215d88","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/rack/rack","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2022-30123.yml","tags":["web"],"sources":["ghsa"]},{"url":"https://groups.google.com/g/ruby-security-ann/c/LWB10kWzag8","tags":["web"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20231208-0011","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"hackerone","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-30123","url":"https://www.cve.org/CVERecord?id=CVE-2022-30123","licence":"CVE Terms of Use","modified":"2024-08-03T06:40:47.582Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-wq4h-7r42-5hrr","url":"https://github.com/advisories/GHSA-wq4h-7r42-5hrr","licence":"CC-BY-4.0","modified":"2024-02-18T05:41:38.830Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-30123","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-30123","licence":"Public domain","modified":"2026-06-17T04:43:04.987Z"}],"updatedAt":"2026-11-25T22:58:17.232Z","epss":{"score":0.01964,"percentile":0.80959,"date":"2026-12-01T12:00:22.000Z"}}