BIT-python-min-2026-3446: Base64 decoding stops at first padded quad by default
When calling base64.b64decode() or related functions the decoding process would stop after encountering the first padded quad regardless of whether there was more information to be processed. This can lead to data being accepted which may be processed differently by other implementations. Use "validate=True" to enable stricter processing of base64 data.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
Pass validate=True when decoding Base64 data to enable stricter processing and prevent decoding from stopping at the first padded quad while additional data remains.
Python base64.b64decode() and related functions validate = True