CVEvulnerability

CVE-2021-22904

7.5 HIGH Published 2021-06-11 Modified 2026-06-17 Official page ↗
Status
Modified
Published
2021-06-11
Last modified
2026-06-17
Assigner
[email protected]
CVSS 3.1 ([email protected])
7.5 HIGH — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.0 ([email protected])
5.0 MEDIUM — AV:N/AC:L/Au:N/C:N/I:N/A:P
Weaknesses
CWE-400

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.

Affected configurations

• rubyonrails rails (< 5.2.4.6) • rubyonrails rails (>= 5.2.5 < 5.2.6) • rubyonrails rails (>= 6.0.0 < 6.0.3.7) • rubyonrails rails (>= 6.1.0 < 6.1.3.2)

Related

Weakness · CWE (1)

  • CWE-400 Uncontrolled Resource Consumption weakness

References