CVE-2021-22902
medium
CVSS v3
—
CVSS v2
—
VIR risk
5.5
Description
The actionpack ruby gem (a framework for handling and responding to web requests in Rails) before 6.0.3.7, 6.1.3.2 suffers from a possible denial of service vulnerability in the Mime type parser of Action Dispatch. Carefully crafted Accept headers can cause the mime type parser in Action Dispatch to do catastrophic backtracking in the regular expression engine.
Predictions
Exploit likelihood
30%
Patch ETA
—
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2021-22902
Vendor advisory: suse — https://www.suse.com/security/cve/CVE-2021-22902.html
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| arch | fixed | 14.1.0-1 | |
| sles | affected | | |
| debian | bookworm | fixed | 2:6.0.3.7+dfsg-1 |
| debian | bullseye | fixed | 2:6.0.3.7+dfsg-1 |
| debian | forky | fixed | 2:6.0.3.7+dfsg-1 |
| debian | sid | fixed | 2:6.0.3.7+dfsg-1 |
| debian | trixie | fixed | 2:6.0.3.7+dfsg-1 |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| RubyGems | actionpack | !< 6.0.0||<~> 6.0.3, >= 6.0.3.7 | ~> 6.0.3, >= 6.0.3.7 |
| RubyGems | actionpack | >=6.0.0,<6.0.3.7 | 6.0.3.7 |
| RubyGems | actionpack | >=6.1.0,<6.1.3.2 | 6.1.3.2 |
References
- https://groups.google.com/g/rubyonrails-security/c/_5ID_ld9u1c
- https://www.suse.com/security/cve/CVE-2021-22902.html
- https://nvd.nist.gov/vuln/detail/CVE-2021-22902
- https://hackerone.com/reports/1138654
- https://discuss.rubyonrails.org/t/cve-2021-22902-possible-denial-of-service-vulnerability-in-action-dispatch/77866
- https://github.com/rails/rails/releases/tag/v6.0.3.7
- https://github.com/rails/rails/releases/tag/v6.1.3.2
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2021-22902.yml
- https://security-tracker.debian.org/tracker/CVE-2021-22902
Verify integrity in audit chain (admin only). AS-IS.