Python is an interpreted, interactive, object-oriented programming language.
A buffer overflow was discovered in Python’s PyString_DecodeEscape function in stringobject.c.
Remote attackers, by enticing a user to process a specially crafted file, could execute arbitrary code.
There is no known workaround at this time.
All Python 2 users should upgrade to the latest version:
# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-lang/python-2.7.14:2.7"