CVE-2009-4124
publishedruby: Heap-based buffer overflow in the rb_str_justify() function
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
6- 37660 http://secunia.com/advisories/37660
- 60880 http://www.osvdb.org/60880
- http://www.ruby-lang.org/en/news/2009/12/07/heap-overflow-in-string/
- 37278 http://www.securityfocus.com/bid/37278
- ADV-2009-3471 http://www.vupen.com/english/advisories/2009/3471
- ruby-rbstrjustify-bo(54674) https://exchange.xforce.ibmcloud.com/vulnerabilities/54674
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 9d2a0d90b03f08efb80a1f64183284d786c3dba9ae8c477dbb9c2f87d495268a
- Ingested
- 23 Sep 2026, 07:38:41 UTC
- Source record
- Official CVE record