Описание
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.
Пакеты
| Пакет | Статус | Версия исправления | Релиз | Тип |
|---|---|---|---|---|
| python3.14 | fixed | 3.14.4-1 | package | |
| python3.13 | fixed | 3.13.14-1 | package | |
| python3.13 | fixed | 3.13.5-2+deb13u2 | trixie | package |
| python3.11 | removed | package | ||
| python3.11 | ignored | bookworm | package | |
| python3.9 | removed | package | ||
| python3.9 | ignored | bullseye | package | |
| python2.7 | removed | package | ||
| python2.7 | end-of-life | bullseye | package |
Примечания
https://mail.python.org/archives/list/security-announce@python.org/thread/F5ZT5ICGJ6CKXVUJ34YBVY7WOZ5SHG53/
https://github.com/python/cpython/issues/145264
https://github.com/python/cpython/pull/145267
Fixed by: https://github.com/python/cpython/commit/4561f6418a691b3e89aef0901f53fe0dfb7f7c0e (v3.15.0a8)
Fixed by: https://github.com/python/cpython/commit/e31c55121620189a0d1a07b689762d8ca9c1b7fa (v3.14.4)
Fixed by: https://github.com/python/cpython/commit/1f9958f909c1b41a4ffc0b613ef8ec8fa5e7c474 (v3.13.13)
Risk for broken compatibility concerns for older versions, thus will not be backported upstream:
https://github.com/python/cpython/issues/145264#issuecomment-4409789500
Связанные уязвимости
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.
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.
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.