An exploitable heap overflow vulnerability exists in the Psych::Emitter start_document function of Ruby. In Psych::Emitter start_document function heap buffer "head" allocation is made based on tags array length. Specially constructed object passed as element of tags array can increase this array size after mentioned allocation and cause heap overflow.
The product writes data past the end, or before the beginning, of the intended buffer.
Link | Tags |
---|---|
https://lists.debian.org/debian-lts-announce/2020/03/msg00032.html | third party advisory mailing list |
http://www.talosintelligence.com/reports/TALOS-2016-0032/ | third party advisory exploit |
https://security.netapp.com/advisory/ntap-20221228-0005/ | third party advisory |