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
This high-severity CVE scores 8.1 under NVD CVSS v3. EPSS exploit probability: 0.0%, top 85% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 8.1
- EG Score
- 8.1(medium)
- EPSS
- 62.6%
- KEV
- Not listed
Published
April 24, 2026
Last Modified
July 10, 2026
Advisory Details (1)
Auto-updated Apr 29, 2026ERB @_init deserialization guard bypass via def_module / def_method / def_class · Advisory · ruby/erb · GitHub
https://github.com/ruby/erb/security/advisories/GHSA-q339-8rmv-2mhvVendor Advisories for CVE-2026-41316(14)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- RHSA-2026:37238Red Hat Product SecurityHigh
Red Hat Security Advisory: ruby:3.3 security update
- RHSA-2026:35834Red Hat Product SecurityHigh
Red Hat Security Advisory: ruby security update
- RHSA-2026:33478Red Hat Product SecurityHigh
Red Hat Security Advisory: ruby security update
- RHSA-2026:33462Red Hat Product SecurityHigh
Red Hat Security Advisory: ruby security update
- RHSA-2026:26655Red Hat Product SecurityHigh
Red Hat Security Advisory: ruby:3.3 security update
- RHSA-2026:26312Red Hat Product SecurityHigh
Red Hat Security Advisory: ruby security update
- RHSA-2026:20596Red Hat Product SecurityHigh
Red Hat Security Advisory: ruby:4.0 security update
- RHSA-2026:20614Red Hat Product SecurityHigh
Red Hat Security Advisory: ruby:3.3 security update
- +6 more
Patch Availability(7)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| redhat | ruby4.0-0:4.0.3-34.el10_2 | 2026-05-26 | redhat |
| redhat | ruby:3.3-8100020260428163940.489197e6 | 2026-05-26 | redhat |
| redhat | ruby:4.0-9080020260513131334.9 | 2026-05-26 | redhat |
| redhat | ruby-0:3.0.4-160.2.el9_0 | 2026-05-26 | redhat |
| redhat | ruby-0:3.0.7-166.el9_7 | 2026-05-18 | redhat |
| redhat | ruby-0:3.3.10-12.el10_1 | 2026-05-18 | redhat |
| redhat | ruby:3.3-9070020260428163621.9 | 2026-05-18 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(1 across 1 ecosystem)
RubyGems(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| erb | 6.0.2, 6.0.3 | 6.0.4 | — |
Weakness Classification(2)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 8× in last 7d / 38× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 122 total refreshes for this CVE.
- 2026-07-11 08:27 UTCEPSS rescore
- 2026-07-09 19:10 UTCEPSS rescore
- 2026-07-08 15:15 UTCEPSS rescore
- 2026-07-07 13:46 UTCEPSS rescore
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-05 02:30 UTCEPSS rescore
- 2026-07-04 06:31 UTCEPSS rescore
- 2026-07-01 15:06 UTCEPSS rescore
- 2026-06-30 23:22 UTCEPSS rescore
- 2026-06-29 14:06 UTCEPSS rescore
- 2026-06-28 14:07 UTCEPSS rescore
- 2026-06-28 04:56 UTCEPSS rescore
- 2026-06-27 03:08 UTCEPSS rescore
- 2026-06-25 13:49 UTCEPSS rescore
- 2026-06-25 13:49 UTCEPSS rescore
- 2026-06-24 14:05 UTCEPSS rescore
- 2026-06-23 21:33 UTCEPSS rescore
- 2026-06-22 14:25 UTCEPSS rescore
- 2026-06-22 14:25 UTCEPSS rescore
- 2026-06-21 14:56 UTCEPSS rescore
- 2026-06-21 14:56 UTCEPSS rescore
- 2026-06-21 01:59 UTCEPSS rescore
Show 75 moreShow fewer
- 2026-06-19 19:25 UTCEPSS rescore
- 2026-06-18 17:52 UTCEPSS rescore
- 2026-06-18 17:52 UTCEPSS rescore
- 2026-06-17 17:53 UTCEPSS rescore
- 2026-06-16 17:52 UTCEPSS rescore
- 2026-06-15 17:49 UTCEPSS rescore
- 2026-06-14 23:32 UTCEG score recompute
- 2026-06-14 23:32 UTCVendor advisory
- 2026-06-14 12:08 UTCEG score recompute
- 2026-06-14 12:08 UTCVendor advisory
- 2026-06-13 23:00 UTCEPSS rescore
- 2026-06-12 23:12 UTCEPSS rescore
- 2026-06-12 23:12 UTCEPSS rescore
- 2026-06-12 01:38 UTCEG score recompute
- 2026-06-12 01:38 UTCVendor advisory
- 2026-06-11 14:14 UTCEG score recompute
- 2026-06-11 14:14 UTCVendor advisory
- 2026-06-11 14:00 UTCEPSS rescore
- 2026-06-10 22:18 UTCEPSS rescore
- 2026-06-10 13:22 UTCEPSS rescore
- 2026-06-10 13:22 UTCEPSS rescore
- 2026-06-10 13:21 UTCEG score recompute
- 2026-06-10 13:21 UTCVendor advisory
- 2026-06-10 01:58 UTCEG score recompute
- 2026-06-10 01:58 UTCVendor advisory
- 2026-06-09 14:35 UTCEG score recompute
- 2026-06-09 14:35 UTCVendor advisory
- 2026-06-09 03:12 UTCEG score recompute
- 2026-06-09 03:12 UTCVendor advisory
- 2026-06-08 14:17 UTCEPSS rescore
- 2026-06-08 14:17 UTCEPSS rescore
- 2026-06-08 08:48 UTCEG score recompute
- 2026-06-08 08:48 UTCVendor advisory
- 2026-06-07 21:25 UTCEG score recompute
- 2026-06-07 21:25 UTCVendor advisory
- 2026-06-07 15:25 UTCEPSS rescore
- 2026-06-07 15:25 UTCEPSS rescore
- 2026-06-07 10:01 UTCEG score recompute
- 2026-06-07 10:01 UTCVendor advisory
- 2026-06-06 22:27 UTCEG score recompute
- 2026-06-06 22:27 UTCVendor advisory
- 2026-06-06 13:47 UTCEPSS rescore
- 2026-06-06 13:47 UTCEPSS rescore
- 2026-06-06 10:39 UTCEG score recompute
- 2026-06-06 10:39 UTCVendor advisory
- 2026-06-05 22:47 UTCEPSS rescore
- 2026-06-05 22:26 UTCEG score recompute
- 2026-06-05 22:26 UTCVendor advisory
- 2026-06-05 10:57 UTCEG score recompute
- 2026-06-05 10:57 UTCVendor advisory
- 2026-06-05 06:10 UTCEPSS rescore
- 2026-06-05 06:10 UTCEPSS rescore
- 2026-06-04 23:01 UTCEG score recompute
- 2026-06-04 23:01 UTCVendor advisory
- 2026-06-04 13:12 UTCEPSS rescore
- 2026-06-04 13:12 UTCEPSS rescore
- 2026-06-04 11:37 UTCEG score recompute
- 2026-06-04 11:37 UTCVendor advisory
- 2026-06-03 23:15 UTCEG score recompute
- 2026-06-03 23:15 UTCVendor advisory
- 2026-06-03 11:51 UTCEG score recompute
- 2026-06-03 11:51 UTCVendor advisory
- 2026-06-03 00:13 UTCEG score recompute
- 2026-06-03 00:13 UTCVendor advisory
- 2026-06-02 20:13 UTCEPSS rescore
- 2026-06-02 12:50 UTCEG score recompute
- 2026-06-02 12:50 UTCVendor advisory
- 2026-06-02 01:27 UTCEG score recompute
- 2026-06-02 01:27 UTCVendor advisory
- 2026-06-01 14:02 UTCEG score recompute
- 2026-06-01 14:02 UTCVendor advisory
- 2026-06-01 13:52 UTCEPSS rescore
- 2026-06-01 13:52 UTCEPSS rescore
- 2026-06-01 13:51 UTCEPSS rescore
- 2026-05-31 22:30 UTCEPSS rescore
Related CVEs(same vendor + same CWE)
Same vendor
10 shownredhat
Same CWE
10 shownCWE-502
- CVE-2017-20208EG 9.8CRITICAL
- CVE-2017-20207EG 9.8CRITICAL
- CVE-2017-20206EG 9.8CRITICAL
- CVE-2017-20189EG 9.8CRITICAL
- CVE-2017-10992EG 9.8EPSS 95%CRITICAL
- CVE-2013-4521EG 9.8EPSS 90%CRITICAL
- CVE-2014-1860EG 9.8CRITICAL
- CVE-2016-1000027EG 9.8EPSS 98%CRITICAL
- CVE-2014-3699EG 9.8CRITICAL
- CVE-2017-18605EG 9.8CRITICAL
Frequently asked(5)
What is CVE-2026-41316?
When was CVE-2026-41316 disclosed?
Is CVE-2026-41316 actively exploited?
What is the CVSS score of CVE-2026-41316?
How do I remediate CVE-2026-41316?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-41316
Is Your Infrastructure Affected by CVE-2026-41316?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.