CVE-2024-0241: encoded_id-rails potential DOS vulnerability due to URIs with extremely long encoded IDs
Affects encoded_id-railsSource GCVE Database
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
Thin evidence
One scorer or none| CISA-ADP | CVSS 3.1 | 7.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:HExploitation evidence
Disclosed: evidence found.
CVE published 4 Jan 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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
| Product | Affected | Fixed in |
|---|---|---|
| RubyGemsencoded_id-rails | Affected
| Fixed in
|
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
- github.com/stevegeek/encoded_id-rails/security/advisories/GHSA-3px7-jm2p-6h2c (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2024-0241 (opens in a new tab)
- github.com/stevegeek/encoded_id-rails/commit/afa495a77b8a21ad582611f9cdc2081dc4018b91 (opens in a new tab)
- github.com/rubysec/ruby-advisory-db/blob/master/gems/encoded_id-rails/CVE-2024-0241.yml (opens in a new tab)
- github.com/stevegeek/encoded_id-rails (opens in a new tab)