CVE-2009-4124 Memory corruption in n/a

Critical 10.0 Published Updated

Heap-based buffer overflow in Ruby's string justification functions allows context-dependent attackers to execute arbitrary code.

Exploited in the wild
Not known
Login needed
Not stated
Attackable
Not stated
Victim action needed
Not stated
Fix
None listed

What is CVE-2009-4124?

CVE-2009-4124 is a critical memory corruption vulnerability in Ruby-Lang Ruby, published on 11 Dec 2009.

Official description

Heap-based buffer overflow in the rb_str_justify function in string.c in Ruby 1.9.1 before 1.9.1-p376 allows context-dependent attackers to execute arbitrary code via unspecified vectors involving (1) String#ljust, (2) String#center, or (3) String#rjust. NOTE: some of these details are obtained from third party information.

Weakness: CWE-119

Which versions are affected by CVE-2009-4124?

It affects 1 product.

Products include Ruby-Lang Ruby.

How do I fix CVE-2009-4124?

No fix has been published for CVE-2009-4124 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2009-4124 being exploited?

There is no known exploitation of CVE-2009-4124 in the wild and no public exploit code.

All Ruby-Lang Ruby vulnerabilities

Sources

Also known as GHSA-9mvm-2xp2-9wmw.

Is CVE-2009-4124 in your software?

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

Check your SBOMs for free