Out-of-bounds Write Affecting ruby2.1 package, versions <2.1.5-2+deb8u9


Severity

Recommended
0.0
critical
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
4.74% (92nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIAN8-RUBY21-561019
  • published24 Mar 2020
  • disclosed29 Sept 2022

Introduced: 24 Mar 2020

CVE-2016-2338  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade Debian:8 ruby2.1 to version 2.1.5-2+deb8u9 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ruby2.1 package and not the ruby2.1 package as distributed by Debian. See How to fix? for Debian:8 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1