Vulnerability database / CVE-2009-4124
CVE-2009-4124
HIGH 10.0 CVSS 2.0 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.
Published 11 Dec 2009
Last modified 16 Jun 2026 Assigned by cve@mitre.org NVD status Modified Weakness
CWE-119 Sources
NVD JSON Scores
Source Scored by Version Score Vector / decision
NVD
nvd@nist.gov (Primary)
CVSS 2.0
HIGH 10.0
AV:N/AC:L/Au:N/C:C/I:C/A:C
Affected
Source Vendor / ecosystem Product / package Affected versions Fixed in
NVD
ruby-lang
rubycpe:2.3:a:ruby-lang:ruby:1.9.1:-p0:*:*:*:*:*:*
= 1.9.1
NVD
ruby-lang
rubycpe:2.3:a:ruby-lang:ruby:1.9.1:-p129:*:*:*:*:*:*
= 1.9.1
NVD
ruby-lang
rubycpe:2.3:a:ruby-lang:ruby:1.9.1:-p243:*:*:*:*:*:*
= 1.9.1
NVD
ruby-lang
rubycpe:2.3:a:ruby-lang:ruby:1.9.1:-preview_1:*:*:*:*:*:*
= 1.9.1
NVD
ruby-lang
rubycpe:2.3:a:ruby-lang:ruby:1.9.1:-preview_2:*:*:*:*:*:*
= 1.9.1
NVD
ruby-lang
rubycpe:2.3:a:ruby-lang:ruby:1.9.1:-rc1:*:*:*:*:*:*
= 1.9.1
NVD
ruby-lang
rubycpe:2.3:a:ruby-lang:ruby:1.9.1:-rc2:*:*:*:*:*:*
= 1.9.1
References
History
25 Nov 2026 20:15 UTC · NVD: first stored (published 11 Dec 2009)