CVE-2026-28804: Inefficient Manual Byte Decode

Inefficient manual decoding using byte-by-byte conversion and concatenation inside a loop. This logic scales poorly and can cause severe performance degradation (Denial of Service) on large inputs. Use optimized built-in functions like `binascii.unhexlify`, `bytes.fromhex`, or `int.to_bytes` applied to the whole buffer instead.

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-28804-inefficient-manual-byte-decode --engine opengrep

Description

Inefficient manual decoding using byte-by-byte conversion and concatenation inside a loop. This logic scales poorly and can cause severe performance degradation (Denial of Service) on large inputs. Use optimized built-in functions like `binascii.unhexlify`, `bytes.fromhex`, or `int.to_bytes` applied to the whole buffer instead.