Vulnerability · Published Feb 9, 2023 · Assigned by hackerone

CVE-2023-22792

High 7.5

In plain English

A high-severity uncontrolled resource consumption in https://github.com/rails/rails. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.7% (higher than 77% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.7%top 22.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

A regular expression based DoS vulnerability in Action Dispatch <6.0.6.1,< 6.1.7.1, and <7.0.4.1. Specially crafted cookies, in combination with a specially crafted X_FORWARDED_HOST header can cause the regular expression engine to enter a state of catastrophic backtracking. This can cause the process to use large amounts of CPU and memory, leading to a possible DoS vulnerability All users running an affected release should either upgrade or use one of the workarounds immediately.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12rails2:6.1.7.3+dfsg-1DEBIAN-CVE-2023-22792
Debian:13rails2:6.1.7.3+dfsg-1DEBIAN-CVE-2023-22792
Debian:14rails2:6.1.7.3+dfsg-1DEBIAN-CVE-2023-22792
RubyGemsactionpack5.2.8.15GHSA-p84v-45xj-wwqj
RubyGemsactionpack6.1.7.1GHSA-p84v-45xj-wwqj
RubyGemsactionpack7.0.4.1GHSA-p84v-45xj-wwqj
Ubuntu:24.04:LTSrailsno fix listedUBUNTU-CVE-2023-22792
Ubuntu:25.10railsno fix listedUBUNTU-CVE-2023-22792
Ubuntu:26.04:LTSrailsno fix listedUBUNTU-CVE-2023-22792
Ubuntu:26.10railsno fix listedUBUNTU-CVE-2023-22792

Affected products (as reported)

VendorProductVersions
n/a https://github.com/rails/rails 6.0.6.1, 6.1.7.1, 7.0.4.1

Weakness: CWE-400 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References