Bug 2164736 (CVE-2023-22796)

Summary: CVE-2023-22796 rubygem-activesupport: Regular Expression Denial of Service
Product: [Other] Security Response Reporter: ybuenos
Component: vulnerabilityAssignee: Nobody <nobody>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: amackenz, amasferr, bbuckingham, bcourt, chazlett, ehelms, jcantril, jsherril, lzap, mhulan, mkudlej, nmoumoul, orabin, pcreech, periklis, rchan, tjochec
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-02 18:08:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2164737, 2164738, 2164740, 2164743, 2164744, 2178591    
Bug Blocks: 2162605    

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