Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions crates/sfbinpack/RUSTSEC-0000-0000.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
```toml
[advisory]
id = "RUSTSEC-0000-0000"
package = "sfbinpack"
date = "2026-05-02"
url = "https://github.com/Disservin/binpack-rust/issues/17"
informational = "unsound"
categories = ["memory-corruption"]
keywords = ["out-of-bounds"]

[versions]
patched = []
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This appears to have been fixed in 0.6.2.

```

# Out-of-bounds read via `BitReader` in `CompressedTrainingDataEntryReader`

`CompressedTrainingDataEntryReader` constructs a `BitReader` from a raw
pointer without tracking length. A crafted chunk with `num_plies > 0` but no
movetext bytes triggers out-of-bounds reads via the `BitReader`, which uses
`*self.movetext.add(self.read_offset)` without bounds checks.

This can be triggered through safe public APIs —
`CompressedTrainingDataEntryReader::new()` and `.next()` — with no `unsafe`
required from the caller.