GLSA-201805-02 : Python: Buffer overflow

High Nessus Plugin ID 109534

New! Vulnerability Priority Rating (VPR)

Tenable calculates a dynamic VPR for every vulnerability. VPR combines vulnerability information with threat intelligence and machine learning algorithms to predict which vulnerabilities are most likely to be exploited in attacks. Read more about what VPR is and how it's different from CVSS.

VPR Score: 5.9

Synopsis

The remote Gentoo host is missing one or more security-related patches.

Description

The remote host is affected by the vulnerability described in GLSA-201805-02 (Python: Buffer overflow)

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.

Solution

All Python 2 users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=dev-lang/python-2.7.14:2.7'

See Also

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

Plugin Details

Severity: High

ID: 109534

File Name: gentoo_GLSA-201805-02.nasl

Version: 1.2

Type: local

Published: 2018/05/03

Updated: 2018/06/07

Dependencies: 12634

Risk Information

Risk Factor: High

VPR Score: 5.9

CVSS v2.0

Base Score: 7.5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS v3.0

Base Score: 9.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:python, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Patch Publication Date: 2018/05/02

Reference Information

CVE: CVE-2017-1000158

GLSA: 201805-02