Amazon Linux 2023 : ruby3.4, ruby3.4-bundled-gems, ruby3.4-default-gems (ALAS2023-2026-1690)

high Nessus Plugin ID 315028

Synopsis

The remote Amazon Linux 2023 host is missing a security update.

Description

It is, therefore, affected by a vulnerability as referenced in the ALAS2023-2026-1690 advisory.

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. (CVE-2026-41316)

Tenable has extracted the preceding description block directly from the tested product security advisory.

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Run 'dnf update ruby3.4 --releasever 2023.11.20260514' or or 'dnf update --advisory ALAS2023-2026-1690 --releasever 2023.11.20260514' to update your system.

See Also

https://alas.aws.amazon.com//AL2023/ALAS2023-2026-1690.html

https://alas.aws.amazon.com/faqs.html

https://explore.alas.aws.amazon.com/CVE-2026-41316.html

Plugin Details

Severity: High

ID: 315028

File Name: al2023_ALAS2023-2026-1690.nasl

Version: 1.1

Type: Local

Agent: unix

Published: 5/16/2026

Updated: 5/16/2026

Supported Sensors: Frictionless Assessment AWS, Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Continuous Assessment, Nessus

Risk Information

VPR

Risk Factor: High

Score: 7.4

CVSS v2

Risk Factor: High

Base Score: 7.6

Temporal Score: 5.6

Vector: CVSS2#AV:N/AC:H/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2026-41316

CVSS v3

Risk Factor: High

Base Score: 8.1

Temporal Score: 7.1

Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:amazon:linux:ruby3.4-rubygem-rdoc, p-cpe:/a:amazon:linux:ruby3.4-rubygem-rake, p-cpe:/a:amazon:linux:ruby3.4-rubygem-racc, p-cpe:/a:amazon:linux:ruby3.4-rubygem-bundler, p-cpe:/a:amazon:linux:ruby3.4-rubygem-io-console, p-cpe:/a:amazon:linux:ruby3.4-rubygem-bigdecimal, p-cpe:/a:amazon:linux:ruby3.4-debugsource, p-cpe:/a:amazon:linux:ruby3.4-rubygem-io-console-debuginfo, p-cpe:/a:amazon:linux:ruby3.4-rubygem-bigdecimal-debuginfo, p-cpe:/a:amazon:linux:ruby3.4-rubygem-psych, p-cpe:/a:amazon:linux:ruby3.4-rubygem-psych-debuginfo, p-cpe:/a:amazon:linux:ruby3.4-rubygem-rbs-debuginfo, p-cpe:/a:amazon:linux:ruby3.4-rubygems-devel, p-cpe:/a:amazon:linux:ruby3.4-rubygem-rbs, p-cpe:/a:amazon:linux:ruby3.4-rubygem-racc-debuginfo, p-cpe:/a:amazon:linux:ruby3.4, p-cpe:/a:amazon:linux:ruby3.4-rubygem-json-debuginfo, p-cpe:/a:amazon:linux:ruby3.4-rubygem-rss, p-cpe:/a:amazon:linux:ruby3.4-libs-debuginfo, p-cpe:/a:amazon:linux:ruby3.4-bundled-gems-debuginfo, p-cpe:/a:amazon:linux:ruby3.4-rubygem-minitest, p-cpe:/a:amazon:linux:ruby3.4-bundled-gems, p-cpe:/a:amazon:linux:ruby3.4-rubygems, p-cpe:/a:amazon:linux:ruby3.4-rubygem-power_assert, p-cpe:/a:amazon:linux:ruby3.4-rubygem-test-unit, cpe:/o:amazon:linux:2023, p-cpe:/a:amazon:linux:ruby3.4-default-gems, p-cpe:/a:amazon:linux:ruby3.4-rubygem-typeprof, p-cpe:/a:amazon:linux:ruby3.4-debuginfo, p-cpe:/a:amazon:linux:ruby3.4-doc, p-cpe:/a:amazon:linux:ruby3.4-rubygem-rexml, p-cpe:/a:amazon:linux:ruby3.4-devel, p-cpe:/a:amazon:linux:ruby3.4-libs, p-cpe:/a:amazon:linux:ruby3.4-rubygem-json, p-cpe:/a:amazon:linux:ruby3.4-rubygem-irb

Required KB Items: Host/local_checks_enabled, Host/AmazonLinux/release, Host/AmazonLinux/rpm-list

Exploit Ease: No known exploits are available

Patch Publication Date: 5/15/2026

Vulnerability Publication Date: 4/24/2026

Reference Information

CVE: CVE-2026-41316