Serhiy Storchaka added the comment:

Here is a patch for 3.3+.

Other versions are affected too. They don't raise SystemError, but produce 
illegal unicode string on wide build.

E.g. in Python 2.7:

>>> 'a+/,+IKw-b'.decode('utf-7', 'replace')
u'a\ufffd\U003f20acb'

\U003f20ac is illegal code.

As encoding and encoded data can come from external source, this can be used in 
secure attacks.

----------
keywords: +patch
nosy: +barry, benjamin.peterson, georg.brandl, larry
priority: normal -> release blocker
stage: needs patch -> patch review
type: crash -> security
versions: +Python 2.6, Python 2.7, Python 3.2
Added file: http://bugs.python.org/file32156/utf7_errors.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19279>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to