LiveActive security incident?Get immediate response
CVE Record

CVE-2021-22904: 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 v...

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.

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

This flaw can let specially crafted HTTP token authentication input consume excessive server resources, causing a denial of service. Business impact is service disruption, not data theft, based on the supplied sources. Exposure depends on running vulnerable Rails Action Pack versions and using the affected token authentication helpers.

Executive priority

Treat as a targeted availability risk. Prioritize patching public or critical Rails services using HTTP token authentication, especially where downtime affects revenue, operations, or customer access.

Technical view

CVE-2021-22904 affects the actionpack gem in Rails before the listed fixed releases. The issue is in Action Controller Token Authentication, where an overly permissive regular expression can cause denial of service when impacted code uses authenticate_or_request_with_http_token or authenticate_with_http_token.

Likely exposure

Internet-facing Rails applications are most relevant when they run affected actionpack versions and use the named token authentication methods. Applications not using those helpers have materially lower exposure from the provided evidence.

Exploitation context

The source bundle does not show CISA KEV listing or cited active exploitation. Public references include a HackerOne report and Rails advisory, but the provided data supports only possible denial of service, not compromise or confirmed exploitation.

Researcher notes

Evidence is specific to Action Controller Token Authentication and CWE-400 resource consumption. The bundle lacks CVSS detail and does not prove exploitation. Avoid broad Rails exposure claims unless code review confirms the affected helpers are used.

Mitigation direction

  • Upgrade actionpack/Rails to the listed fixed releases or later.
  • Prioritize externally reachable applications using token authentication helpers.
  • Check Rails and vendor advisories for environment-specific guidance.
  • Review dependent products against vendor advisories, including NetApp where applicable.

Validation and detection

  • Inventory deployed actionpack gem versions across Rails applications.
  • Identify code paths using authenticate_or_request_with_http_token.
  • Identify code paths using authenticate_with_http_token.
  • Confirm production builds run fixed Rails or actionpack releases.
  • Review service metrics for unexplained resource spikes around token-authenticated endpoints.
Prepared
Confidence
medium
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-400: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Credential and access behavior lookup

The CVE wording references authentication or credential exposure, so valid-account and credential-access review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-22904 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Unknown
CVSS
Not scored
Known Exploited
No
Published
Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

0CVSS vectors
0Timeline events
0ADP providers
4Source links

CVSS and timeline data

No CVSS vectors or timeline events were available in the normalized CVE source material.

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
n/ahttps://github.com/rails/railsFixed in 6.1.3.2, 6.0.3.7, 5.2.4.6, 5.2.6Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-400 · source CWE mapping

Uncontrolled Resource Consumption

Uncontrolled Resource Consumption represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.