CVE-2026-65148: Cpp Memory Safety Unsized Buffer Parser Memcpy

A parsing routine copies bytes straight out of an input buffer it received as a bare pointer: the function signature carries no length or end parameter and the body derives no bounded end pointer, so nothing constrains the copy against the real buffer size. The memcpy source operand is the unsized buffer itself (the bare pointer, or that pointer plus an offs

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0C++
greprules fetch cve-2026-65148-cpp-memory-safety-unsized-buffer-parser-memcpy --engine opengrep

Description

A parsing routine copies bytes straight out of an input buffer it received as a bare pointer: the function signature carries no length or end parameter and the body derives no bounded end pointer, so nothing constrains the copy against the real buffer size. The memcpy source operand is the unsized buffer itself (the bare pointer, or that pointer plus an offs