Python: Buffer overflow — GLSA 201805-02

A buffer overflow in Python might allow remote attackers to execute arbitrary code.

Affected packages

dev-lang/python on all architectures
Affected versions < 2.7.14
Unaffected versions >= 2.7.14

Background

Python is an interpreted, interactive, object-oriented programming language.

Description

A buffer overflow was discovered in Python’s PyString_DecodeEscape function in stringobject.c.

Impact

Remote attackers, by enticing a user to process a specially crafted file, could execute arbitrary code.

Workaround

There is no known workaround at this time.

Resolution

All Python 2 users should upgrade to the latest version:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=dev-lang/python-2.7.14:2.7"
 

References

Release date
May 02, 2018

Latest revision
May 02, 2018: 1

Severity
normal

Exploitable
remote

Bugzilla entries