CVE Explorer
CVE-2026-25541
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() th
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"bytes","vendor":"tokio-rs","versions":[{"status":"affected","version":">= 1.2.1, < 1.11.1"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:38ac11e89db8cdcd848ad15b650b0ef60f679e576d97a46f232671866ee79659 · sha256:d62354eb99987510… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"LOCAL","baseScore":5.5,"baseSeverity":"MEDIUM","privilegesRequired":"NONE","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"HIGH","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE"},"metric_type":"cvssV4_0"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:38ac11e89db8cdcd848ad15b650b0ef60f679e576d97a46f232671866ee79659 · sha256:d62354eb99987510… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
1 source assertion{"cweId":"CWE-680","description":"CWE-680: Integer Overflow to Buffer Overflow","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:38ac11e89db8cdcd848ad15b650b0ef60f679e576d97a46f232671866ee79659 · sha256:d62354eb99987510… · /containers/cna/problemTypes/0/descriptions/0
Source references
4 source assertions{"name":"https://github.com/tokio-rs/bytes/commit/d0293b0e35838123c51ca5dfdf468ecafee4398f","tags":["x_refsource_MISC"],"url":"https://github.com/tokio-rs/bytes/commit/d0293b0e35838123c51ca5dfdf468ecafee4398f"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:38ac11e89db8cdcd848ad15b650b0ef60f679e576d97a46f232671866ee79659 · sha256:d62354eb99987510… · /containers/cna/references/1
{"name":"https://github.com/tokio-rs/bytes/releases/tag/v1.11.1","tags":["x_refsource_MISC"],"url":"https://github.com/tokio-rs/bytes/releases/tag/v1.11.1"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:38ac11e89db8cdcd848ad15b650b0ef60f679e576d97a46f232671866ee79659 · sha256:d62354eb99987510… · /containers/cna/references/2
{"name":"https://github.com/tokio-rs/bytes/security/advisories/GHSA-434x-w66g-qw3r","tags":["x_refsource_CONFIRM"],"url":"https://github.com/tokio-rs/bytes/security/advisories/GHSA-434x-w66g-qw3r"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:38ac11e89db8cdcd848ad15b650b0ef60f679e576d97a46f232671866ee79659 · sha256:d62354eb99987510… · /containers/cna/references/0
{"name":"https://rustsec.org/advisories/RUSTSEC-2026-0007.html","tags":["x_refsource_MISC"],"url":"https://rustsec.org/advisories/RUSTSEC-2026-0007.html"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:38ac11e89db8cdcd848ad15b650b0ef60f679e576d97a46f232671866ee79659 · sha256:d62354eb99987510… · /containers/cna/references/3
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.