CVE-2016-2339
Reported by certcc · Published January 6, 2017
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| ruby1.9.1 | Ubuntu:14.04:LTS | 1.9.3.484-2ubuntu1.3 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Ruby | Ruby | 2.3.0 dev, 2.2.2 |
| Ruby | Ruby | 2.2.2, 2.3.0 |
Timeline
- Jan 6, 2017 CVE Published
- Feb 4, 2022 EPSS Score (30 in total, the first dated here)
- Sep 8, 2025 CVE Updated
- Mar 5, 2026 Distribution Patch
- Mar 5, 2026 Security Advisory (2 in total, the first dated here)
- Oct 9, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2016-2339
vulnetix vdb fixes CVE-2016-2339
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2016-2339/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- [debian-lts-announce] 20180714 [SECURITY] [DLA 1421-1] ruby2.1 security update mailing-listx_refsource_MLIST
- 91234 vdb-entryx_refsource_BID
- x_refsource_MISC