BIT-python-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
Call base64.b64decode() or related functions with validate=True to enable stricter processing of base64 data.
Python base64.b64decode() and related functions validate = True