cve.bz

CVE-2022-30123

10.0 criticalEPSS 2.0%Fix available

Critical (10.0). EPSS 2.0% estimated probability of exploitation activity in the next 30 days. Fixed in rack 2.0.9.1, 2.1.4.1, 2.2.3.1.

On this page
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.

Severity

CVSS 3.1

10.0 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
EPSS
2.0% (unchanged from 2.0% a week ago; 2.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 81st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-150 Improper Neutralization of Escape, Meta, or Control Sequences
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-30123 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-30123?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-30123?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-30123 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
rack_project:rackbefore 2.0.9.1
rack_project:rackfrom 2.1.0 before 2.1.4.1
rack_project:rackfrom 2.2.0 before 2.2.3.1
debian:debian_linux11.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-wq4h-7r42-5hrrRubyGemsrack<2.0.9.12.0.9.1
GHSA-wq4h-7r42-5hrrRubyGemsrack>=2.1 <2.1.4.12.1.4.1
GHSA-wq4h-7r42-5hrrRubyGemsrack>=2.2 <2.2.3.12.2.3.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10ruby-rack2.0.6-3+deb10u1DLA-3095-1
Debian11ruby-rack2.1.4-3+deb11u1DSA-5530-1
Debian12, 13, 14ruby-rack2.2.4-1DEBIAN-CVE-2022-30123
Ubuntu22.04:LTSruby-rack2.1.4-5ubuntu1.1UBUNTU-CVE-2022-30123 USN-7036-1
UbuntuPro:14.04:LTSruby-rack1.5.2-3+deb8u3ubuntu1~esm4UBUNTU-CVE-2022-30123 USN-5253-1
UbuntuPro:16.04:LTSruby-rack1.6.4-3ubuntu0.2+esm2UBUNTU-CVE-2022-30123 USN-5253-1
UbuntuPro:18.04:LTSruby-rack1.6.4-4ubuntu0.2+esm2UBUNTU-CVE-2022-30123 USN-5253-1 USN-5896-1
UbuntuPro:20.04:LTSruby-rack2.0.7-2ubuntu0.1+esm2UBUNTU-CVE-2022-30123 USN-5253-1 USN-5896-1
UbuntuPro:22.04:LTSruby-rack2.1.4-5ubuntu1+esm2UBUNTU-CVE-2022-30123 USN-5896-1
Red Hatenterprise_linux:7::serverpcs, pcs-snmp, pcs-debuginfo0:0.9.169-3.el7_9.3RHSA-2022:7343
Red Hatstorage:3.5:wa:el7grafana0:5.2.4-6.el7rhgsRHSA-2023:1486
Red Hatstorage:3.5:wa:el7rubygem-puma, rubygem-puma-doc, rubygem-puma-debuginfo0:4.3.12-1.el7rhgsRHSA-2023:1486
Red Hatstorage:3.5:wa:el7rubygem-rack, rubygem-rack-doc0:2.2.4-1.el7rhgsRHSA-2023:1486
Red Hatstorage:3.5:wa:el7rubygem-tzinfo, rubygem-tzinfo-doc0:1.2.10-1.el7rhgsRHSA-2023:1486
SUSELinux Enterprise High Availability Extension 15, Linux Enterprise High Availability Extension 15 SP1, Linux Enterprise High Availability Extension 15 SP2 and 2 morerubygem-rack2.0.8-150000.3.6.1SUSE-SU-2022:2192-1
SUSEOpenStack Cloud Crowbar 8, OpenStack Cloud Crowbar 9rubygem-rack1.6.13-3.13.1SUSE-SU-2022:2526-1
openSUSELeap 15.3, Leap 15.4rubygem-rack2.0.8-150000.3.6.1SUSE-SU-2022:2192-1
openSUSETumbleweedruby3.2-rubygem-rack3.0.7-1.2openSUSE-SU-2024:13167-1
openSUSETumbleweedruby3.2-rubygem-rack-2.22.2.7-1.1openSUSE-SU-2024:12974-1
openSUSETumbleweedrubygem-rack2.2.3.1-1.1openSUSE-SU-2024:12119-1
openSUSETumbleweedrubygem-rack3.0.9.1-1.1openSUSE-SU-2024:13726-1
openSUSETumbleweedrubygem-rack3.1.12-1.1openSUSE-SU-2025:14875-1
openSUSETumbleweedrubygem-rack3.1.18-1.3openSUSE-SU-2026:10358-1
openSUSETumbleweedrubygem-rack-2.22.2.11-1.1openSUSE-SU-2025:14811-1
openSUSETumbleweedrubygem-rack-2.22.2.22-1.1openSUSE-SU-2026:10286-1
openSUSETumbleweedrubygem-rack-2.22.2.4-1.1openSUSE-SU-2024:12397-1
openSUSETumbleweedrubygem-rack-2.22.2.8.1-1.1openSUSE-SU-2024:13727-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

- Because Red Hat OpenStack Platform 13.0 Operational Tools packaged the flawed code, but does not use its functionality, its Impact has been reduced to 'Low'.

- To exploit this vulnerability, applications should have either of these middlewares 'Lint' or 'CommonLogger' installed, and vulnerable apps may have something like this:

'use Rack::Lint' OR 'use Rack::CommonLogger'

The Red Hat products use the flawed code but don't use its functionality, Hence, the impact is set to Important.

- Logging Subsystem for Red Hat OpenShift uses the vulnerable ruby gem-rack package in the openshift-logging/fluentd-rhel8 component to instantiate client-to-server communication. But, this component cannot receive any requests so exploitation by crafted request consumption is not possible. Therefore the impact of this vulnerability on the Logging Subsystem for Red Hat OpenShift is reduced to Moderate.

ProductPackageStateAdvisory
Logging subsystem for Red Hat OpenShift 5.4openshift-logging/fluentd-rhel8:v1.14.5-51Fixed 2023-02-15RHSA-2023:0632
Red Hat Enterprise Linux 7pcs-0:0.9.169-3.el7_9.3Fixed 2022-11-02RHSA-2022:7343
Red Hat Gluster Storage 3.5 for RHEL 7rubygem-rack-0:2.2.4-1.el7rhgsFixed 2023-03-28RHSA-2023:1486
Red Hat OpenStack Platform 13 (Queens) Operational Toolsrubygem-rackWill not fix
Red Hat Satellite 6rubygem-rackNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-30123.

Attack patterns (CAPEC)

  • CAPEC-41 Using Meta-characters in E-mail Headers to Inject Malicious Payloads Likelihood: High · Severity: High
  • CAPEC-81 Web Server Logs Tampering Likelihood: Medium · Severity: High
  • CAPEC-93 Log Injection-Tampering-Forging Likelihood: High · Severity: High
  • CAPEC-134 Email Injection Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON