CVE-2024-0241 encoded_id-rails Denial of Service Vulnerability

High 7.5 Published Updated

Remote attackers can cause denial of service by sending requests with extremely long ID parameters in the encoded_id-rails library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-0241?

CVE-2024-0241 is a high-severity denial of service vulnerability in diaconou:encodedid\, published on 4 Jan 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

encoded_id-rails versions before 1.0.0.beta2 are affected by an uncontrolled resource consumption vulnerability. A remote and unauthenticated attacker might cause a denial of service condition by sending an HTTP request with an extremely long "id" parameter.

Weakness: CWE-770, CWE-400

Which versions are affected by CVE-2024-0241?

2 open source packages ship an affected version, including encoded_id-rails. It affects 1 product.

PackageAffectedFixed in
encoded_id-rails RubyGemsAll versions1.0.0.beta2
encoded_id-rails RubyGemsAll versions1.0.0.beta2

Products include Diaconou Encodedid\.

How do I fix CVE-2024-0241?

Upgrade encoded_id-rails to 1.0.0.beta2 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2024-0241 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-0241 exists.

Sources

Also known as GHSA-3px7-jm2p-6h2c.

Is CVE-2024-0241 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free