calamine: crafted .xls / .xlsb / .ods files cause panics and unbounded allocations (DoS)
Affects calamineSource GCVE Database
CVSS 7.5 High : upgrade to 0.39.0 soon.
Data as of 3 Dec 2026, 11:46 UTC
- Patch
- Available – fixed in 0.39.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HWhat to do
Upgrade calamine to 0.39.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
crates.iocalaminepkg:cargo/calamineOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade calamine to version 0.39.0 or later, where bounds validation and allocation caps have been implemented to prevent panics and unbounded allocations. Until upgraded, avoid parsing untrusted spreadsheet files with vulnerable versions. The vendor advisory confirms a fix is available in version 0.39.0.
Description
Calamine versions prior to 0.39.0 contain vulnerabilities in legacy binary parsers for .xls, .xlsb, and .ods spreadsheet files. These parsers do not validate field offsets, lengths, counts, or indices, allowing crafted files to cause process panics or unbounded memory allocations, resulting in denial of service. The issue affects applications that parse untrusted spreadsheet files via the public API. A fix is available in version 0.39.0.