Bug 1930102 (CVE-2021-22880) - CVE-2021-22880 rubygem-activerecord: crafted input may cause a regular expression DoS
Summary: CVE-2021-22880 rubygem-activerecord: crafted input may cause a regular expres...
Keywords:
Status: NEW
Alias: CVE-2021-22880
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: 1930103 1931366 1932282 1932300 1932301
Blocks: 1930104 1997390
TreeView+ depends on / blocked
 
Reported: 2021-02-18 11:17 UTC by Marian Rehak
Modified: 2023-10-31 23:13 UTC (History)
32 users (show)

Fixed In Version: rubygem-activerecord 6.1.2.1, rubygem-activerecord 6.0.3.5, rubygem-activerecord 5.2.4.5
Doc Type: If docs needed, set a value
Doc Text:
The PostgreSQL adapter in Active Record suffers from a regular expression denial of service (REDoS) vulnerability. Carefully crafted input can cause the input validation in the `money` type of the PostgreSQL adapter in Active Record to spend too much time in a regular expression, resulting in the potential for a DoS attack. This only impacts Rails applications that are using PostgreSQL along with money type columns that take user input.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Marian Rehak 2021-02-18 11:17:55 UTC
The PostgreSQL adapter in Active Record before 6.1.2.1, 6.0.3.5, 5.2.4.5 suffers from a regular expression denial of service (REDoS) vulnerability. Carefully crafted input can cause the input validation in the `money` type of the PostgreSQL adapter in Active Record to spend too much time in a regular expression, resulting in the potential for a DoS attack. This only impacts Rails applications that are using PostgreSQL along with money type columns that take user input.

Upstream Reference:

https://discuss.rubyonrails.org/t/cve-2021-22880-possible-dos-vulnerability-in-active-record-postgresql-adapter/77129

Comment 1 Marian Rehak 2021-02-18 11:19:52 UTC
Created rubygem-activerecord tracking bugs for this issue:

Affects: fedora-all [bug 1930103]

Comment 3 Yadnyawalk Tale 2021-02-22 11:43:30 UTC
Hackerone's report: https://hackerone.com/reports/1023899

Comment 9 Yadnyawalk Tale 2021-02-24 13:20:48 UTC
Statement:

Red Hat Satellite ship affected version of rubygem-activerecord however, the product is not vulnerable to the flaw as it does not use the `money` field type in product code. We may update the rubygem-activerecord dependency in a future release.

Comment 21 timpowellcd 2023-10-30 21:25:22 UTC Comment hidden (spam)

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