ADVISORIES

Amazon Linux Security Advisory

ALAS2023-2026-1690

Amazon Linux 2023 - ALAS2023-2026-1690: Important priority package update for ruby3.4

Important CVE-2026-41316

Details

Package updates are available for Amazon Linux 2023 that fix the following vulnerabilities: CVE-2026-41316: ERB is a templating system for Ruby. Ruby 2.7.0 (before ERB 2.2.0 was published on rubygems.org) introduced an @_init instance variable guard in ERB#result and ERB#run to prevent code execution when an ERB object is reconstructed via Marshal.load (deserialization). However, three other public methods that also evaluate @src via eval() were not given the same guard: ERB#def_method, ERB#def_module, and ERB#def_class. An attacker who can trigger Marshal.load on untrusted data in a Ruby application that has erb loaded can use ERB#def_module (zero-arg, default parameters) as a code execution sink, bypassing the @_init protection entirely. ERB 4.0.3.1, 4.0.4.1, 6.0.1.1, and 6.0.4 patch the issue.

Affected packages

EcosystemPackageAffected versions
Amazon Linux:2023ruby3.4
All versions before 3.4.8-27.amzn2023.0.5 (fixed in 3.4.8-27.amzn2023.0.5)
Amazon Linux:2023ruby3.4-bundled-gems
All versions before 3.4.8-27.amzn2023.0.5 (fixed in 3.4.8-27.amzn2023.0.5)
Amazon Linux:2023ruby3.4-bundled-gems-debuginfo
All versions before 3.4.8-27.amzn2023.0.5 (fixed in 3.4.8-27.amzn2023.0.5)
Amazon Linux:2023ruby3.4-debuginfo
All versions before 3.4.8-27.amzn2023.0.5 (fixed in 3.4.8-27.amzn2023.0.5)
Amazon Linux:2023ruby3.4-debugsource
All versions before 3.4.8-27.amzn2023.0.5 (fixed in 3.4.8-27.amzn2023.0.5)
Amazon Linux:2023ruby3.4-default-gems
All versions before 3.4.8-27.amzn2023.0.5 (fixed in 3.4.8-27.amzn2023.0.5)
Amazon Linux:2023ruby3.4-devel
All versions before 3.4.8-27.amzn2023.0.5 (fixed in 3.4.8-27.amzn2023.0.5)
Amazon Linux:2023ruby3.4-doc
All versions before 3.4.8-27.amzn2023.0.5 (fixed in 3.4.8-27.amzn2023.0.5)
Amazon Linux:2023ruby3.4-libs
All versions before 3.4.8-27.amzn2023.0.5 (fixed in 3.4.8-27.amzn2023.0.5)
Amazon Linux:2023ruby3.4-libs-debuginfo
All versions before 3.4.8-27.amzn2023.0.5 (fixed in 3.4.8-27.amzn2023.0.5)
Amazon Linux:2023ruby3.4-rubygem-bigdecimal
All versions before 3.1.8-27.amzn2023.0.5 (fixed in 3.1.8-27.amzn2023.0.5)
Amazon Linux:2023ruby3.4-rubygem-bigdecimal-debuginfo
All versions before 3.1.8-27.amzn2023.0.5 (fixed in 3.1.8-27.amzn2023.0.5)
Amazon Linux:2023ruby3.4-rubygem-bundler
All versions before 2.6.9-27.amzn2023.0.5 (fixed in 2.6.9-27.amzn2023.0.5)
Amazon Linux:2023ruby3.4-rubygem-io-console
All versions before 0.8.1-27.amzn2023.0.5 (fixed in 0.8.1-27.amzn2023.0.5)
Amazon Linux:2023ruby3.4-rubygem-io-console-debuginfo
All versions before 0.8.1-27.amzn2023.0.5 (fixed in 0.8.1-27.amzn2023.0.5)
Amazon Linux:2023ruby3.4-rubygem-irb
All versions before 1.14.3-27.amzn2023.0.5 (fixed in 1.14.3-27.amzn2023.0.5)
Amazon Linux:2023ruby3.4-rubygem-json
All versions before 2.9.1-27.amzn2023.0.5 (fixed in 2.9.1-27.amzn2023.0.5)
Amazon Linux:2023ruby3.4-rubygem-json-debuginfo
All versions before 2.9.1-27.amzn2023.0.5 (fixed in 2.9.1-27.amzn2023.0.5)
Amazon Linux:2023ruby3.4-rubygem-minitest
All versions before 5.25.4-27.amzn2023.0.5 (fixed in 5.25.4-27.amzn2023.0.5)
Amazon Linux:2023ruby3.4-rubygem-power_assert
All versions before 2.0.5-27.amzn2023.0.5 (fixed in 2.0.5-27.amzn2023.0.5)
Amazon Linux:2023ruby3.4-rubygem-psych
All versions before 5.2.2-27.amzn2023.0.5 (fixed in 5.2.2-27.amzn2023.0.5)
Amazon Linux:2023ruby3.4-rubygem-psych-debuginfo
All versions before 5.2.2-27.amzn2023.0.5 (fixed in 5.2.2-27.amzn2023.0.5)
Amazon Linux:2023ruby3.4-rubygem-racc
All versions before 1.8.1-27.amzn2023.0.5 (fixed in 1.8.1-27.amzn2023.0.5)
Amazon Linux:2023ruby3.4-rubygem-racc-debuginfo
All versions before 1.8.1-27.amzn2023.0.5 (fixed in 1.8.1-27.amzn2023.0.5)
Amazon Linux:2023ruby3.4-rubygem-rake
All versions before 13.2.1-27.amzn2023.0.5 (fixed in 13.2.1-27.amzn2023.0.5)
Amazon Linux:2023ruby3.4-rubygem-rbs
All versions before 3.8.0-27.amzn2023.0.5 (fixed in 3.8.0-27.amzn2023.0.5)
Amazon Linux:2023ruby3.4-rubygem-rbs-debuginfo
All versions before 3.8.0-27.amzn2023.0.5 (fixed in 3.8.0-27.amzn2023.0.5)
Amazon Linux:2023ruby3.4-rubygem-rdoc
All versions before 6.14.0-27.amzn2023.0.5 (fixed in 6.14.0-27.amzn2023.0.5)
Amazon Linux:2023ruby3.4-rubygem-rexml
All versions before 3.4.4-27.amzn2023.0.5 (fixed in 3.4.4-27.amzn2023.0.5)
Amazon Linux:2023ruby3.4-rubygem-rss
All versions before 0.3.1-27.amzn2023.0.5 (fixed in 0.3.1-27.amzn2023.0.5)
Amazon Linux:2023ruby3.4-rubygem-test-unit
All versions before 3.6.7-27.amzn2023.0.5 (fixed in 3.6.7-27.amzn2023.0.5)
Amazon Linux:2023ruby3.4-rubygem-typeprof
All versions before 0.30.1-27.amzn2023.0.5 (fixed in 0.30.1-27.amzn2023.0.5)
Amazon Linux:2023ruby3.4-rubygems
All versions before 3.6.9-27.amzn2023.0.5 (fixed in 3.6.9-27.amzn2023.0.5)
Amazon Linux:2023ruby3.4-rubygems-devel
All versions before 3.6.9-27.amzn2023.0.5 (fixed in 3.6.9-27.amzn2023.0.5)

References