CVE-2009-4124: Buffer Overflow

Published Dec 11, 2009
·
Updated

Heap-based buffer overflow in the rbstrjustify 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.

Affected Software

7 affected components
ruby-lang Ruby=1.9.1--preview_2
ruby-lang Ruby=1.9.1--p0
ruby-lang Ruby=1.9.1--rc2
ruby-lang Ruby=1.9.1--preview_1
ruby-lang Ruby=1.9.1--rc1
ruby-lang Ruby=1.9.1--p129
ruby-lang Ruby=1.9.1--p243

Event History

Dec 11, 2009
CVE Published
via MITRE·04:00 PM
Data Sourced
via MITRE·04:00 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2009-4124?

CVE-2009-4124 has a high severity rating due to its potential for allowing arbitrary code execution.

2

How do I fix CVE-2009-4124?

To fix CVE-2009-4124, upgrade Ruby to version 1.9.1-p376 or later.

3

Which versions of Ruby are affected by CVE-2009-4124?

Ruby versions 1.9.1 before 1.9.1-p376 are affected by CVE-2009-4124.

4

What types of attacks are possible with CVE-2009-4124?

CVE-2009-4124 can be exploited to execute arbitrary code through certain string formatting methods.

5

Who can be affected by CVE-2009-4124?

Users of affected Ruby versions who process untrusted data could be vulnerable to CVE-2009-4124.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203