CVE-2023-22792
Ruby vulnerability analysis and mitigation

Overview

CVE-2023-22792 is a regular expression based Denial of Service (ReDoS) vulnerability affecting Action Dispatch in Ruby on Rails versions 3.0.0 through versions prior to 6.0.6.1, 6.1.7.1, and 7.0.4.1. The vulnerability was disclosed on January 17, 2023, and has been assigned a CVSS score of 7.5 (HIGH) (RubyRails Discussion, NetApp Security).

Technical details

The vulnerability occurs when specially crafted cookies are combined with a specially crafted X_FORWARDED_HOST header, causing the regular expression engine to enter a state of catastrophic backtracking. This condition can result in the process consuming excessive CPU and memory resources (RubyRails Discussion).

Impact

When successfully exploited, this vulnerability can lead to a Denial of Service (DoS) condition, causing the affected system to experience significant performance degradation due to excessive resource consumption (NetApp Security).

Mitigation and workarounds

Users are recommended to upgrade to the fixed versions (6.1.7.1, 7.0.4.1). For those unable to upgrade immediately, a temporary mitigation involves using a load balancer or other device to filter out malicious X_FORWARDED_HOST headers before they reach the application. Patches are available for supported release series in git-am format (RubyRails Discussion).

Additional resources


SourceThis report was generated using AI

Related Ruby vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-68271CRITICAL10
  • RubyRuby
  • openc3
NoYesJan 13, 2026
GHSA-5qw5-wf2q-f538HIGH8.8
  • RubyRuby
  • activerecord-jdbc-adapter
NoYesJan 16, 2026
CVE-2026-22589HIGH7.5
  • RubyRuby
  • spree_core
NoYesJan 10, 2026
GHSA-mpwp-4h2m-765cMEDIUM6.6
  • RubyRuby
  • activejob
NoYesJan 16, 2026
CVE-2026-22588MEDIUM6.5
  • RubyRuby
  • spree_api
NoYesJan 08, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management