SCA: security update for erb (GHSA-q339-8rmv-2mhv)

high Tenable Self-Hosted Container Security Plugin ID 440817

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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)

Solution

Update the erb library and its related packages to version 4.0.3.1 or later.

See Also

https://github.com/advisories/GHSA-q339-8rmv-2mhv

Plugin Details

Severity: High

ID: 440817

Version: Revision 1.6

Type: Local

Family: SCA Checks

Published: 4/24/2026

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 58.03

Vendor

Vendor Severity: High

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

Exploit Ease: No known exploits are available

Patch Publication Date: 4/24/2026

Vulnerability Publication Date: 4/24/2026

Reference Information

CVE: CVE-2026-41316

cwe: CWE-693