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 a secondary CVSS source (NVD's own analysis pending). EPSS exploit probability: 1.1%, top 37% 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)
- EG Risk
- 37(Track)EG Risk 37/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity81% × 45%Exploitation1% × 40%Automatability0% × 15%Action: Routine — remediate on your standard cadence. - EPSS PROB
- 1%
- EPSS %ILE
- 64%
- KEV
- Not listed
Published
April 24, 2026
Last Modified
August 24, 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(13)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| redhat | ruby:3.3-9060020260630075016.9 | 2026-07-09 | redhat |
| redhat | ruby-0:3.0.4-161.el9_2.3 | 2026-07-06 | redhat |
| redhat | ruby-0:3.0.7-165.el9_6.1 | 2026-06-30 | redhat |
| redhat | ruby-0:3.3.10-11.el10_0.1 | 2026-06-30 | redhat |
| redhat | ruby:3.3-9040020260520083544.9 | 2026-06-17 | redhat |
| redhat | ruby-0:3.0.7-162.el9_4.2 | 2026-06-16 | redhat |
| redhat | ruby-0:3.0.4-160.2.el9_0 | 2026-05-26 | redhat |
| 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.3.10-12.el10_1 | 2026-05-18 | redhat |
| redhat | ruby-0:3.0.7-166.el9_7 | 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
(5 across 5 ecosystems)
Debian:11(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| ruby2.7 | 2.7.4-1 ... 2.7.4-1+deb11u5 (6 versions) | 2.7.4-1+deb11u6 | — |
Debian:12(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| ruby3.1 | 3.1.2-7 ... 3.1.2-8.5 (8 versions) | — | — |
Debian:13(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| ruby3.3 | 3.3.8-2, 3.3.8-2.1, 3.3.8-2.2 | — | — |
Debian:14(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| ruby3.3 | 3.3.8-2, 3.3.8-2.1, 3.3.8-2.2 | — | — |
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 9× in last 7d / 67× 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 186 total refreshes for this CVE.
- 2026-08-25 13:49 UTCEPSS rescore
- 2026-08-24 13:31 UTCEG score recompute
- 2026-08-24 13:31 UTCVendor advisory
- 2026-08-24 12:26 UTCEG score recompute
- 2026-08-24 12:26 UTCVendor advisory
- 2026-08-23 00:19 UTCEPSS rescore
- 2026-08-21 23:49 UTCEPSS rescore
- 2026-08-20 22:55 UTCEPSS rescore
- 2026-08-19 17:03 UTCEPSS rescore
- 2026-08-18 13:48 UTCEPSS rescore
- 2026-08-17 14:54 UTCEG score recompute
- 2026-08-17 14:54 UTCVendor advisory
- 2026-08-17 13:47 UTCEPSS rescore
- 2026-08-16 14:56 UTCEPSS rescore
- 2026-08-16 05:50 UTCEG score recompute
- 2026-08-16 05:50 UTCVendor advisory
- 2026-08-16 02:14 UTCEPSS rescore
- 2026-08-15 01:30 UTCEPSS rescore
- 2026-08-14 15:33 UTCVendor advisory
- 2026-08-14 04:10 UTCEG score recompute
- 2026-08-14 04:10 UTCVendor advisory
- 2026-08-13 22:00 UTCEPSS rescore
- 2026-08-13 08:33 UTCVendor advisory
- 2026-08-12 17:54 UTCEG score recompute
- 2026-08-12 17:54 UTCVendor advisory
Show 75 moreShow fewer
- 2026-08-12 13:51 UTCEPSS rescore
- 2026-08-11 16:42 UTCEG score recompute
- 2026-08-11 16:42 UTCVendor advisory
- 2026-08-11 13:43 UTCEPSS rescore
- 2026-08-11 02:11 UTCEG score recompute
- 2026-08-11 02:11 UTCVendor advisory
- 2026-08-11 00:00 UTCEPSS rescore
- 2026-08-10 02:09 UTCVendor advisory
- 2026-08-09 14:46 UTCEG score recompute
- 2026-08-09 14:46 UTCVendor advisory
- 2026-08-09 13:46 UTCEPSS rescore
- 2026-08-09 03:22 UTCEG score recompute
- 2026-08-09 03:22 UTCVendor advisory
- 2026-08-08 16:37 UTCEPSS rescore
- 2026-08-08 11:24 UTCVendor advisory
- 2026-08-08 00:01 UTCEG score recompute
- 2026-08-08 00:01 UTCVendor advisory
- 2026-08-07 12:38 UTCEG score recompute
- 2026-08-07 12:38 UTCVendor advisory
- 2026-08-06 13:46 UTCEPSS rescore
- 2026-08-06 12:38 UTCVendor advisory
- 2026-08-06 01:15 UTCEG score recompute
- 2026-08-06 01:15 UTCVendor advisory
- 2026-08-05 19:17 UTCEPSS rescore
- 2026-08-05 13:52 UTCEG score recompute
- 2026-08-05 13:52 UTCVendor advisory
- 2026-08-05 12:39 UTCEG score recompute
- 2026-08-05 12:39 UTCVendor advisory
- 2026-08-04 15:10 UTCEPSS rescore
- 2026-08-04 10:38 UTCEPSS rescore
- 2026-08-03 21:07 UTCEG score recompute
- 2026-08-03 21:07 UTCVendor advisory
- 2026-08-03 10:36 UTCEPSS rescore
- 2026-08-02 22:50 UTCVendor advisory
- 2026-08-02 11:27 UTCEG score recompute
- 2026-08-02 11:27 UTCVendor advisory
- 2026-08-02 02:27 UTCEPSS rescore
- 2026-08-01 04:16 UTCEPSS rescore
- 2026-07-30 16:28 UTCEPSS rescore
- 2026-07-30 01:30 UTCEPSS rescore
- 2026-07-28 15:36 UTCEPSS rescore
- 2026-07-27 14:13 UTCEPSS rescore
- 2026-07-26 14:54 UTCEPSS rescore
- 2026-07-26 14:54 UTCEPSS rescore
- 2026-07-25 14:18 UTCEPSS rescore
- 2026-07-24 14:17 UTCEPSS rescore
- 2026-07-23 14:18 UTCEPSS rescore
- 2026-07-23 03:11 UTCEG score recompute
- 2026-07-22 14:08 UTCEPSS rescore
- 2026-07-21 15:24 UTCEPSS rescore
- 2026-07-20 17:08 UTCEPSS rescore
- 2026-07-20 14:02 UTCOSV refresh
- 2026-07-19 14:31 UTCEPSS rescore
- 2026-07-19 02:29 UTCEPSS rescore
- 2026-07-18 10:04 UTCEPSS rescore
- 2026-07-16 17:03 UTCEPSS rescore
- 2026-07-15 16:57 UTCEPSS rescore
- 2026-07-15 16:57 UTCEPSS rescore
- 2026-07-15 02:00 UTCEPSS rescore
- 2026-07-13 22:30 UTCEPSS rescore
- 2026-07-13 06:13 UTCEPSS rescore
- 2026-07-13 06:13 UTCEPSS rescore
- 2026-07-12 05:46 UTCEPSS rescore
- 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
Related CVEs(same vendor + same CWE)
Same vendor
10 shownredhat
- CVE-2001-0825EG 10.0HIGH
- CVE-2001-1009EG 10.0EPSS p93HIGH
- CVE-2001-0554EG 10.0EPSS p98HIGH
- CVE-2001-1162EG 10.0EPSS p96HIGH
- CVE-2001-0414EG 10.0EPSS p100HIGH
- CVE-2001-0191EG 10.0EPSS p92HIGH
- CVE-2001-0301EG 10.0EPSS p91HIGH
- CVE-2001-0197EG 10.0EPSS p96HIGH
- CVE-2001-0233EG 10.0EPSS p96HIGH
- CVE-2001-0010EG 10.0EPSS p98HIGH
Same CWE
10 shownCWE-502
- CVE-2017-10992EG 9.8EPSS p95CRITICAL
- CVE-2013-4521EG 9.8EPSS p90CRITICAL
- CVE-2014-1860EG 9.8CRITICAL
- CVE-2016-1000027EG 9.8EPSS p98CRITICAL
- CVE-2014-3699EG 9.8CRITICAL
- CVE-2017-10934EG 9.8CRITICAL
- CVE-2016-9498EG 9.8EPSS p97CRITICAL
- CVE-2016-9483EG 9.8CRITICAL
- CVE-2015-2020EG 9.8CRITICAL
- CVE-2017-12558EG 9.8EPSS p98CRITICAL
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.