Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. rails
  4. ›
  5. CVE-2021-22904

CVE-2021-22904: Uncontrolled Resource Consumption

June 11, 2021 (updated September 20, 2021)

There is a possible DoS vulnerability in the Token Authentication logic in Action Controller. Impacted code uses authenticate_or_request_with_http_token or authenticate_with_http_token for request authentication.

References

  • groups.google.com/g/rubyonrails-security/c/Pf1TjkOBdyQ
  • nvd.nist.gov/vuln/detail/CVE-2021-22904

Code Behaviors & Features

Detect and mitigate CVE-2021-22904 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 5.2.4.6, all versions starting from 5.2.5 before 5.2.6, all versions starting from 6.0.0 before 6.0.3.7, all versions starting from 6.1.0 before 6.1.3.2

Fixed versions

  • 5.2.4.6
  • 5.2.6
  • 6.0.3.7
  • 6.1.3.2

Solution

Upgrade to versions 5.2.4.6, 5.2.6, 6.0.3.7, 6.1.3.2 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Source file

gem/rails/CVE-2021-22904.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:46 +0000.