← console
voxell vciy

CVE-2026-41316: ERB has an @_init deserialization guard bypass via def_module / def_method / def_class

ROUTINE

Telemetry drift only. No threshold crossed and no authority ruling changed.

CVE record, CISA KEV and EPSS as of 2026-12-06.

CVEs like this one computed, by meaning

What to do now held facts and links

  1. No fix version is held. The CNA's first reference is the place to look: github.com
  2. Record your decision, dated and frozen with today's evidence: patch by a date · mitigated by a compensating control · deferred · accepted the risk · not affected
  3. Check your version against the ranges this record publishes.

What it is stated by the CNA

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.

weakness
CWE-693: Protection Mechanism Failure
affected
ruby erb
versions
No affected-version range in held sources.
fixed in
No fix version in held sources.
fixed by package (from OSV advisories)
erb (RubyGems): 4.0.3.1; 4.0.4.1; 6.0.1.1; 6.0.4 GHSA-q339-8rmv-2mhv
severity
8.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
assigned by
GitHub_M
published
2026-04-24

check us github.com

Exploit code held, dated

exploit code
None held in the PoC-in-GitHub feed. A public repository changes this brief.

What moved held, dated

dateEPSSevent
24 Apr 20260.00083
30 Apr 20260.00109
22 May 20260.00044
26 May 20260.00048
15 Jun 20260.00508scoring model v2026.06.15
30 Jun 20260.01131
28 Sep 20260.01306
25 Oct 20260.01131
28 Nov 20260.01691
1 Dec 20260.01148

10 observations held. A step marked with a scoring model moved because the measurement was replaced, not because the vulnerability changed.

Outside the record model-written, researched, cited

This section reads the record's references and adds cited findings from outside it. It needs an account. Everything above is held facts and is complete without it.

Get started with CVE-2026-41316 (20s setup) Triage in Vesper (no login) · Sign in to add the researched section

What would change this brief held, dated

CISA KEV
Not listed in the catalogue we hold. A listing changes this brief.
exploit probability
0.01 on 2026-12-01 (FIRST's EPSS, a probability and not evidence of exploitation). Next band line: 10% (0.10). Crossing a line changes this brief.
fix
No fix version is held. One published by the CNA or OSV changes this brief.

Watch this CVE Guided 20s setup · What counts as a move

How to check this

Every value above is held with two dates: when it was true upstream (as_of) and when we recorded it (tx_from). Re-derive the exploit probability as it stood on any date:

SELECT value, source, source_version, as_of, tx_from
FROM volatile_valid_as_of('CVE-2026-41316', '2026-12-06T23:59:59.999999Z', now());