CVE-2026-33169
JSON

6.9medium

Rails Active Support has a possible ReDoS vulnerability in number_to_delimited

Severity
6.9medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.72% (higher than 55% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-cg4j-q9v8-6v38

Description

Active Support is a toolkit of support libraries and Ruby core extensions extracted from the Rails framework. `NumberToDelimitedConverter` uses a lookahead-based regular expression with `gsub!` to insert thousands delimiters. Prior to versions 8.1.2.1, 8.0.4.1, and 7.2.3.1, the interaction between the repeated lookahead group and `gsub!` can produce quadratic time complexity on long digit strings. Versions 8.1.2.1, 8.0.4.1, and 7.2.3.1 contain a patch.

Affected

Product or packageVersionsReported by
rails activesupport>= 8.1.0.beta1, < 8.1.2.1, >= 8.0.0.beta1, < 8.0.4.1, < 7.2.3.1CVE List
activesupport (RubyGems)from 8.1.0.beta1 before 8.1.2.1, from 8.0.0.beta1 before 8.0.4.1, before 7.2.3.1GitHub Advisory Database
rubyonrails railsbefore 7.2.3.1, from 8.0.0 before 8.0.4.1, from 8.1.0 before 8.1.2.1NVD

All scores

GitHub_M6.9medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
NVD5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Classification

CWE-400CWE-1333

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

Active Support is a toolkit of support libraries and Ruby core extensions extracted from the Rails framework. `NumberToDelimitedConverter` uses a lookahead-based regular expression with `gsub!` to insert thousands delimiters. Prior to versions 8.1.2.1, 8.0.4.1, and 7.2.3.1, the interaction between the repeated lookahead group and `gsub!` can produce quadratic time complexity on long digit strings. Versions 8.1.2.1, 8.0.4.1, and 7.2.3.1 contain a patch.

GitHub Advisory Database
Impact

NumberToDelimitedConverter used a regular expression with gsub! to insert thousands delimiters. This could produce quadratic time complexity on long digit strings.

Releases

The fixed releases are available at the normal locations.

Credit

This issue was responsibly reported by Hackerone researcher scyoon.

NVD (es)

Active Support es un conjunto de herramientas de bibliotecas de soporte y extensiones del núcleo de Ruby extraídas del framework Rails. 'NumberToDelimitedConverter' utiliza una expresión regular basada en lookahead con 'gsub!' para insertar delimitadores de millares. Antes de las versiones 8.1.2.1, 8.0.4.1 y 7.2.3.1, la interacción entre el grupo lookahead repetido y 'gsub!' puede producir una complejidad de tiempo cuadrática en cadenas de dígitos largas. Las versiones 8.1.2.1, 8.0.4.1 y 7.2.3.1 contienen un parche.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-33169 changed 2026-03-24CVE Terms of Use
GitHub Advisory DatabaseGHSA-cg4j-q9v8-6v38 changed 2026-09-10CC-BY-4.0
NVDCVE-2026-33169 changed 2026-06-17Public domain