Bug 2164736 (CVE-2023-22796) - CVE-2023-22796 rubygem-activesupport: Regular Expression Denial of Service
Summary: CVE-2023-22796 rubygem-activesupport: Regular Expression Denial of Service
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2023-22796
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On: 2164737 2164738 2164740 2164743 2164744 2178591
Blocks: 2162605
TreeView+ depends on / blocked
 
Reported: 2023-01-26 10:18 UTC by ybuenos
Modified: 2023-11-08 14:17 UTC (History)
17 users (show)

Fixed In Version: rubygem-activerecord 6.1.7.1, rubygem-activerecord 7.0.4.1
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in rubygem-activesupport. RubyGem's activesupport gem is vulnerable to a denial of service caused by a regular expression denial of service (ReDoS) flaw in Inflector.underscore. By sending a specially-crafted regex input, a remote attacker can use large amounts of CPU and memory, resulting in a denial of service.
Clone Of:
Environment:
Last Closed: 2023-08-02 18:08:58 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2023:4341 0 None None None 2023-08-02 13:49:44 UTC
Red Hat Product Errata RHSA-2023:6818 0 None None None 2023-11-08 14:17:11 UTC

Description ybuenos 2023-01-26 10:18:36 UTC
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.

Comment 1 ybuenos 2023-01-26 10:19:16 UTC
Created rubygem-activerecord tracking bugs for this issue:

Affects: fedora-all [bug 2164737]

Comment 3 ybuenos 2023-01-26 10:26:15 UTC
Created rubygem-activesupport tracking bugs for this issue:

Affects: fedora-all [bug 2164740]

Comment 12 errata-xmlrpc 2023-08-02 13:49:42 UTC
This issue has been addressed in the following products:

  RHOL-5.7-RHEL-8

Via RHSA-2023:4341 https://access.redhat.com/errata/RHSA-2023:4341

Comment 13 Product Security DevOps Team 2023-08-02 18:08:56 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2023-22796

Comment 14 errata-xmlrpc 2023-11-08 14:17:10 UTC
This issue has been addressed in the following products:

  Red Hat Satellite 6.14 for RHEL 8

Via RHSA-2023:6818 https://access.redhat.com/errata/RHSA-2023:6818


Note You need to log in before you can comment on or make changes to this bug.