{"answers":{"affected":"1 open source package ship an affected version, including sheets-diff.","exploited":"There is no known exploitation of RUSTSEC-2026-0317 in the wild and no public exploit code.","fix":"Upgrade sheets-diff to 3.2.0 or later.","what":"RUSTSEC-2026-0317 is a denial of service vulnerability in sheets-diff, published on 29 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for RUSTSEC-2026-0317 and fix it if it is affected.\n\nWhat it is: RUSTSEC-2026-0317 is a denial of service vulnerability in sheets-diff, published on 29 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of RUSTSEC-2026-0317 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- sheets-diff (crates.io): affected from 0.0.0-0; fixed in 3.2.0\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/RUSTSEC-2026-0317/ (Markdown: https://insights.sbomify.com/RUSTSEC-2026-0317/index.md)","id":"RUSTSEC-2026-0317","markdown":"https://insights.sbomify.com/RUSTSEC-2026-0317/index.md","name":"RUSTSEC-2026-0317","record":{"aliases":["GHSA-w5x2-6474-pqp4"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Rust Excel parsing library","requires_auth":"none","summary":"Attackers can cause denial of service by providing a small malicious file that triggers excessive memory allocation in the calamine library.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"Affected versions passed caller-supplied bytes to `calamine`'s `Xlsx::new` without first checking\nthat they were a ZIP archive. `Xlsx::new` tests for password protection on its first line, which\nparses the input as an OLE/CFB container, and a sector-count field read from the file's own header\nreaches `Vec::with_capacity` without being checked against the file's actual length. A 512-byte input\ncan therefore request several gigabytes; 9,261,285,372 bytes was measured.\n\n**The oversized allocation is always attempted. Whether it aborts depends on what the allocator can\nsatisfy.** On a large host with overcommit the reservation is granted untouched and the call returns\nan ordinary \"not an xlsx file\" error, which looks like a malformed file being correctly rejected.\nUnder a memory limit the same bytes give `memory allocation of N bytes failed` and the process\naborts, which is not a `Result` a caller can handle. Containers with a memory limit, small hosts and\nCI runners are where this lands, so testing on a development machine can wrongly suggest the crate is\nunaffected.\n\nEvery entry point reaches it, not only `compare_bytes`: the path- and reader-based APIs funnel through\nthe same internal open. Neither `Limits::default()` nor `Limits::hardened()` prevents it, because\n`max_input_bytes` bounds the length of the input while the allocation's size comes from a field\ninside it.\n\nFixed in 3.2.0, which declines input that does not begin with the ZIP magic before the parser sees\nit, removing the path rather than bounding it. Callers who cannot upgrade can apply the same check\nbefore calling this crate.\n\nThe underlying defect is in `calamine`, reported there independently as\n[tafia/calamine#714](https://github.com/tafia/calamine/issues/714) and unfixed at the time of\nwriting. It is reachable from any crate that opens untrusted bytes with `Xlsx::new`.","ecosystems":["crates.io"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"A 512-byte workbook can provoke a multi-gigabyte allocation and abort the process","id":"RUSTSEC-2026-0317","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":1,"n_references":null,"packages":[{"ecosystem":"crates.io","fixed":["3.2.0"],"introduced":["0.0.0-0"],"last_affected":[],"package":"sheets-diff","purl":"pkg:cargo/sheets-diff","source":"RUSTSEC-2026-0317"}],"products":null,"published":"2026-09-29","related":[],"sources":[{"class":"open","licence":"CC0 1.0","name":"RustSec","prefix":"RUSTSEC"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Attackers can cause denial of service by providing a small malicious file that triggers excessive memory allocation in the calamine library.","url":"https://insights.sbomify.com/RUSTSEC-2026-0317/"}