CVE-2026-114615: Python Anchored Key Material Marker Guard

Incomplete key-material safety guard: `$KEY.startswith($MARKERS)` rejects asymmetric key markers only at byte 0, while PEM/SSH parsers accept leading whitespace, comment lines, or a UTF-8 BOM before the "-----BEGIN" block. Key bytes carrying such a prefix pass this deny-check and can later be imported as a symmetric (HMAC) key secret, so anyone who knows the

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-114615-python-anchored-key-material-marker-guard --engine opengrep

Description

Incomplete key-material safety guard: `$KEY.startswith($MARKERS)` rejects asymmetric key markers only at byte 0, while PEM/SSH parsers accept leading whitespace, comment lines, or a UTF-8 BOM before the "-----BEGIN" block. Key bytes carrying such a prefix pass this deny-check and can later be imported as a symmetric (HMAC) key secret, so anyone who knows the