> CVE-2026-34831 [MEDIUM]

« BACK_TO_HOME
PUBLISHED
2026-04-02 17:16
MODIFIED
2026-04-02 17:16
CVSS_SCORE V3
4.8
EPSS (Prob. Exploit)
0.25%
Top 85.1%
DATA SOURCES:
NVD 🔗 2026-04-02 RED HAT 🔗 2026-04-05 CWE MITRE 🔗 2026-11-01 FIRST EPSS 🔗 2026-10-25 GITHUB 🔗 2026-10-28

> DESCRIPTION

Rack is a modular Ruby web server interface. Prior to versions 2.2.23, 3.1.21, and 3.2.6, Rack::Files#fail sets the Content-Length response header using String#size instead of String#bytesize. When the response body contains multibyte UTF-8 characters, the declared Content-Length is smaller than the number of bytes actually sent on the wire. Because Rack::Files reflects the requested path in 404 responses, an attacker can trigger this mismatch by requesting a non-existent path containing percent-encoded UTF-8 characters. This results in incorrect HTTP response framing and may cause response desynchronization in deployments that rely on the incorrect Content-Length value. This issue has been patched in versions 2.2.23, 3.1.21, and 3.2.6.

> AFFECTED_PRODUCTS

ℹ️ Aucun produit affecté n'a encore été publié par NVD pour cette CVE.

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
EXPLOITABILITY
2.2
IMPACT
2.5

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Network (N)
Exploit possible à distance via réseau (HTTP, API, etc.)
AC (Complexité d'Attaque)
Attack Complexity
High (H)
Conditions spécifiques doivent être réunies pour exploiter
PR (Privilèges Requis)
Privileges Required
None (N)
Aucune authentification requise
UI (Interaction Utilisateur)
User Interaction
None (N)
Aucune interaction utilisateur nécessaire
S (Périmètre)
Scope
Unchanged (U)
Impact reste dans le périmètre du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
Low (L)
Divulgation limitée d'informations
I (Impact Intégrité)
Integrity Impact
Low (L)
Modification limitée des données possible
A (Impact Disponibilité)
Availability Impact
None (N)
Aucune interruption de service

> RÉSUMÉ DES IMPACTS

Confidentialité
Low
Divulgation limitée d'informations
Intégrité
Low
Modification limitée des données possible
Disponibilité
None
Aucune interruption de service

> WEAKNESSES

CWE-130 CWE-135

> CWE DETAILED DESCRIPTIONS

CWE-130: Improper Handling of Length Parameter Inconsistency - The product parses a formatted message or structure, but it does not handle or incorrectly handles a length field that is inconsistent with the actual length of the associated data. | CWE-135: Incorrect Calculation of Multi-Byte String Length - The product does not correctly calculate the length of strings that can contain wide or multi-byte characters.

> RED HAT SEVERITY ASSESSMENT

THREAT SEVERITY
Moderate

> GITHUB SECURITY ADVISORY

GHSA-q2ww-5357-x388 MODERATE

Rack has Content-Length mismatch in Rack::Files error responses

AFFECTED PACKAGES:
RUBYGEMS / rack
>= 3.2.0, < 3.2.6
Fixed in: 3.2.6
RUBYGEMS / rack
>= 3.0.0.beta1, < 3.1.21
Fixed in: 3.1.21
RUBYGEMS / rack
< 2.2.23
Fixed in: 2.2.23

> HISTORIQUE DES MODIFICATIONS

Première apparition
02/04/2026 17:16
Source: NVD
📊 ENRICHISSEMENT 01/05/2026 06:01
CWE
Champ modifié: Description CWE
Ancienne valeur:
N/A
Nouvelle valeur:
CWE-130: Improper Handling of Length Parameter Inconsistency - The product parses a formatted message or structure, but it does not handle or incorrectly handles a length field that is inconsistent wi...
📊 ENRICHISSEMENT 05/04/2026 05:02
REDHAT
Champ modifié: Sévérité Red Hat
Ancienne valeur:
N/A
Nouvelle valeur:
{ "threat_severity": "Moderate", "severity_scale": null }
📊 ENRICHISSEMENT 05/04/2026 05:02
REDHAT
Champ modifié: Red Hat
Ancienne valeur:
Non
Nouvelle valeur:
Oui
Total des modifications: 3 Dernière mise à jour: 6 months ago

> REFERENCES

https://github.com/rack/rack/security/advisories/GHSA-q2ww-5357-x388
« BACK_TO_HOME