patchminder
No public exploit found CVE-2026-41316

Code executionin Red Hat Enterprise Linux 10.

Published 24 Apr 2026 · Updated 24 Aug 2026 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

No public exploit found; not on exploited lists.

Severity
High 8.1
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · no login needed
Attack likelihood
Moderate
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 1.1% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed versions listed below
In plain words

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.

What to do now
  • Upgrade erb (RubyGems) to 4.0.3.1, 4.0.4.1, 6.0.1.1, 6.0.4 or later, whichever matches your release line.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
erb
Not confirmed
Not confirmed
CVE record
erb (RubyGems)
before 4.0.3.1
4.0.3.1
GitHub advisory
erb (RubyGems)
4.0.4 to before 4.0.4.1
4.0.4.1
GitHub advisory
erb (RubyGems)
5.0.0 to before 6.0.1.1
6.0.1.1
GitHub advisory
erb (RubyGems)
6.0.2 to before 6.0.4
6.0.4
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 20 Apr 2026
    CVE ID reserved by GitHub_M.
  2. 24 Apr 2026
    Published in the CVE List.
  3. 24 Aug 2026
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: No public exploit found. CISA assessment (SSVC): exploitation none.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
None known

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other Enterprise Linux 10 vulnerabilities

Same weakness: Protection mechanism failure

All CWE-693 vulnerabilities

References
Cite this page

Patchminder. CVE-2026-41316: Code execution in Red Hat Enterprise Linux 10. https://patchminder.com/cve/cve-2026-41316/ (accessed 5 December 2026).