CVE & CISA-KEV Catalog

CVE-2026-41316

HIGH
8.1
CVSS v3
NVD

Description

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.

How to fix

Remediation Available
ruby2.7Debian
Fixed in:2.7.4-1+deb11u6CVE-2026-41316
rubyRocky
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
rubyRed Hat / RHEL
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
ruby-bundled-gemsRed Hat / RHEL
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
ruby-bundled-gemsRocky
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
ruby-bundled-gems-debuginfoRed Hat / RHEL
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
ruby-bundled-gems-debuginfoRocky
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
ruby-debuginfoRocky
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
ruby-debuginfoRed Hat / RHEL
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
ruby-debugsourceRed Hat / RHEL
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
ruby-debugsourceRocky
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
ruby-default-gemsRocky
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-6.module+el9.6.0+24475+76cce029.noarch::ruby:3.3RHSA-2026:37238
Fixed in:0:3.3.10-6.module+el9.4.0+24333+ed4ca411.noarch::ruby:3.3RHSA-2026:26655
Fixed in:0:3.3.10-6.module+el9.7.0+24248+66578cbb.noarch::ruby:3.3RHSA-2026:18030
Fixed in:0:4.0.3-32.module+el9.8.0+24280+122d8796.noarch::ruby:4.0RHSA-2026:20596
Fixed in:0:3.3.10-6.module+el8.10.0+24247+b74f0fb8.noarch::ruby:3.3RHSA-2026:20614
Fixed in:0:3.0.7-166.el9_7RHSA-2026:18039
ruby-default-gemsRed Hat / RHEL
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-6.module+el8.10.0+24247+b74f0fb8.noarch::ruby:3.3RHSA-2026:20614
Fixed in:0:3.3.10-6.module+el9.4.0+24333+ed4ca411.noarch::ruby:3.3RHSA-2026:26655
Fixed in:0:3.3.10-6.module+el9.6.0+24475+76cce029.noarch::ruby:3.3RHSA-2026:37238
Fixed in:0:4.0.3-32.module+el9.8.0+24280+122d8796.noarch::ruby:4.0RHSA-2026:20596
Fixed in:0:3.3.10-6.module+el9.7.0+24248+66578cbb.noarch::ruby:3.3RHSA-2026:18030
Fixed in:0:3.0.7-166.el9_7RHSA-2026:18039
ruby-develRed Hat / RHEL
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
ruby-develRocky
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
ruby-docRed Hat / RHEL
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:4.0.3-32.module+el9.8.0+24280+122d8796.noarch::ruby:4.0RHSA-2026:20596
Fixed in:0:3.3.10-6.module+el9.6.0+24475+76cce029.noarch::ruby:3.3RHSA-2026:37238
Fixed in:0:3.3.10-6.module+el8.10.0+24247+b74f0fb8.noarch::ruby:3.3RHSA-2026:20614
Fixed in:0:3.3.10-6.module+el9.4.0+24333+ed4ca411.noarch::ruby:3.3RHSA-2026:26655
Fixed in:0:3.3.10-6.module+el9.7.0+24248+66578cbb.noarch::ruby:3.3RHSA-2026:18030
Fixed in:0:3.0.7-166.el9_7RHSA-2026:18039
ruby-docRocky
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-6.module+el8.10.0+24247+b74f0fb8.noarch::ruby:3.3RHSA-2026:20614
Fixed in:0:3.3.10-6.module+el9.6.0+24475+76cce029.noarch::ruby:3.3RHSA-2026:37238
Fixed in:0:3.3.10-6.module+el9.7.0+24248+66578cbb.noarch::ruby:3.3RHSA-2026:18030
Fixed in:0:3.3.10-6.module+el9.4.0+24333+ed4ca411.noarch::ruby:3.3RHSA-2026:26655
Fixed in:0:4.0.3-32.module+el9.8.0+24280+122d8796.noarch::ruby:4.0RHSA-2026:20596
Fixed in:0:3.0.7-166.el9_7RHSA-2026:18039
ruby-libsRed Hat / RHEL
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
ruby-libsRocky
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
ruby-libs-debuginfoRocky
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
ruby-libs-debuginfoRed Hat / RHEL
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-12.el10_1RHSA-2026:18065
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
Fixed in:0:3.3.10-11.el10_0.1RHSA-2026:33478
ruby4.0Rocky
Fixed in:0:4.0.3-34.el10_2RHSA-2026:20606
Fixed in:0:4.0.3-34.el10_2RHSA-2026:20606
Fixed in:0:4.0.3-34.el10_2RHSA-2026:20606
Fixed in:0:4.0.3-34.el10_2RHSA-2026:20606
Fixed in:0:4.0.3-34.el10_2RHSA-2026:20606
ruby4.0Red Hat / RHEL
Fixed in:0:4.0.3-34.el10_2RHSA-2026:20606
Fixed in:0:4.0.3-34.el10_2RHSA-2026:20606
Fixed in:0:4.0.3-34.el10_2RHSA-2026:20606
Fixed in:0:4.0.3-34.el10_2RHSA-2026:20606
Fixed in:0:4.0.3-34.el10_2RHSA-2026:20606
ruby4.0-debuginfoRed Hat / RHEL
Fixed in:0:4.0.3-34.el10_2RHSA-2026:20606
Fixed in:0:4.0.3-34.el10_2RHSA-2026:20606
Fixed in:0:4.0.3-34.el10_2RHSA-2026:20606
Fixed in:0:4.0.3-34.el10_2RHSA-2026:20606
ruby4.0-debuginfoRocky
Fixed in:0:4.0.3-34.el10_2RHSA-2026:20606
Fixed in:0:4.0.3-34.el10_2RHSA-2026:20606
Fixed in:0:4.0.3-34.el10_2RHSA-2026:20606
Fixed in:0:4.0.3-34.el10_2RHSA-2026:20606
ruby4.0-debugsourceRocky
Fixed in:0:4.0.3-34.el10_2RHSA-2026:20606
Fixed in:0:4.0.3-34.el10_2RHSA-2026:20606
Fixed in:0:4.0.3-34.el10_2RHSA-2026:20606
Fixed in:0:4.0.3-34.el10_2RHSA-2026:20606
ruby4.0-debugsourceRed Hat / RHEL
Fixed in:0:4.0.3-34.el10_2RHSA-2026:20606
Fixed in:0:4.0.3-34.el10_2RHSA-2026:20606
Fixed in:0:4.0.3-34.el10_2RHSA-2026:20606
Fixed in:0:4.0.3-34.el10_2RHSA-2026:20606
ruby4.0-develRed Hat / RHEL
Fixed in:0:4.0.3-34.el10_2RHSA-2026:20606
Fixed in:0:4.0.3-34.el10_2RHSA-2026:20606
Fixed in:0:4.0.3-34.el10_2RHSA-2026:20606
Fixed in:0:4.0.3-34.el10_2RHSA-2026:20606
ruby4.0-develRocky
Fixed in:0:4.0.3-34.el10_2RHSA-2026:20606
Fixed in:0:4.0.3-34.el10_2RHSA-2026:20606
Fixed in:0:4.0.3-34.el10_2RHSA-2026:20606
Fixed in:0:4.0.3-34.el10_2RHSA-2026:20606
ruby4.0-docRed Hat / RHEL
Fixed in:0:4.0.3-34.el10_2RHSA-2026:20606

This vulnerability affects an unusually large number of packages. The highest-confidence fixes are shown above; the full list is longer. Check the referenced advisories for complete coverage.

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityHigh
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

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

Exploit Intelligence

1.13%probability of exploitation in 30 days
64thpercentile

Moderate risk: more likely to be exploited than 64% of all known CVEs.

References

Related Vulnerabilities

Other CWE-693 (Protection Mechanism Failure) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2013-2465Critical9.899%KEV + Ransom-
CVE-2019-1003030Critical9.997%KEV-
CVE-2024-21412High8.195%KEV + RansomFix
CVE-2013-0431Medium5.390%KEV + Ransom-
CVE-2025-40536High8.182%KEVFix
CVE-2025-0411High7.067%KEVFix

Common questions

How do I fix CVE-2026-41316?

Published advisories record a fix for 107 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2026-41316 being actively exploited?

Not that we know of. CVE-2026-41316 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 1.1% is the estimated probability that it will be exploited in the next 30 days. That is higher than 64% of all scored CVEs.

How severe is CVE-2026-41316?

CVE-2026-41316 has a CVSS v3 base score of 8.1, rated high. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2026-41316 affect?

Published advisories record a fix for ruby2.7 (Debian), ruby (Rocky), ruby (Red Hat / RHEL), ruby-bundled-gems (Red Hat / RHEL), and 103 more. Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2026-41316
CVE-2026-41316 severity badge

Markdown

[![CVE-2026-41316](https://tridentstack.com/cve/badge/CVE-2026-41316.svg)](https://tridentstack.com/cve/CVE-2026-41316)

HTML

<a href="https://tridentstack.com/cve/CVE-2026-41316"><img src="https://tridentstack.com/cve/badge/CVE-2026-41316.svg" alt="CVE-2026-41316"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

See how it worksStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-08-24.