GHSA-434x-w66g-qw3r · Severity: medium · Ecosystem: rust — bytes has integer overflow in BytesMut::reserve
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.
Conclusion & alert: CVE-2026-25541 is rated Exploit Available (50/100): CVSS Medium severity, with low exploitation likelihood (EPSS 0.01%). Core evidence: 2 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
| EDB-ID | Source | Kind | Published | Link |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ | |
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-02-05 | — | 0.01% | — |
Full EPSS history (1 record total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 5.5 | 4.0 | MEDIUM |
|
— | — | [email protected] |
| 7.5 | 3.1 | HIGH |
|
3.9 | 3.6 | [email protected] |
GHSA-434x-w66g-qw3r · Severity: medium · Ecosystem: rust — bytes has integer overflow in BytesMut::reserve
| vendor | priority | summary | link |
|---|---|---|---|
debian
|
unimportant | CVE-2026-25541 unimportant priority: Debian including 1 source packages (rust-bytes), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 3, open 2. | https://security-tracker.debian.org/tracker/CVE-2026-25541 |
ubuntu
|
medium | CVE-2026-25541 medium priority: Ubuntu including 1 source packages (rust-bytes), 5 status rows across 5 suites (focal, jammy, noble, questing, upstream): needs-triage 4, released 1. | https://ubuntu.com/security/CVE-2026-25541 |
| URL | Tags |
|---|---|
| https://github.com/tokio-rs/bytes/commit/d0293b0e35838123c51ca5dfdf468ecafee4398f | Patch |
| https://github.com/tokio-rs/bytes/releases/tag/v1.11.1 | Product Release Notes |
| https://github.com/tokio-rs/bytes/security/advisories/GHSA-434x-w66g-qw3r | Exploit Vendor Advisory |
| https://rustsec.org/advisories/RUSTSEC-2026-0007.html | Exploit Third Party Advisory |