[ GLSA 201805-02 ] Python: Buffer overflow


–tsOsTdHNUZQcU9Ye
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
Gentoo Linux Security Advisory GLSA 201805-02
– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
https://security.gentoo.org/
– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –

Severity: Normal
Title: Python: Buffer overflow
Date: May 02, 2018
Bugs: #637938
ID: 201805-02

– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –

Synopsis
=3D=3D=3D=3D=3D=3D=3D=3D

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

Background
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

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

Affected packages
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

——————————————————————-
Package / Vulnerable / Unaffected
——————————————————————-
1 dev-lang/python =3D 2.7.14:2.7=20

Description
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

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

Impact
=3D=3D=3D=3D=3D=3D

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

Workaround
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

There is no known workaround at this time.

Resolution
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

All Python 2 users should upgrade to the latest version:

# emerge –sync
# emerge –ask –oneshot –verbose “>=3Ddev-lang/python-2.7.14:2.7″

References
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

[ 1 ] CVE-2017-1000158
https://nvd.nist.gov/vuln/detail/CVE-2017-1000158

Availability
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

This GLSA and any updates to it are available for viewing at
the Gentoo Security Website:

https://security.gentoo.org/glsa/201805-02

Concerns?
=3D=3D=3D=3D=3D=3D=3D=3D=3D

Security is a primary focus of Gentoo Linux and ensuring the
confidentiality and security of our users’ machines is of utmost
importance to us. Any security concerns should be addressed to
security@gentoo.org or alternatively, you may file a bug at
https://bugs.gentoo.org.

License
=3D=3D=3D=3D=3D=3D=3D

Copyright 2018 Gentoo Foundation, Inc; referenced text
belongs to its owner(s).

The contents of this document are licensed under the
Creative Commons – Attribution / Share Alike license.

https://creativecommons.org/licenses/by-sa/2.5

–tsOsTdHNUZQcU9Ye
Content-Type: application/pgp-signature; name=”signature.asc”
Content-Description: Digital signature

—–BEGIN PGP SIGNATURE—–

iQEzBAEBCAAdFiEEiDRK3jyVBE/RkymqpRQw84X1dt0FAlrqT78ACgkQpRQw84X1
dt1gfgf7B9NVYOjdUAcqBbADZB+s7dFlaYOWJvstOPZDRiwOytDzQzg5BKBrVdfM
dMgo4Vtt3BiBjZhdpkH3Dtk+S2UFLG0latesdRqqDQGmzOT6G0357jW25DcMRPo3
W6Bqr29mEiftBmL9EVOR1gVhsIisOs7ZrlSPUeZ3MHukC95VPgD7OVWG+Vr9E+YM
2WD5bMO/OFWKUm99U4NByIos39MQPiTfjWlcMsc+o/njZl5iWkOlFokwqlDlqIhV
jVJ71z/DKrBHV17a2bFR/PNJ7SMOQQAHAJpgpb7MAdsHGd7e4BDvxdPorzc6fCdl
crrEud3I7h92pcgCv+kagPuSjaeMOQ==
=/CZM
—–END PGP SIGNATURE—–

–tsOsTdHNUZQcU9Ye–