Skip to main content
VulnerabilityPublished Updated

CVE-2024-0241: encoded_id-rails potential DOS vulnerability due to URIs with extremely long encoded IDs

Affects encoded_id-railsSource GCVE Database

0
Compare
Authoritative record:CVE-2024-0241· High 7.5

Not known to be exploited · CVSS 7.5 High : upgrade to 1.0.0.beta2 soon.

Data as of 13 Nov 2026, 20:27 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CISA-ADPCVSS 3.17.5
Patch
Available – fixed in 1.0.0.beta2
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 4 Jan 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 13 Nov 2026.

What to do

Upgrade encoded_id-rails to 1.0.0.beta2.

Affected software

ProductAffectedFixed in
RubyGemsencoded_id-railsAffected
  • <1.0.0.beta2
Fixed in
  • 1.0.0.beta2

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade encoded_id-rails to version 1.0.0.beta2 or later, where the vulnerability is fixed. No other mitigations are specified or required.

Description

encoded_id-rails versions prior to 1.0.0.beta2 are vulnerable to a denial-of-service (DoS) condition caused by processing extremely long encoded IDs in URIs. The vulnerability arises because the hashids library consumes excessive CPU and memory when handling very long encoded IDs, potentially leading to service disruption. Puma web server limits URI lengths and raises errors for overly long paths, but the CPU and memory exhaustion can occur before these limits are enforced. A fix is available in version 1.0.0.beta2.

References

Community reviews

Loading reviews…