CWE
119
Advisory Published
Updated

CVE-2009-4124: Buffer Overflow

First published: Fri Dec 11 2009(Updated: )

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.

Credit: cve@mitre.org

Affected SoftwareAffected VersionHow to fix
Ruby=1.9.1--preview_2
Ruby=1.9.1--p0
Ruby=1.9.1--rc2
Ruby=1.9.1--preview_1
Ruby=1.9.1--rc1
Ruby=1.9.1--p129
Ruby=1.9.1--p243

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • 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.

  • How do I fix CVE-2009-4124?

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

  • 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.

  • 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.

  • 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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203