Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:gem/erb@4.0.4.1
purl pkg:gem/erb@4.0.4.1
Vulnerabilities affecting this package (0)
Vulnerability Summary Fixed by
This package is not known to be affected by vulnerabilities.
Vulnerabilities fixed by this package (1)
Vulnerability Summary Aliases
VCID-qabs-tqwy-fuar ERB has an @_init deserialization guard bypass via def_module / def_method / def_class ERB implements an @_init guard to prevent code execution when ERB objects are reconstructed via Marshal.load on untrusted data. However, ERB#def_method, ERB#def_module, and ERB#def_class evaluate the template source without checking this guard, allowing an attacker who controls the data passed to Marshal.load to bypass the protection and execute arbitrary code. In particular, def_module takes no arguments, making it straightforward to invoke as part of a deserialization gadget chain. Please update to Ruby 4.0.3 which "only contains ERB 6.0.1.1, which fixes CVE-2026-41316." CVE-2026-41316
GHSA-q339-8rmv-2mhv

Date Actor Action Vulnerability Source VulnerableCode Version
2026-06-07T20:54:11.686861+00:00 GHSA Importer Fixing VCID-qabs-tqwy-fuar https://github.com/advisories/GHSA-q339-8rmv-2mhv 38.6.0
2026-06-06T08:16:13.996019+00:00 GitLab Importer Fixing VCID-qabs-tqwy-fuar https://gitlab.com/gitlab-org/advisories-community/-/blob/main/gem/erb/CVE-2026-41316.yml 38.6.0
2026-06-04T16:52:12.208731+00:00 GithubOSV Importer Fixing VCID-qabs-tqwy-fuar https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-q339-8rmv-2mhv/GHSA-q339-8rmv-2mhv.json 38.6.0