Vulnerabilities / CVE-2022-30123

critical

CVE-2022-30123

rubygem-rack: crafted requests can cause shell escape sequences

Published Modified CWE 150
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD10.0CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
GHSA10.0CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Red Hat10.0CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, GHSA, Ruby Advisory DB. Rated lower by Red Hat (high), Amazon (high), Oracle (high), Ubuntu (medium).

Description

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.

Affected packages and fixed versions

SourcePackageFixed in
rubygems::GitHub Security Advisory RubyGemsrack2.0.9.1, 2.1.4.1, 2.2.3.1
rubygems::Ruby Advisory Databaserack~> 2.0.9, >= 2.0.9.1, ~> 2.1.4, >= 2.1.4.1, >= 2.2.3.1
amazon linux 2pcs, pcs-debuginfo, pcs-snmp0.9.169-3.amzn2.1.2
debian 10ruby-rack2.0.6-3+deb10u1
debian 11ruby-rack2.1.4-3+deb11u1
debian 12ruby-rack2.2.4-1
debian 13ruby-rack2.2.4-1
debian 14ruby-rack2.2.4-1
echoruby-rack2.2.4-1
Oracle Linux 7pcs, pcs-snmp0.9.169-3.0.1.el7_9.3
rapidfort ubuntu 20.04ruby-rack0:2.1.4-5ubuntu1.1
rapidfort ubuntu 22.04ruby-rack0:2.1.4-5ubuntu1.1
Show all 22 entries from 19 sources
SourcePackageFixed in
rubygems::GitHub Security Advisory RubyGemsrack2.0.9.1, 2.1.4.1, 2.2.3.1
rubygems::Ruby Advisory Databaserack~> 2.0.9, >= 2.0.9.1, ~> 2.1.4, >= 2.1.4.1, >= 2.2.3.1
amazon linux 2pcs0.9.169-3.amzn2.1.2
amazon linux 2pcs-debuginfo0.9.169-3.amzn2.1.2
amazon linux 2pcs-snmp0.9.169-3.amzn2.1.2
debian 10ruby-rack2.0.6-3+deb10u1
debian 11ruby-rack2.1.4-3+deb11u1
debian 12ruby-rack2.2.4-1
debian 13ruby-rack2.2.4-1
debian 14ruby-rack2.2.4-1
echoruby-rack2.2.4-1
Oracle Linux 7pcs0.9.169-3.0.1.el7_9.3
Oracle Linux 7pcs-snmp0.9.169-3.0.1.el7_9.3
rapidfort ubuntu 20.04ruby-rack0:2.1.4-5ubuntu1.1
rapidfort ubuntu 22.04ruby-rack0:2.1.4-5ubuntu1.1
rapidfort ubuntu 24.04ruby-rack0:2.1.4-5ubuntu1.1
Red Hatrubygem-rackno fix listed
ubuntu 14.04-ESMruby-rack1.5.2-3+deb8u3ubuntu1~esm4
ubuntu 16.04-ESMruby-rack1.6.4-3ubuntu0.2+esm2
ubuntu 18.04-ESMruby-rack1.6.4-4ubuntu0.2+esm2
ubuntu 20.04-ESMruby-rack2.0.7-2ubuntu0.1+esm2
ubuntu 22.04ruby-rack2.1.4-5ubuntu1.1

References

All 19 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.