Heap Overflow Vulnerability in Ruby's Psych::Emitter Function
CVE-2016-2338
Key Information:
Badges
What is CVE-2016-2338?
A heap overflow vulnerability has been identified in the Psych::Emitter start_document function of Ruby. This issue arises due to improper allocation of the heap buffer 'head' based on the length of the tags array. Attackers can exploit this flaw by crafting specially designed objects that increase the size of the tags array after the allocation, leading to potential heap overflow and arbitrary code execution. It's crucial for users and organizations utilizing affected Ruby versions to apply security patches promptly to mitigate risks associated with this vulnerability.
Exploit Proof of Concept (PoC)
PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.
References
EPSS Score
9% chance of being exploited in the next 30 days.
CVSS V3.1
Timeline
- 🟡
Public PoC available
- 👾
Exploit known to exist
Vulnerability published
Vulnerability Reserved