CVEvulnerability

CVE-2016-2338

9.8 CRITICAL Published 2022-09-29 Modified 2026-06-17 Official page ↗
Status
Modified
Published
2022-09-29
Last modified
2026-06-17
Assigner
[email protected]
CVSS 3.1 ([email protected])
9.8 CRITICAL — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-787

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.

Affected configurations

• ruby-lang ruby 2.2.2 • ruby-lang ruby 2.3.0 • debian debian linux 8.0

Related

Weakness · CWE (1)

  • CWE-787 Out-of-bounds Write weakness

References