Improper access control in erb - CVE-2026-41316
Published: April 21, 2026 / Updated: April 21, 2026
erb
Detailed vulnerability description
The vulnerability allows a remote attacker to execute arbitrary code.
The vulnerability exists due to improper access control in ERB#def_module, ERB#def_method, and ERB#def_class when deserializing untrusted data with Marshal.load. A remote attacker can supply crafted serialized data to bypass the @_init guard and execute arbitrary code.
Exploitation requires both erb and activesupport to be loaded.