CVE-2021-22904
Description
The actionpack ruby gem before 6.1.3.2, 6.0.3.7, 5.2.4.6, 5.2.6 suffers from a possible denial of service vulnerability in the Token Authentication logic in Action Controller due to a too permissive regular expression. Impacted code uses `authenticate_or_request_with_http_token` or `authenticate_with_http_token` for request authentication.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
SUSE Affected 1 release
| Version | Status | Fixed in |
|---|---|---|
| โ | Affected | โ |
Arch Fixed 1 release
| Version | Status | Fixed in |
|---|---|---|
| โ | Fixed | 4.2.2-1 |
Debian Fixed 5 releases
| Version | Status | Fixed in |
|---|---|---|
| trixie | Fixed | 2:6.0.3.7+dfsg-1 |
| sid | Fixed | 2:6.0.3.7+dfsg-1 |
| forky | Fixed | 2:6.0.3.7+dfsg-1 |
| bullseye | Fixed | 2:6.0.3.7+dfsg-1 |
| bookworm | Fixed | 2:6.0.3.7+dfsg-1 |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| RubyGems | actionpack | !< 4.0.0||<~> 5.2.4.6 | ~> 5.2.4.6 |
| 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 |
| RubyGems | actionpack | >=5.2.5,<5.2.6 | 5.2.6 |
| RubyGems | actionpack | >=4.0.0,<5.2.4.6 | 5.2.4.6 |
References
- https://groups.google.com/g/rubyonrails-security/c/Pf1TjkOBdyQ
- https://www.suse.com/security/cve/CVE-2021-22904.html
- https://nvd.nist.gov/vuln/detail/CVE-2021-22904
- https://hackerone.com/reports/1101125
- https://discuss.rubyonrails.org/t/cve-2021-22904-possible-dos-vulnerability-in-action-controller-token-authentication/77869
- https://github.com/rails/rails
- https://github.com/rails/rails/releases/tag/v5.2.4.6
- https://github.com/rails/rails/releases/tag/v5.2.6
- 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-22904.yml
- https://security.netapp.com/advisory/ntap-20210805-0009
- https://security-tracker.debian.org/tracker/CVE-2021-22904
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.