Security context

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

opennmt/ctranslate2
master @ e23a925
6
Fixes
0
CVEs
HIGH
Peak severity
Highlights
Memory Safety: 3 prior fixes. Scrutinize any change in this area.
include/ctranslate2/primitives/cpu_generic.h: 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.

Out-of-bounds Read: Input sequences that exceed default maximum sequence lengths can trigger out-of-bounds reads if the static pre-computed position encoding cache is not dynamically expanded. This can lead to information disclosure or application crashes.
Memory Safety: Lack of dimension validation in sequence decoding for multi-head and grouped-query attention can lead to heap buffer overflows during head replication.
Memory Safety: Insufficient loop boundary checks against vector sizes during biased decoding loops allow out-of-bounds vector reads and writes.