CVE-2022-30123: Critical severity rack-project rack vulnerability

Published May 27, 2022
·
Updated

A flaw was found in ruby gem-rack. This flaw allows a malicious actor to craft requests that can cause shell escape sequences to be written to the terminal via rack's Lint middleware and CommonLogger middleware. This issue can leverage these escape sequences to execute commands in the victim's terminal.

Other sources

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.

Carefully crafted requests can cause shell escape sequences to be written to the terminal via Rack's Lint middleware and CommonLogger middleware. These escape sequences can be leveraged to possibly execute commands in the victim's terminal.

Reference:

https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2022-30123.yml

Red Hat

There is a possible shell escape sequence injection vulnerability in the Lint and CommonLogger components of Rack. This vulnerability has been assigned the CVE identifier CVE-2022-30123.

Versions Affected: All. Not affected: None Fixed Versions: 2.0.9.1, 2.1.4.1, 2.2.3.1

Impact Carefully crafted requests can cause shell escape sequences to be written to the terminal via Rack's Lint middleware and CommonLogger middleware. These escape sequences can be leveraged to possibly execute commands in the victim's terminal.

Impacted applications will have either of these middleware installed, and vulnerable apps may have something like this:

use Rack::Lint

Or

use Rack::CommonLogger

All users running an affected release should either upgrade or use one of the workarounds immediately.

Workarounds Remove these middleware from your application

Affected Software

13 affected componentsFixes available
redhat/pcs<0:0.9.169-3.el7_9.3
0:0.9.169-3.el7_9.3
redhat/rubygem-rack<0:2.2.4-1.el7
0:2.2.4-1.el7
rubygems/rack>=2.2<=2.2.3.0
2.2.3.1
rubygems/rack>=2.1<=2.1.4.0
2.1.4.1
rubygems/rack<=2.0.9.0
2.0.9.1
Rack Project Rack<2.0.9.1
Rack Project Rack>=2.1.0<2.1.4.1
Rack Project Rack>=2.2.0<2.2.3.1
redhat/rubygem-rack<2.0.9.1
2.0.9.1
redhat/rubygem-rack<2.1.4.1
2.1.4.1
redhat/rubygem-rack<2.2.3.1
2.2.3.1
Debian Debian Linux=11.0
debian/ruby-rack
2.1.4-3+deb11u22.1.4-3+deb11u32.2.6.4-1+deb12u12.2.13-1~deb12u13.1.12-1

Event History

May 27, 2022
CVE Published
12:00 AM
Advisory Published
04:36 PM
Dec 5, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Jan 12, 2024
Data Sourced
via Launchpad·12:08 AM
Description
Sep 28, 2024
Data Sourced
via Ubuntu·01:51 AM
RemedyDescriptionSeverityAffected Software
Mar 27, 2025
Data Sourced
via Debian·04:41 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2022-30123?

CVE-2022-30123 is a shell escape sequence injection vulnerability in the Lint and CommonLogger components of Rack.

2

What is the severity of CVE-2022-30123?

CVE-2022-30123 has a severity score of 10, which is classified as critical.

3

Which versions of Rack are affected by CVE-2022-30123?

All versions of Rack are affected by CVE-2022-30123.

4

How can I fix CVE-2022-30123?

To fix CVE-2022-30123, update to the fixed versions: 2.0.9.1, 2.1.4.1, or 2.2.3.1.

5

Where can I find more information about CVE-2022-30123?

You can find more information about CVE-2022-30123 in the following references: [Link 1](https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2022-30123.yml), [Link 2](https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=2099525), [Link 3](https://rubygems.org/gems/rack).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203