> CVE-2026-25541 [MEDIUM]

« BACK_TO_HOME
PUBLISHED
2026-02-04 22:16
MODIFIED
2026-02-04 22:16
CVSS_SCORE V3
5.5
EPSS (Prob. Exploit)
0.61%
Top 51.4%
DATA SOURCES:
NVD đź”— 2026-02-04 CWE MITRE đź”— 2026-11-01 FIRST EPSS đź”— 2026-10-25 GITHUB đź”— 2026-11-04 OSV đź”— 2026-07-26 MSRC đź”— 2026-11-02

> DESCRIPTION

Bytes is a utility library for working with bytes. From version 1.2.1 to before 1.11.1, Bytes is vulnerable to integer overflow in BytesMut::reserve. In the unique reclaim path of BytesMut::reserve, if the condition "v_capacity >= new_cap + offset" uses an unchecked addition. When new_cap + offset overflows usize in release builds, this condition may incorrectly pass, causing self.cap to be set to a value that exceeds the actual allocated capacity. Subsequent APIs such as spare_capacity_mut() then trust this corrupted cap value and may create out-of-bounds slices, leading to UB. This behavior is observable in release builds (integer overflow wraps), whereas debug builds panic due to overflow checks. This issue has been patched in version 1.11.1.

> AFFECTED_PRODUCTS

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

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Local (L)
Exploit nécessite un accès local au système
AC (Complexité d'Attaque)
Attack Complexity
Low (L)
Peu de conditions requises 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
None (N)
Aucune divulgation d'informations
I (Impact Intégrité)
Integrity Impact
None (N)
Aucune modification de données possible
A (Impact Disponibilité)
Availability Impact
High (H)
Interruption totale du service possible

> RÉSUMÉ DES IMPACTS

Confidentialité
None
Aucune divulgation d'informations
Intégrité
None
Aucune modification de données possible
Disponibilité
High
Interruption totale du service possible

> WEAKNESSES

CWE-680

> CWE DETAILED DESCRIPTIONS

CWE-680: Integer Overflow to Buffer Overflow - The product performs a calculation to determine how much memory to allocate, but an integer overflow can occur that causes less memory to be allocated than expected, leading to a buffer overflow.

> GITHUB SECURITY ADVISORY

GHSA-434x-w66g-qw3r MODERATE

bytes has integer overflow in BytesMut::reserve

AFFECTED PACKAGES:
RUST / bytes
>= 1.2.1, < 1.11.1
Fixed in: 1.11.1

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

Bytes is vulnerable to integer overflow in BytesMut::reserve

AFFECTED PACKAGES:
Unknown / Unknown
13 versions affected
ALIASES:
GHSA-434x-w66g-qw3r, RUSTSEC-2026-0007

> HISTORIQUE DES MODIFICATIONS

Première apparition
04/02/2026 22:16
Source: NVD
📊 ENRICHISSEMENT 01/03/2026 06:46
CWE
Champ modifié: Description CWE
Ancienne valeur:
N/A
Nouvelle valeur:
CWE-680: Integer Overflow to Buffer Overflow - The product performs a calculation to determine how much memory to allocate, but an integer overflow can occur that causes less memory to be allocated th...
Total des modifications: 1 Dernière mise à jour: 8 months ago

> REFERENCES

https://github.com/tokio-rs/bytes/commit/d0293b0e35838123c51ca5dfdf468ecafee4398...
https://github.com/tokio-rs/bytes/releases/tag/v1.11.1
https://github.com/tokio-rs/bytes/security/advisories/GHSA-434x-w66g-qw3r
https://rustsec.org/advisories/RUSTSEC-2026-0007.html
« BACK_TO_HOME