Multiple integer overflows in Python 2.2.3 through 2.5.1, and 2.6, allow context-dependent attackers to have an unknown impact via a large integer value in the tabsize argument to the expandtabs method, as implemented by (1) the stringexpandtabs function in Objects/stringobject.c and (2) the unicodeexpandtabs function in Objects/unicodeobject.c. NOTE: this vulnerability reportedly exists because of an incomplete fix for CVE-2008-2315.
A sandboxing issue in Odoo Community 11.0 through 13.0 and Odoo Enterprise 11.0 through 13.0, when running with Python 3.6 or later, allows remote authenticated users to execute arbitrary code, leading to privilege escalation.
StackStorm before 3.4.1, in some situations, has an infinite loop that consumes all available memory and disk space. This can occur if Python 3.x is used, the locale is not utf-8, and there is an attempt to log Unicode data (from an action or rule name).
Untrusted search path vulnerability in python.exe in Python through 3.5.0 on Windows allows local users to gain privileges via a Trojan horse readline.pyd file in the current working directory. NOTE: the vendor says "It was determined that this is a longtime behavior of Python that cannot really be altered at this point."
Last updated 24 July 2024
DISPUTED An issue in Python cpython v.3.7 allows an attacker to obtain sensitive information via the asyncio.swapcurrenttask component. NOTE: this is disputed by the vendor because (1) neither 3.7 nor any other release is affected (it is a bug in some 3.12 pre-releases); (2) there are no common scenarios in which an adversary can call asyncio.swapcurrenttask but does not already have the ability to call arbitrary functions; and (3) there are no common scenarios in which sensitive information, which is not already accessible to an adversary, becomes accessible through this bug.
An open redirection vulnerability in lib/http/server.py due to no protection against multiple (/) at the beginning of URI path which may leads to information disclosure.
References:
https://bugs.python.org/issue43223
In Lib/tarfile.py in Python through 3.8.3, an attacker is able to craft a TAR archive leading to an infinite loop when opened by tarfile.open, because procpax lacks header validation.
Reference: https://bugs.python.org/issue39017
Upstream commit: https://github.com/python/cpython/pull/21454
Python 3.x through 3.9.1 has a buffer overflow in PyCArgrepr in ctypes/callproc.c, which may lead to remote code execution in certain Python applications that accept floating-point numbers as untrusted input.
Reference:
https://bugs.python.org/issue42938 https://github.com/python/cpython/pull/24239
Race condition in the getmaskedmode function in Lib/os.py in Python 3.2 through 3.5, when existok is set to true and multiple threads are used, might allow local users to bypass intended file permissions by leveraging a separate application vulnerability before the umask has been set to the expected value.
Untrusted search path vulnerability in the Python language bindings for Nautilus allows local users to execute arbitrary code via a Trojan horse Python file in the current working directory, related to an erroneous setting of sys.path by the PySysSetArgv function.
References (more details, PoC): http://www.nabble.com/Bug-484305%3A-bicyclerepair%3A-bike.vim-imports-untrusted-python-files-from-cwd-td18848099.html
Proposed patch: The Debian patch for similar dia's Python related issue, available at:
http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;filename=pythonpath.diff;att=1;bug=504251
should be sufficient to resolve this issue.
Python SVN commit r64114 added integer overflow checks to multiple python module:
http://svn.python.org/view?view=rev&revision=64114
All the issue got covered under single CVE - CVE-2008-3143.
Checks added to audioop (and rgbimg, see bug #541698) were incorrect and possible to bypass:
http://bugs.python.org/issue8674
Common Vulnerabilities and Exposures assigned an identifier CVE-2010-2089 to the following vulnerability:
The audioop module in Python 2.7 and 3.2 does not verify the relationships between size arguments and byte string lengths, which allows context-dependent attackers to cause a denial of service (memory corruption and application crash) via crafted arguments, as demonstrated by a call to audioop.reverse with a one-byte string, a different vulnerability than CVE-2010-1634.
References: [1] http://bugs.python.org/issue7673
Public PoC (from [1]): $ python -c "import audioop; audioop.reverse('X', 2)" Fatal Python error: Inconsistent interned string state. Abandon
A race condition was found in the way Python's SMTP proxy module (smtpd.py) processed retrieving of remote IP address the socket was connected to (the other end could close the connection sooner before the requester could get the peername). A remote, unauthenticated user could use this flaw to cause the running python SMTP instance to terminate with uncaught exception by issuing sequence of connection requests within short time interval.
References: [1] http://bugs.python.org/issue9129
Upstream patch: [2] http://svn.python.org/view?view=rev&revision=84289
Note that in versions of Python that still had NPN support, whether NPN support is built depends on which SSL library/version you build with: https://github.com/python/cpython/blob/3.9/Modules/ssl.c#L188-L202
-------- Forwarded Message -------- Date: Thu, 27 Jun 2024 16:09:13 -0500 From: Seth Larson <seth () python org> Reply-To: security-sig () python org To: security-announce () python org This vulnerability is of severity LOW. Suggested mitigation is one of the following:
Upgrade to Python 3.10 or later where NPN isn't supported Avoid using NPN via SSLContext.setnpnprotocols() Avoid providing an empty list as a parameter to SSLContext.setnpnprotocols()
Security Fix(es): python: Path traversal on tempfile.TemporaryDirectory (CVE-2023-6597) python: The zipfile module is vulnerable to zip-bombs leading to denial of service (CVE-2024-0450) skupper: potential authentication bypass to skupper console via forged cookies (CVE-2024-6535) For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
Python is an interpreted, interactive, object-oriented programminglanguage.An integer overflow flaw was discovered in the way Python's pcre modulehandled certain regular expressions. If a Python application used the pcremodule to compile and execute untrusted regular expressions, it may bepossible to cause the application to crash, or allow arbitrary codeexecution with the privileges of the Python interpreter. (CVE-2006-7228)A flaw was discovered in the strxfrm() function of Python's locale module.Strings generated by this function were not properly NULL-terminated, whichcould possibly cause disclosure of data stored in the memory of a Pythonapplication using this function. (CVE-2007-2052)Users of Python are advised to upgrade to these updated packages, whichcontain backported patches to resolve these issues.