RHEL 6 / 7 : python27 (RHSA-2016:1166)

medium Nessus Plugin ID 193823

Synopsis

The remote Red Hat host is missing one or more security updates.

Description

The remote Redhat Enterprise Linux 6 / 7 host has packages installed that are affected by multiple vulnerabilities as referenced in the RHSA-2016:1166 advisory.

Python is an interpreted, interactive, object-oriented programming language that supports modules, classes, exceptions, high-level dynamic data types, and dynamic typing. The python27 packages provide a stable release of Python 2.7 with a number of additional utilities and database connectors for MySQL and PostgreSQL.

Security Fix(es):

The following fix was applied to the python component:

* The Python standard library HTTP client modules (such as httplib or urllib) did not perform verification of TLS/SSL certificates when connecting to HTTPS servers. A man-in-the-middle attacker could use this flaw to hijack connections and eavesdrop or modify transferred data. (CVE-2014-9365)

Note: The Python standard library was updated to make it possible to enable certificate verification by default. However, for backwards compatibility, verification remains disabled by default. Future updates may change this default. Refer to the Knowledgebase article 2039753 linked to in the References section for further details about this change. (BZ#1311044, BZ#1319774)

The following fix was applied to the python-pymongo component:

* A denial of service flaw was found in the way Python's SSL module implementation performed matching of certain certificate names. A remote attacker able to obtain a valid certificate that contained multiple wildcard characters could use this flaw to issue a request to validate such a certificate, resulting in excessive consumption of CPU. (CVE-2013-2099)

The following fix was applied to the python-pymongo and python-virtualenv components:

* Multiple flaws were found in the way Python's SSL module performed matching of certificate names containing wildcards. A remote attacker able to obtain a valid certificate that contained certain names with wildcards could have them incorrectly accepted by Python SSL clients, not following the RFC 6125 recommendations. (CVE-2013-7440)

The CVE-2013-2099 issue was discovered by Florian Weimer (Red Hat Product Security).

Bug Fix(es) and Enhancement(s):

The python27 SoftwareCollection has been updated to a later version, which provides a number of bug fixes and enhancements over the previous version. Among others:

* The python27-PyYAML package has been added, which contains a Python YAML module. PyYAML is a YAML parser and emitter for Python; it is applicable for a broad range of tasks from complex configuration files to object serialization and persistance.

* Network security enhancements, described in the Python Enhancent Proposal 466, have been backported to the Python standard library. The security enhancements include, for example, new features in the ssl module, such as support for Server Name Indication (SNI) as well as support for new TLSv1.x protocols, new hash algorithms in the hashlib module, and much more.

* The python27-python-pip package has been upgraded to version 7.1.0.

* The python27-python-virtualenv package has been upgraded to verion 13.1.0.

* The python27-python-pymongo package has been upgraded to version 3.2.1.

(BZ#1301481, BZ#1297784, BZ#1111464, BZ#1319774)

Tenable has extracted the preceding description block directly from the Red Hat Enterprise Linux security advisory.

Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Update the affected packages.

See Also

https://access.redhat.com/articles/2039753

https://bugzilla.redhat.com/show_bug.cgi?id=963260

https://bugzilla.redhat.com/show_bug.cgi?id=1224999

https://access.redhat.com/errata/RHSA-2016:1166

https://access.redhat.com/security/updates/classification/#moderate

https://bugzilla.redhat.com/show_bug.cgi?id=1173041

https://bugzilla.redhat.com/show_bug.cgi?id=1266529

https://bugzilla.redhat.com/show_bug.cgi?id=1297783

https://bugzilla.redhat.com/show_bug.cgi?id=1297784

https://bugzilla.redhat.com/show_bug.cgi?id=1318319

https://bugzilla.redhat.com/show_bug.cgi?id=1329141

https://bugzilla.redhat.com/show_bug.cgi?id=1329944

https://bugzilla.redhat.com/show_bug.cgi?id=1330041

https://bugzilla.redhat.com/show_bug.cgi?id=1334447

http://www.nessus.org/u?1db040d7

Plugin Details

Severity: Medium

ID: 193823

File Name: redhat-RHSA-2016-1166.nasl

Version: 1.1

Type: local

Agent: unix

Published: 4/24/2024

Updated: 3/20/2025

Supported Sensors: Frictionless Assessment AWS, Frictionless Assessment Azure, Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Continuous Assessment, Nessus

Risk Information

VPR

Risk Factor: Low

Score: 3.6

Vendor

Vendor Severity: Moderate

CVSS v2

Risk Factor: Medium

Base Score: 4.3

Temporal Score: 3.2

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

CVSS Score Source: CVE-2013-7440

CVSS v3

Risk Factor: Medium

Base Score: 5.9

Temporal Score: 5.2

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

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:redhat:enterprise_linux:python27-python, cpe:/o:redhat:enterprise_linux:6, p-cpe:/a:redhat:enterprise_linux:python27-python-devel, p-cpe:/a:redhat:enterprise_linux:python27-python-docutils, p-cpe:/a:redhat:enterprise_linux:python27-python-virtualenv, p-cpe:/a:redhat:enterprise_linux:python27-python-pymongo-doc, p-cpe:/a:redhat:enterprise_linux:python27-scldevel, p-cpe:/a:redhat:enterprise_linux:python27-scipy, p-cpe:/a:redhat:enterprise_linux:python27-python-pymongo, p-cpe:/a:redhat:enterprise_linux:python27-tkinter, p-cpe:/a:redhat:enterprise_linux:python27-python-pip, p-cpe:/a:redhat:enterprise_linux:python27-python-bson, p-cpe:/a:redhat:enterprise_linux:python27-numpy-f2py, p-cpe:/a:redhat:enterprise_linux:python27-python-tools, p-cpe:/a:redhat:enterprise_linux:python27-python-test, p-cpe:/a:redhat:enterprise_linux:python27-python-libs, p-cpe:/a:redhat:enterprise_linux:python27-pyyaml, p-cpe:/a:redhat:enterprise_linux:python27-numpy, cpe:/o:redhat:enterprise_linux:7, p-cpe:/a:redhat:enterprise_linux:python27, p-cpe:/a:redhat:enterprise_linux:python27-python-debug, p-cpe:/a:redhat:enterprise_linux:python27-python-pymongo-gridfs, p-cpe:/a:redhat:enterprise_linux:python27-runtime

Required KB Items: Host/local_checks_enabled, Host/RedHat/release, Host/RedHat/rpm-list, Host/cpu

Exploit Ease: No known exploits are available

Patch Publication Date: 5/31/2016

Vulnerability Publication Date: 5/15/2013

Reference Information

CVE: CVE-2013-2099, CVE-2013-7440

CWE: 407

RHSA: 2016:1166