CVE-2009-4124Ruby-lang Ruby
Critical 10.0 No auth needed
Follow: this CVE · Ruby-lang · Ruby-lang Ruby We alert you by email or Slack (account required).
- Priority
- 75
- CVSS 2.0
- 10.0
- EPSS
- 3.9% probability of exploitation in 30 days · percentile 91
- Auth required
- No
- Published
- Dec 11, 2009
- Updated
- Jun 16, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-119
- Vector
AV:N/AC:L/Au:N/C:C/I:C/A:C
What happens
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.
What to do
- Apply the vendor's security update for Ruby.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| ruby-lang | ruby | 1.9.1 |
| ruby-lang | ruby | 1.9.1 |
| ruby-lang | ruby | 1.9.1 |
| ruby-lang | ruby | 1.9.1 |
| ruby-lang | ruby | 1.9.1 |
| ruby-lang | ruby | 1.9.1 |
| ruby-lang | ruby | 1.9.1 |
Official sources
References
Links published by the sources. Open them with care.
- secunia.com Vendor Advisory
- www.osvdb.org
- www.ruby-lang.org Patch Vendor Advisory
- www.securityfocus.com
- www.vupen.com Vendor Advisory
- exchange.xforce.ibmcloud.com