Skip to content
OpenAdvisories
High ALAS2023-2026-1690 1 CVE

Important: ruby3.4 security update (Amazon Linux 2023)

Published May 11, 2026 · Updated May 15, 2026

Summary

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.

Fixed packages 34

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

Vulnerabilities 1

  • High 8.1

    ERB has an @_init deserialization guard bypass via def_module / def_method / def_class

    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` (des…

References

  • web
    https://alas.aws.amazon.com/cve/html/CVE-2026-41316.html