CVE-2023-22796: High severity Activesupport Project Activesupport Ruby vulnerability

Published Jan 18, 2023
·
Updated

A regular expression based DoS vulnerability in Active Support <6.1.7.1 and <7.0.4.1. A specially crafted string passed to the underscore method 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.

Other sources

A specially crafted string passed to the underscore method 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.

This affects String#underscore, ActiveSupport::Inflector.underscore, String#titleize, and any other methods using these.

— Red Hat

Affected Software

15 affected componentsFixes available
rubygems/activesupport<6.1.7.1
6.1.7.1
rubygems/activesupport>=7.0.0<7.0.4.1
7.0.4.1
redhat/rubygem-activerecord<6.1.7.1
6.1.7.1
redhat/rubygem-activerecord<7.0.4.1
7.0.4.1
Activesupport Project Activesupport Ruby<6.1.7.1
Activesupport Project Activesupport Ruby>=7.0.0<7.0.4.1
debian/rails
2:6.1.7.10+dfsg-1~deb12u22:6.1.7.10+dfsg-1~deb12u32:7.2.2.2+dfsg-2~deb13u12:7.2.2.2+dfsg-2~deb13u22:7.2.4+dfsg-12:7.2.4+dfsg-2
alpine/ruby-activesupport>=7.0.0<7.0.4.3-r0
7.0.4.3-r0
alpine/ruby-activesupport>=7.0.0<7.0.4.3-r0
7.0.4.3-r0
alpine/ruby-activesupport>=7.0.0<7.0.4.3-r0
7.0.4.3-r0
alpine/ruby-activesupport>=7.0.0<7.0.4.3-r0
7.0.4.3-r0
alpine/ruby-activesupport>=7.0.0<7.0.4.3-r0
7.0.4.3-r0
alpine/ruby-activesupport>=7.0.0<7.0.4.3-r0
7.0.4.3-r0
alpine/ruby-activesupport>=7.0.0<7.0.4.3-r0
7.0.4.3-r0
alpine/ruby-activesupport>=7.0.0<7.0.4.3-r0
7.0.4.3-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade rubygems/activesupport to a version that resolves this vulnerability.

    Fixed in 6.1.7.1
  2. Upgrade

    Upgrade rubygems/activesupport to a version that resolves this vulnerability.

    Fixed in 7.0.4.1
  3. Upgrade

    Upgrade redhat/rubygem-activerecord to a version that resolves this vulnerability.

    Fixed in 6.1.7.1
  4. Upgrade

    Upgrade redhat/rubygem-activerecord to a version that resolves this vulnerability.

    Fixed in 7.0.4.1
  5. Upgrade

    Upgrade debian/rails to a version that resolves this vulnerability.

    Fixed in 2:6.1.7.10+dfsg-1~deb12u2Fixed in 2:6.1.7.10+dfsg-1~deb12u3Fixed in 2:7.2.2.2+dfsg-2~deb13u1Fixed in 2:7.2.2.2+dfsg-2~deb13u2Fixed in 2:7.2.4+dfsg-1Fixed in 2:7.2.4+dfsg-2
  6. Upgrade

    Upgrade alpine/ruby-activesupport to a version that resolves this vulnerability.

    Fixed in 7.0.4.3-r0
  7. Upgrade

    Upgrade Active Support to a version that resolves this vulnerability.

    Fixed in 5.2.8.15
  8. Upgrade

    Upgrade Active Support to a version that resolves this vulnerability.

    Fixed in 6.1.7.1Patch 6-1-Avoid-regex-backtracking-in-Inflector.underscore.patch
  9. Upgrade

    Upgrade Active Support to a version that resolves this vulnerability.

    Fixed in 7.0.4.1Patch 7-0-Avoid-regex-backtracking-in-Inflector.underscore.patch

Event History

Jan 18, 2023
Advisory Published
06:23 PM
Jan 30, 2023
Data Sourced
06:00 PM
SeverityAffected Software
Feb 9, 2023
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Data Sourced
via NVD·08:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·08:15 PM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the vulnerability ID for this vulnerability?

The vulnerability ID for this vulnerability is CVE-2023-22796.

2

What is the severity level of CVE-2023-22796?

The severity level of CVE-2023-22796 is high, with a severity value of 7.5.

3

Which versions of Active Support are affected?

Versions of Active Support <6.1.7.1 and <7.0.4.1 are affected.

4

How can I fix CVE-2023-22796?

You can fix CVE-2023-22796 by updating to one of the fixed versions: 5.2.8.15 (Rails LTS), 6.1.7.1, or 7.0.4.1.

5

Where can I find more information about CVE-2023-22796?

You can find more information about CVE-2023-22796 in the following references: [GitHub](https://github.com/rails/rails/releases/tag/v7.0.4.1), [Ruby Advisory DB](https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activesupport/CVE-2023-22796.yml), [Ruby on Rails blog](https://rubyonrails.org/2023/1/17/Rails-Versions-6-0-6-1-6-1-7-1-7-0-4-1-have-been-released).

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