Skip to content
OpenAdvisories
Medium ALAS2-2025-2990 1 CVE

Moderate: ruby security update (Amazon Linux 2)

Published Aug 27, 2025 · Updated Sep 4, 2025

Summary

Package updates are available for Amazon Linux 2 that fix the following vulnerabilities: CVE-2016-2338: 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.

Fixed packages 16

ReleasePackageFixed in
Amazon Linux · 2 ruby 0:2.0.0.648-36.amzn2.0.17
Amazon Linux · 2 ruby-debuginfo 0:2.0.0.648-36.amzn2.0.17
Amazon Linux · 2 ruby-devel 0:2.0.0.648-36.amzn2.0.17
Amazon Linux · 2 ruby-doc 0:2.0.0.648-36.amzn2.0.17
Amazon Linux · 2 ruby-irb 0:2.0.0.648-36.amzn2.0.17
Amazon Linux · 2 ruby-libs 0:2.0.0.648-36.amzn2.0.17
Amazon Linux · 2 ruby-tcltk 0:2.0.0.648-36.amzn2.0.17
Amazon Linux · 2 rubygem-bigdecimal 0:1.2.0-36.amzn2.0.17
Amazon Linux · 2 rubygem-io-console 0:0.4.2-36.amzn2.0.17
Amazon Linux · 2 rubygem-json 0:1.7.7-36.amzn2.0.17
Amazon Linux · 2 rubygem-minitest 0:4.3.2-36.amzn2.0.17
Amazon Linux · 2 rubygem-psych 0:2.0.0-36.amzn2.0.17
Amazon Linux · 2 rubygem-rake 0:0.9.6-36.amzn2.0.17
Amazon Linux · 2 rubygem-rdoc 0:4.0.0-36.amzn2.0.17
Amazon Linux · 2 rubygems 0:2.0.14.1-36.amzn2.0.17
Amazon Linux · 2 rubygems-devel 0:2.0.14.1-36.amzn2.0.17

Vulnerabilities 1

  • Unscored —
    CVE-2016-2338 Public exploit

    An exploitable heap overflow vulnerability exists in the Psych::Emitter start_document function of Ruby. In Psych::Emit…

References

  • web
    https://alas.aws.amazon.com/cve/html/CVE-2016-2338.html