Predictive Vulnerability Intelligence.

Product

  • Product
  • Pricing
  • Documentation

Company

  • About
  • Partnerships
  • Blog
  • Support

Legal

  • Terms
  • Privacy
  • Data Licensing

© 2026 FAUCET Technologies LLC. All rights reserved.

CVE-2026-41316

34
FAUCET Score

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.

First published: Apr 24, 2026Last modified: Apr 25, 2026

Impacted Technologies

VendorProductVersion(s)CPE
RubyErb
< 4.0.3.1, = 4.0.4, >= 5.0.0, < 6.0.1.1, >= 6.0.2, < 6.0.4CNA affected

CVSS Data

CVSS version used by this source: 3.1

8.1HIGH

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

Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
HIGH
Exploitability Score
2.2
Impact Score
5.9
CvssVersion
3.1

Exploit Intelligence

EPSS Score
1.13%
Probability of exploitation in next 30 days
EPSS Percentile
63.1%
Percentile rank of EPSS score among Peer Group
As of 2026-07-27
Model: v2026.06.15
This CVE's current EPSS score of 0.0113 is in the 26th percentile among its peer group of 8,920 CVEs.

Social Chatter

The average CVE in this peer group has 0.0 Twitter, 0.1 Reddit, 0.1 Bluesky, 0.1 Mastodon, and 0.2 GitHub mentions.

Media Mentions

The average CVE in this peer group has 0.1 InfoSec Media, 0.0 Vendor Blog, and 0.0 Security Researcher mentions.

Remediation

Patch Available

Vendor Patches (4)

rubygemspatch availablevia ghsa
Product: erbFixed in: 4.0.3.1
rubygemspatch availablevia ghsa
Product: erbFixed in: 4.0.4.1
rubygemspatch availablevia ghsa
Product: erbFixed in: 6.0.1.1
rubygemspatch availablevia ghsa
Product: erbFixed in: 6.0.4

Vendor Advisories (1)

rubygemsGHSA-q339-8rmv-2mhvhigh

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

Apr 24, 2026

References

access.redhat.com / errata/RHSA-2026:18030
access.redhat.com / errata/RHSA-2026:18039
access.redhat.com / errata/RHSA-2026:18065
access.redhat.com / errata/RHSA-2026:20596
access.redhat.com / errata/RHSA-2026:20606
access.redhat.com / errata/RHSA-2026:20614
access.redhat.com / errata/RHSA-2026:20670
access.redhat.com / errata/RHSA-2026:26312
access.redhat.com / errata/RHSA-2026:26655
access.redhat.com / errata/RHSA-2026:33462
access.redhat.com / errata/RHSA-2026:33478
access.redhat.com / errata/RHSA-2026:35834
access.redhat.com / errata/RHSA-2026:37238
access.redhat.com / security/cve/CVE-2026-41316
bugzilla.redhat.com / show_bug.cgi
security.access.redhat.com / data/csaf/v2/vex/2026/cve-2026-41316.json
github.com / ruby/erb/security/advisories/GHSA-q339-8rmv-2mhv