CVE-2016-2338

CRITICAL

Ruby - Out-of-Bounds Write

Title source: rule

Description

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.

Exploits (1)

nomisec WORKING POC
by SpiralBL0CK · poc
https://github.com/SpiralBL0CK/CVE-2016-2338-nday

Scores

CVSS v3 9.8
EPSS 0.1346
EPSS Percentile 94.2%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Details

CWE
CWE-787
Status published
Products (3)
debian/debian_linux 8.0
ruby-lang/ruby 2.2.2
ruby-lang/ruby 2.3.0
Published Sep 29, 2022
Tracked Since Feb 18, 2026