Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

near/borsh-rs
master @ 3348776
1
Fixes
0
CVEs
HIGH
Peak severity
Highlights
Integer Overflow: 1 prior fix. Scrutinize any change in this area.
borsh/src/de/mod.rs: most-fixed (1 issue). Treat as high-risk during review.
1 high-severity fix in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Integer Overflow: Integer truncation or overflow during deserialization length validation can bypass memory allocation safety boundaries, leading to undefined behavior or memory safety violations via unsafe sinks such as Vec::from_raw_parts. This is particularly dangerous when deserializing malicious payloads on architectures where size_t differs from the serialized size type.