All vulnerabilities

Servers and applications

CVE-2009-4124

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.

Severity
High 10.0
Published
11 Dec 2009
Last changed
16 Jun 2026
Added to UpHeron
21 Oct 2026
Exploit chance
3.9% in the next 30 daysHigher than 90% of CVEs. EPSS by FIRST, 12 Nov 2026
Weakness
Memory buffer errors (CWE-119)
Attack
Over the network · No login needed
Attacker can
Read data · Change data · Take it down
CVSS vector
AV:N/AC:L/Au:N/C:C/I:C/A:C
Sources
NVD

Affected software

SoftwareAffected versions
RubyServers and applications · cpe:a:ruby-lang:ruby
  • Version 1.9.1--p243
  • Version 1.9.1--p129
  • Version 1.9.1--p0
  • Version 1.9.1--rc2
All 7 release lines
  • Version 1.9.1--preview_1
  • Version 1.9.1--preview_2
  • Version 1.9.1--rc1
  • Version 1.9.1--rc2
  • Version 1.9.1--p0
  • Version 1.9.1--p129
  • Version 1.9.1--p243

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2009-4124
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2009-4124