Vulnerabilities · 2009 · Ruby-lang
CVE-2009-4124
Ruby-lang Ruby vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Ruby. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Ruby-lang Ruby runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- secunia.com/advisories/37660 · Vendor Advisory
- www.ruby-lang.org/en/news/2009/12/07/heap-overflow-in-string/ · Patch
- www.vupen.com/english/advisories/2009/3471 · Vendor Advisory
- www.osvdb.org/60880
- www.securityfocus.com/bid/37278
- exchange.xforce.ibmcloud.com/vulnerabilities/54674
- nvd.nist.gov/vuln/detail/CVE-2009-4124
- cve.org/CVERecord?id=CVE-2009-4124
More vulnerabilities in Ruby-lang products
CVE-2026-46727CVE-2025-58767CVE-2025-43857CVE-2025-27788CVE-2025-27221CVE-2025-27220CVE-2025-27219CVE-2025-6442All 115
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.