CVE-2026-6409: Php Missing Negative Size Check In Buffer Read
A buffer bounds check uses `$this->bufferSize() < $SIZE` without first guarding against negative values of `$SIZE`. If `$SIZE` is derived from untrusted wire data (e.g., a protobuf varint cast to (int)), integer overflow can produce a negative value that always passes the non-negative `bufferSize()` comparison. Subsequent use of a negative size with `substr(
greprules fetch cve-2026-6409-php-missing-negative-size-check-in-buffer-read --engine opengrepDescription
A buffer bounds check uses `$this->bufferSize() < $SIZE` without first guarding against negative values of `$SIZE`. If `$SIZE` is derived from untrusted wire data (e.g., a protobuf varint cast to (int)), integer overflow can produce a negative value that always passes the non-negative `bufferSize()` comparison. Subsequent use of a negative size with `substr(
Community feedback
0 rule-level signals from signed-in users.
- Useful reports
- 0
- Context false positives
- 0
- Metadata suggestions
- 0
Contextual precision
Aggregated from approved scan feedback. False-positive reports describe observed scan contexts, not a global rule verdict.
- Findings observed
- 0
- Projects
- 0
- Reporters
- 0
Precision details are collecting more signed-in reports before verdict counts or ratios are emphasized.
No approved finding verdicts yet.
No scan diagnostics reported yet.