1. Accueil
  2. Vulnérabilités
  3. CVE-2026-41316

CVE-2026-41316

ERB is a templating system for Ruby. Ruby 2.7.0 (before ERB 2.2.0 was published on rubygems.org) introduced…

Publiée le 24 avr. 2026 · modifiée le 26 oct. 2026 · Sources : NVD, CNA (éditeur ou attributeur), CERT-FR, EPSS (FIRST)

Moyen 52/100

Résumé

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.

Aucune traduction française : description d’origine affichée.

Produits et versions affectés

Rubygems (4 ligne(s))
Rubygems
ProduitVersionsCorrigé dansSource
erb avant 4.0.3.1 (exclu) 4.0.3.1 GitHub Advisory
erb de 4.0.4 (inclus) à 4.0.4.1 (exclu) 4.0.4.1 GitHub Advisory
erb de 5.0.0 (inclus) à 6.0.1.1 (exclu) 6.0.1.1 GitHub Advisory
erb de 6.0.2 (inclus) à 6.0.4 (exclu) 6.0.4 GitHub Advisory

Correctif

Mise à jour — RubyGems/erb 4.0.3.1; RubyGems/erb 4.0.4.1; RubyGems/erb 6.0.1.1; RubyGems/erb 6.0.4source officielle

Source : GitHub Advisory

Contournement

Aucun contournement renseigné.

Savoir si vous êtes touché

Aucune méthode de vérification renseignée.

Chronologie

  1. — Publication de la CVE (cve)

Avis CERT-FR

Références

Provenance des données

Statut
NVD
Date de publication
NVD
Description
NVD
Score CVSS
CNA (éditeur ou attributeur)
Faiblesse (CWE)
CNA (éditeur ou attributeur)
Vecteur CVSS
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H (CVSS 3.1, CNA:security-advisories@github.com)
Faiblesse
CWE-693 · Autre (CWE-693)

Comment sont obtenues et calculées ces données