CVE-2016-2339Ruby-lang Ruby
Critical 9.8 No auth needed
- Priority
- 74
- CVSS 3.0
- 9.8
- EPSS
- —
- Auth required
- No
- Published
- Jan 6, 2017
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-119
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
An exploitable heap overflow vulnerability exists in the Fiddle::Function.new "initialize" function functionality of Ruby. In Fiddle::Function.new "initialize" heap buffer "arg_types" allocation is made based on args array length. Specially constructed object passed as element of args array can increase this array size after mentioned allocation and cause heap overflow.
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 | 2.2.2 |
| ruby-lang | ruby | 2.3.0 |
Official sources
References
Links published by the sources. Open them with care.
- www.securityfocus.com
- www.talosintelligence.com Exploit Technical Description Third Party Advisory
- lists.debian.org