Repository navigation
Add advisory for calamine (CFB parser panic + unbounded allocation, DoS) - #3457
Open
1337-L3V1ATH0N wants to merge 1 commit into
Open
1337-L3V1ATH0N wants to merge 1 commit into
1337-L3V1ATH0N wants to merge 1 commit into
Conversation
Co-Authored-By: Claude <noreply@anthropic.com>
Member
|
Please use the pull request template. |
Author
|
Thanks for the review — I've updated the description to follow the PR template (affected crate, upstream link, severity, checklist). On the last checklist item: the issues are reported upstream in tafia/calamine#762 (open, with a fix + regression tests) but not yet acknowledged or merged by the maintainer. I'm happy to hold publication until they confirm, or proceed per your preference — just let me know. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Affected crate(s)
calamine(~6.1M recent downloads per crates.io)Links to upstream issue(s) or PR(s)
Severity
Two denial-of-service issues in the CFB/OLE2 parser (
src/cfb.rs), reachable via the public reader API (open_workbook/Xls::new/Xlsb::new; also VBA extraction in.xlsx) on crafted input; present in the current release (0.37.0):Directory::from_slice— the directory stream is parsed in.chunks(128)and fixed offsets (buf[..64],buf[116..120],buf[120..128]) are read without checking the chunk is 128 bytes, so a stream length that isn't a multiple of 128 panics (range end index 64 out of range for slice of length N).difatwithout bound; a ~512-byte file can drive a multi-gigabyte allocation.Allows remote denial of service (thread panic / process abort, or out-of-memory) for any consumer that parses untrusted spreadsheet files. Safe Rust — no memory unsafety, not RCE.
Checklist
RUSTSEC-0000-0000as the IDdatefield is set to the public disclosure date