{"answers":{"affected":"3 open source packages ship an affected version, including bytes. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-25541 exists.","fix":"Upgrade bytes to 1.11.1 or later.","what":"CVE-2026-25541 is a medium-severity vulnerability in tokio-rs bytes, published on 4 Feb 2026. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-25541 and fix it if it is affected.\n\nWhat it is: CVE-2026-25541 is a medium-severity vulnerability in tokio-rs bytes, published on 4 Feb 2026. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-25541 exists.\n\nAffected packages and fixed versions:\n- bytes (crates.io): affected from 1.2.1; fixed in 1.11.1\n- bytes (crates.io): affected from 1.2.1; fixed in 1.11.1\n- bytes (crates.io): affected from 1.2.1; fixed in 1.11.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-25541/ (Markdown: https://insights.sbomify.com/CVE-2026-25541/index.md)","id":"CVE-2026-25541","markdown":"https://insights.sbomify.com/CVE-2026-25541/index.md","name":"CVE-2026-25541","record":{"aliases":["AZL-76691","AZL-76703","AZL-76712","AZL-76715","AZL-76718","AZL-76721","AZL-76752","AZL-78615","AZL-85059","CLEANSTART-2026-OG35217","CLEANSTART-2026-WJ40608","DEBIAN-CVE-2026-25541","GHSA-434x-w66g-qw3r","MINI-36q8-j2fj-6wvq","MINI-68w3-q773-j52h","MINI-7g6p-q8hc-m23f","MINI-8vxc-wg98-j2gp","MINI-97cp-2wx6-h9v2","MINI-cc89-xfwq-qg7w","MINI-cqrm-88vx-8j76","MINI-cw3f-949x-fr7w","MINI-ff4f-4r5m-8jr6","MINI-gvcj-x3wf-q444","MINI-h65q-r93f-mmfw","MINI-hxwc-w2h2-rjwr","MINI-m9mr-76gq-mchx","MINI-mxxv-5775-hvp8","MINI-p6cv-wgx6-hg57","MINI-qhxm-mhfp-6j2q","MINI-r6gg-rp2r-2hcq","MINI-vhcw-383c-pfhv","MINI-vvc4-h6jg-3fjf","MINI-wjpj-cwm4-w62j","RUSTSEC-2026-0007","SUSE-SU-2026:22935-1","UBUNTU-CVE-2026-25541","openSUSE-RU-2026:21658-1","openSUSE-SU-2026:11280-1","openSUSE-SU-2026:11482-1","openSUSE-SU-2026:11495-1","openSUSE-SU-2026:11512-1","openSUSE-SU-2026:11513-1","openSUSE-SU-2026:11522-1","openSUSE-SU-2026:11525-1","openSUSE-SU-2026:11528-1","openSUSE-SU-2026:11529-1","openSUSE-SU-2026:11549-1","openSUSE-SU-2026:11655-1","openSUSE-SU-2026:11835-1","openSUSE-SU-2026:11905-1","openSUSE-SU-2026:12205-1","openSUSE-SU-2026:21428-1","openSUSE-SU-2026:21794-1","openSUSE-SU-2026:21815-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Rust bytes library","requires_auth":"none","summary":"An integer overflow in the Rust bytes library allows attackers to trigger out-of-bounds memory access, potentially leading to code execution or crashes.","user_interaction":"not_required","vuln_class":"integer_overflow"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"bytes","vendor":"tokio-rs"}],"cvss":{"score":5.5,"severity":"medium","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-680","name":"Integer Overflow to Buffer Overflow"}],"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 \u003e= 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.","ecosystems":["SUSE:Linux Micro 6.2","crates.io","openSUSE:Leap 16.0","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":"2026-06-22","github_poc":1,"max_poc_stars":1,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-06-22T08:28:50Z","kind":"github_poc","ref":"https://github.com/trajanOx/cve-2026-25541-fuel-analysis","stars":1,"title":"CVE-2026-25541 impact analysis for Fuel infrastructure (bytes crate integer overflow)"}],"tier":"weaponised"},"has_fix":true,"headline":"Bytes is vulnerable to integer overflow in BytesMut::reserve","id":"CVE-2026-25541","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"integer_overflow","year":"2026"},"n_packages":22,"n_references":4,"next":{"headline":"Tekton Pipelines: VerificationPolicy regex pattern bypass via substring matching","id":"CVE-2026-25542"},"packages":[{"ecosystem":"crates.io","fixed":["1.11.1"],"introduced":["1.2.1"],"last_affected":[],"package":"bytes","purl":null,"source":"GHSA-434x-w66g-qw3r"},{"ecosystem":"crates.io","fixed":["1.11.1"],"introduced":["1.2.1"],"last_affected":[],"package":"bytes","purl":"pkg:cargo/bytes","source":"GHSA-434x-w66g-qw3r"},{"ecosystem":"crates.io","fixed":["1.11.1"],"introduced":["1.2.1"],"last_affected":[],"package":"bytes","purl":"pkg:cargo/bytes","source":"RUSTSEC-2026-0007"},{"ecosystem":"SUSE:Linux Micro 6.2","fixed":["0.3.5-160000.1.1"],"introduced":["0"],"last_affected":[],"package":"nm-configurator","purl":"pkg:rpm/suse/nm-configurator\u0026distro=SUSE%20Linux%20Micro%206.2","source":"SUSE-SU-2026:22935-1"},{"ecosystem":"openSUSE:Leap 16.0","fixed":["0.3.5-160000.1.1"],"introduced":["0"],"last_affected":[],"package":"nm-configurator","purl":"pkg:rpm/opensuse/nm-configurator\u0026distro=openSUSE%20Leap%2016.0","source":"openSUSE-SU-2026:21428-1"},{"ecosystem":"openSUSE:Leap 16.0","fixed":["1.4.0-bp160.1.1"],"introduced":["0"],"last_affected":[],"package":"sequoia-sq","purl":"pkg:rpm/opensuse/sequoia-sq\u0026distro=openSUSE%20Leap%2016.0","source":"openSUSE-RU-2026:21658-1"},{"ecosystem":"openSUSE:Leap 16.0","fixed":["1762634235.5d503b1-bp160.1.1"],"introduced":["0"],"last_affected":[],"package":"supergfxctl","purl":"pkg:rpm/opensuse/supergfxctl\u0026distro=openSUSE%20Leap%2016.0","source":"openSUSE-SU-2026:21794-1"},{"ecosystem":"openSUSE:Leap 16.0","fixed":["0.4.0-bp160.1.1"],"introduced":["0"],"last_affected":[],"package":"waylyrics","purl":"pkg:rpm/opensuse/waylyrics\u0026distro=openSUSE%20Leap%2016.0","source":"openSUSE-SU-2026:21815-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.22.2~git0.281452c-2.1"],"introduced":["0"],"last_affected":[],"package":"cargo-audit","purl":"pkg:rpm/opensuse/cargo-audit\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:11512-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.10.23-2.1"],"introduced":["0"],"last_affected":[],"package":"cargo-c","purl":"pkg:rpm/opensuse/cargo-c\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:11513-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.6.0-2.1"],"introduced":["0"],"last_affected":[],"package":"forgejo-cli","purl":"pkg:rpm/opensuse/forgejo-cli\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:11529-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["2.13.1-1.1"],"introduced":["0"],"last_affected":[],"package":"git-cliff","purl":"pkg:rpm/opensuse/git-cliff\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:11495-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.1.0+git20260515.672e65a-1.1"],"introduced":["0"],"last_affected":[],"package":"librepods","purl":"pkg:rpm/opensuse/librepods\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:11835-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.25.12-1.1"],"introduced":["0"],"last_affected":[],"package":"markdown-oxide","purl":"pkg:rpm/opensuse/markdown-oxide\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:11549-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.3.5-2.1"],"introduced":["0"],"last_affected":[],"package":"nm-configurator","purl":"pkg:rpm/opensuse/nm-configurator\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:11280-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["7.2.2-2.1"],"introduced":["0"],"last_affected":[],"package":"obs-service-cargo","purl":"pkg:rpm/opensuse/obs-service-cargo\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:11522-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.29.0~0-1.1"],"introduced":["0"],"last_affected":[],"package":"rustup","purl":"pkg:rpm/opensuse/rustup\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:11525-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["2.6.0-1.1"],"introduced":["0"],"last_affected":[],"package":"switcheroo","purl":"pkg:rpm/opensuse/switcheroo\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:12205-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.8.0-2.1"],"introduced":["0"],"last_affected":[],"package":"tealdeer","purl":"pkg:rpm/opensuse/tealdeer\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:11905-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.26.8-5.1"],"introduced":["0"],"last_affected":[],"package":"tree-sitter","purl":"pkg:rpm/opensuse/tree-sitter\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:11655-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.2.100-2.1"],"introduced":["0"],"last_affected":[],"package":"wasm-bindgen","purl":"pkg:rpm/opensuse/wasm-bindgen\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:11528-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.10.0-2.1"],"introduced":["0"],"last_affected":[],"package":"wild","purl":"pkg:rpm/opensuse/wild\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:11482-1"}],"prev":{"headline":"Information disclosure in mastodon","id":"CVE-2026-25540"},"products":["bytes"],"published":"2026-02-04","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"open","licence":"CC0 1.0","name":"RustSec","prefix":"RUSTSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-02-05","vendors":["tokio-rs"]},"summary":"An integer overflow in the Rust bytes library allows attackers to trigger out-of-bounds memory access, potentially leading to code execution or crashes.","url":"https://insights.sbomify.com/CVE-2026-25541/"}