CVE-2021-22880 Active Record subject to Regular Expression Denial-of-Service (ReDoS)
HighCVSS 7.5
EPSS 4.5%
PoC
- Published
- Updated
- Exploit status
- Proof-of-concept only
- Technology
- UbuntuDebian
Description
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.
Upgrade path
15 packages: 5 fixed, 9 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/rails(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/rails(Ubuntu 24.04) | = 2:6.1.7.3+dfsg-2build1; = 2:6.1.7.3+dfsg-3; All versions | No fix listed | No fix yet |
| ubuntu/rails(Ubuntu 25.10) | = 2:6.1.7.3+dfsg-7; = 2:7.2.2.1+dfsg-7; All versions | No fix listed | No fix yet |
| ubuntu/rails(Ubuntu 26.04) | = 2:7.2.2.1+dfsg-7; = 2:7.2.2.2+dfsg-2; = 2:7.2.3+dfsg-2; All versions | No fix listed | No fix yet |
| ubuntu/rails(Ubuntu 26.10) | = 2:7.2.3+dfsg-2; = 2:7.2.3.2+dfsg-2; All versions | No fix listed | No fix yet |
| ubuntu/rails(Ubuntu Pro 16.04) | = 2:4.1.10-1; = 2:4.2.5-1; = 2:4.2.5.1-1; = 2:4.2.5.2-2 +4 more | No fix listed | No fix yet |
| ubuntu/rails(Ubuntu Pro 18.04) | = 2:4.2.9-2; = 2:4.2.9-4; = 2:4.2.10-0ubuntu4; = 2:4.2.10-0ubuntu4+esm1 +2 more | No fix listed | No fix yet |
| ubuntu/rails(Ubuntu Pro 20.04) | = 2:5.2.2.1+dfsg-1ubuntu1; = 2:5.2.3+dfsg-3; = 2:5.2.3+dfsg-3ubuntu0.1~esm1; All versions | No fix listed | No fix yet |
| ubuntu/rails(Ubuntu Pro 22.04) | = 2:6.0.3.7+dfsg-2; = 2:6.1.4.1+dfsg-8ubuntu2; = 2:6.1.4.1+dfsg-8ubuntu2+esm1; All versions | No fix listed | No fix yet |
| debian/rails(Debian 12) | < 2:6.0.3.5+dfsg-1 | 2:6.0.3.5+dfsg-1 | Fixed |
| debian/rails(Debian 13) | < 2:6.0.3.5+dfsg-1 | 2:6.0.3.5+dfsg-1 | Fixed |
| debian/rails(Debian 14) | < 2:6.0.3.5+dfsg-1 | 2:6.0.3.5+dfsg-1 | Fixed |
| rubygems activerecord(RubyGems) | = 5.0.0; = 5.0.0.1; = 5.0.1; = 5.0.1.rc1 +76 more | 5.2.4.5, 6.0.3.5, 6.1.2.1 | Fixed |
| rubyonrails rails | >= 4.2.0, < 5.2.4.5; >= 6.0.0, < 6.0.3.5; >= 6.1.0, < 6.1.2.1 | 5.2.4.5, 6.0.3.5, 6.1.2.1 | Fixed |
| fedoraproject fedora | = 32; = 33 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| rubygems activerecord(RubyGems) | >= 5.0.0, <= 5.2.4.4 | No fix listed |
| rubygems activerecord(RubyGems) | >= 6.0.0, <= 6.0.3.4 | No fix listed |
| rubygems activerecord(RubyGems) | >= 6.1.0, <= 6.1.2.0 | No fix listed |
| rubygems activerecord(RubyGems) | >= 5.0.0, < 5.2.4.5 | 5.2.4.5 |
| rubygems activerecord(RubyGems) | = 5.0.0 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.0.0.1 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.0.1 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.0.1.rc1 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.0.1.rc2 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.0.2 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.0.2.rc1 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.0.3 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.0.4 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.0.4.rc1 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.0.5 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.0.5.rc1 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.0.5.rc2 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.0.6 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.0.6.rc1 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.0.7 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.0.7.1 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.0.7.2 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.1.0 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.1.0.beta1 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.1.0.rc1 | No fix listed |
Show 99 more
| Product | Affected versions | Fixed in |
|---|---|---|
| rubygems activerecord(RubyGems) | = 5.1.0.rc2 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.1.1 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.1.2 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.1.2.rc1 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.1.3 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.1.3.rc1 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.1.3.rc2 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.1.3.rc3 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.1.4 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.1.4.rc1 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.1.5 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.1.5.rc1 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.1.6 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.1.6.1 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.1.6.2 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.1.7 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.1.7.rc1 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.2.0 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.2.0.beta1 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.2.0.beta2 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.2.0.rc1 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.2.0.rc2 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.2.1 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.2.1.1 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.2.1.rc1 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.2.2 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.2.2.1 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.2.2.rc1 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.2.3 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.2.3.rc1 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.2.4 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.2.4.1 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.2.4.2 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.2.4.3 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.2.4.4 | No fix listed |
| rubygems activerecord(RubyGems) | = 5.2.4.rc1 | No fix listed |
| rubygems activerecord(RubyGems) | >= 6.0.0, < 6.0.3.5 | 6.0.3.5 |
| rubygems activerecord(RubyGems) | = 6.0.0 | No fix listed |
| rubygems activerecord(RubyGems) | = 6.0.1 | No fix listed |
| rubygems activerecord(RubyGems) | = 6.0.1.rc1 | No fix listed |
| rubygems activerecord(RubyGems) | = 6.0.2 | No fix listed |
| rubygems activerecord(RubyGems) | = 6.0.2.1 | No fix listed |
| rubygems activerecord(RubyGems) | = 6.0.2.2 | No fix listed |
| rubygems activerecord(RubyGems) | = 6.0.2.rc1 | No fix listed |
| rubygems activerecord(RubyGems) | = 6.0.2.rc2 | No fix listed |
| rubygems activerecord(RubyGems) | = 6.0.3 | No fix listed |
| rubygems activerecord(RubyGems) | = 6.0.3.1 | No fix listed |
| rubygems activerecord(RubyGems) | = 6.0.3.2 | No fix listed |
| rubygems activerecord(RubyGems) | = 6.0.3.3 | No fix listed |
| rubygems activerecord(RubyGems) | = 6.0.3.4 | No fix listed |
| rubygems activerecord(RubyGems) | = 6.0.3.rc1 | No fix listed |
| rubygems activerecord(RubyGems) | >= 6.1.0, < 6.1.2.1 | 6.1.2.1 |
| rubygems activerecord(RubyGems) | = 6.1.0 | No fix listed |
| rubygems activerecord(RubyGems) | = 6.1.1 | No fix listed |
| rubygems activerecord(RubyGems) | = 6.1.2 | No fix listed |
| debian/rails(Debian:12) | < 2:6.0.3.5+dfsg-1 | 2:6.0.3.5+dfsg-1 |
| debian/rails(Debian:13) | < 2:6.0.3.5+dfsg-1 | 2:6.0.3.5+dfsg-1 |
| debian/rails(Debian:14) | < 2:6.0.3.5+dfsg-1 | 2:6.0.3.5+dfsg-1 |
| rubyonrails rails | >= 4.2.0, < 5.2.4.5 | 5.2.4.5 |
| rubyonrails rails | >= 6.0.0, < 6.0.3.5 | 6.0.3.5 |
| rubyonrails rails | >= 6.1.0, < 6.1.2.1 | 6.1.2.1 |
| fedoraproject fedora | = 32 | No fix listed |
| fedoraproject fedora | = 33 | No fix listed |
| ubuntu/rails(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/rails(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/rails(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/rails(Ubuntu:26.10) | All versions | No fix listed |
| ubuntu/rails(Ubuntu:Pro:16.04) | All versions | No fix listed |
| ubuntu/rails(Ubuntu:Pro:16.04) | = 2:4.1.10-1 | No fix listed |
| ubuntu/rails(Ubuntu:Pro:16.04) | = 2:4.2.5-1 | No fix listed |
| ubuntu/rails(Ubuntu:Pro:16.04) | = 2:4.2.5.1-1 | No fix listed |
| ubuntu/rails(Ubuntu:Pro:16.04) | = 2:4.2.5.2-2 | No fix listed |
| ubuntu/rails(Ubuntu:Pro:16.04) | = 2:4.2.6-1 | No fix listed |
| ubuntu/rails(Ubuntu:Pro:16.04) | = 2:4.2.6-1ubuntu0.1~esm1 | No fix listed |
| ubuntu/rails(Ubuntu:Pro:16.04) | = 2:4.2.6-1ubuntu0.1~esm2 | No fix listed |
| ubuntu/rails(Ubuntu:Pro:18.04) | All versions | No fix listed |
| ubuntu/rails(Ubuntu:Pro:18.04) | = 2:4.2.9-2 | No fix listed |
| ubuntu/rails(Ubuntu:Pro:18.04) | = 2:4.2.9-4 | No fix listed |
| ubuntu/rails(Ubuntu:Pro:18.04) | = 2:4.2.10-0ubuntu4 | No fix listed |
| ubuntu/rails(Ubuntu:Pro:18.04) | = 2:4.2.10-0ubuntu4+esm1 | No fix listed |
| ubuntu/rails(Ubuntu:Pro:18.04) | = 2:4.2.10-0ubuntu4+esm2 | No fix listed |
| ubuntu/rails(Ubuntu:Pro:20.04) | All versions | No fix listed |
| ubuntu/rails(Ubuntu:Pro:20.04) | = 2:5.2.2.1+dfsg-1ubuntu1 | No fix listed |
| ubuntu/rails(Ubuntu:Pro:20.04) | = 2:5.2.3+dfsg-3 | No fix listed |
| ubuntu/rails(Ubuntu:Pro:20.04) | = 2:5.2.3+dfsg-3ubuntu0.1~esm1 | No fix listed |
| ubuntu/rails(Ubuntu:Pro:22.04) | All versions | No fix listed |
| ubuntu/rails(Ubuntu:Pro:22.04) | = 2:6.0.3.7+dfsg-2 | No fix listed |
| ubuntu/rails(Ubuntu:Pro:22.04) | = 2:6.1.4.1+dfsg-8ubuntu2 | No fix listed |
| ubuntu/rails(Ubuntu:Pro:22.04) | = 2:6.1.4.1+dfsg-8ubuntu2+esm1 | No fix listed |
| ubuntu/rails(Ubuntu:24.04) | = 2:6.1.7.3+dfsg-2build1 | No fix listed |
| ubuntu/rails(Ubuntu:24.04) | = 2:6.1.7.3+dfsg-3 | No fix listed |
| ubuntu/rails(Ubuntu:25.10) | All versions | No fix listed |
| ubuntu/rails(Ubuntu:25.10) | = 2:6.1.7.3+dfsg-7 | No fix listed |
| ubuntu/rails(Ubuntu:25.10) | = 2:7.2.2.1+dfsg-7 | No fix listed |
| ubuntu/rails(Ubuntu:26.10) | = 2:7.2.3+dfsg-2 | No fix listed |
| ubuntu/rails(Ubuntu:26.10) | = 2:7.2.3.2+dfsg-2 | No fix listed |
| ubuntu/rails(Ubuntu:26.04) | = 2:7.2.2.1+dfsg-7 | No fix listed |
| ubuntu/rails(Ubuntu:26.04) | = 2:7.2.2.2+dfsg-2 | No fix listed |
| ubuntu/rails(Ubuntu:26.04) | = 2:7.2.3+dfsg-2 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- hackerone.com exploit issue-tracking patch third-party-advisory
- discuss.rubyonrails.org issue-tracking mitigation patch vendor-advisory
- lists.fedoraproject.org
- lists.fedoraproject.org
- DSA-4929 third-party-advisory vendor-advisory
- security.netapp.com third-party-advisory
- github.com exploit
- groups.google.com
- github.com
- github.com
- Debian Security Tracker CVE-2021-22880 vendor-advisory
- FEDORA-2021-def0e32233 vendor-advisory
- FEDORA-2021-b571fca1b8 vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- www.cve.org issue-tracking