Python

117 CVEs across 33 Python products. Browse Python vulnerabilities, severities, and proof-of-concept exploits.

Python products with known CVEs

ProductCVEs
Python144
Pillow73
Urllib319
Requests6
Setuptools4
Keyring3
Black2
Pyxdg2
Pyxml2
Typed Ast2
Beaker1
Cpython1
Hpack1
Hyper1
Jw.util1
Mwlib1
Novajoin1
Openpyxl1
Protobuf1
Py-Bcrypt1
Pybluemonday1
Pymanager1
Pypi1
Pypiserver1
Python-Gnupg1
Python Keyring1
Python Priority Library1
Rply1
Rsa1
Tablib1
Tgcaptcha21
Tkvideoplayer1
Virtualenv1
Python CVEs — newest first (page 1 of 2)
CVESeverityScorePublishedSummary
CVE-2026-59200High7.52026-07-14Pillow is a Python imaging library. From 5.1.0 until 12.3.0, PdfParser.PdfStream.decode() in PIL/PdfParser.py calls zlib.decompress() with bufsize set to the P…
CVE-2026-59197High8.22026-07-14Pillow is a Python imaging library. Prior to 12.3.0, Pillow's public rank-filter API can trigger a native heap out-of-bounds write when given a very large odd…
CVE-2026-54058Critical9.12026-07-14Pillow is a Python imaging library. Prior to 12.3.0, when Pillow loads an uncompressed McIdas AREA image from a filename through the mmap raw codec path, attac…
CVE-2026-59205High7.52026-07-14Pillow is a Python imaging library. Prior to 12.3.0, Pillow's ImageCms.ImageCmsTransform.apply(im, imOut) API can trigger controlled native heap corruption whe…
CVE-2026-59204High7.52026-07-14Pillow is a Python imaging library. From 8.2.0 through 12.2.0, src/libImaging/Jpeg2KDecode.c accumulates total_component_width across every tile in a JPEG2000…
CVE-2026-59203Medium5.32026-07-14Pillow is a Python imaging library. From 12.0.0 through 12.2.0, Pillow's EPS parser in PIL/EpsImagePlugin.py accepts a negative byte count in the %%BeginBinary…
CVE-2026-59199High7.52026-07-14Pillow is a Python imaging library. Prior to 12.3.0, Pillow public image coordinate APIs can trigger a native heap out-of-bounds write when given coordinates n…
CVE-2026-59198Medium6.52026-07-14Pillow is a Python imaging library. From 5.2.0 until 12.3.0, Pillow's TGA RLE encoder reads past its packed row buffer when saving a mode 1 image with TGA RLE…
CVE-2026-15308High7.52026-07-09The incremental HTML parser (html.parser.HTMLParser) allows for CPU denial-of-service through repeated unterminated markup declarations when processing uncontr…
CVE-2026-59890Medium6.12026-07-08setuptools is a package that allows users to download, build, install, upgrade, and uninstall Python packages. Prior to 83.0.0, FileList applied MANIFEST.in ex…
CVE-2026-55798Medium4.52026-07-06Pillow is a Python imaging library. Prior to 12.3.0, WindowsViewer.get_command() constructed a cmd.exe shell command by directly embedding a file path into an…
CVE-2026-55380High7.52026-07-06Pillow is a Python imaging library. Prior to 12.3.0, PIL/GdImageFile.py GdImageFile._open() read image dimensions from the GD 2.x header and stored them in sel…
CVE-2026-55379High7.52026-07-06Pillow is a Python imaging library. Prior to 12.3.0, PIL/BdfFontFile.py bdf_char() read the BBX width and height field from a BDF font file and passed attacker…
CVE-2026-54060High7.52026-07-06Pillow is a Python imaging library. Prior to 12.3.0, PIL/FontFile.py FontFile.compile() assembled per-glyph images into a combined bitmap with Image.new("1", (…
CVE-2026-54059High7.52026-07-06Pillow is a Python imaging library. Prior to 12.3.0, PIL/PcfFontFile.py _load_bitmaps() read glyph dimensions from the PCF METRICS section and passed them dire…
CVE-2026-4360Medium5.32026-06-30In the Tarfile.extract() function, the filter parameter is not passed properly when extracting hardlinks. An affected system that extracts content from untrust…
CVE-2026-44432High7.52026-05-13urllib3 is an HTTP client library for Python. From 2.6.0 to before 2.7.0, urllib3 could decompress the whole response instead of the requested portion (1) duri…
CVE-2026-44431Medium5.32026-05-13urllib3 is an HTTP client library for Python. From 1.23 to before 2.7.0, cross-origin redirects followed from the low-level API via ProxyManager.connection_fro…
CVE-2026-7210High7.52026-05-11`xml.parsers.expat` and `xml.etree.ElementTree` use insufficient entropy for Expat hash-flooding protection, which allows a crafted XML document to trigger has…
CVE-2026-42311High7.82026-05-09Pillow is a Python imaging library. From version 10.3.0 to before version 12.2.0, processing a malicious PSD file could lead to memory corruption, potentially…
CVE-2026-42310Medium5.52026-05-09Pillow is a Python imaging library. From version 4.2.0 to before version 12.2.0, an attacker can supply a malicious PDF that causes the process to hang indefin…
CVE-2026-42309Medium5.52026-05-09Pillow is a Python imaging library. From version 11.2.1 to before version 12.2.0, passing nested lists as coordinates to APIs that accept coordinates such as I…
CVE-2026-42308Medium5.52026-05-09Pillow is a Python imaging library. Prior to version 12.2.0, if a font advances for each glyph by an exceeding large amount, when Pillow keeps track of the cur…
CVE-2026-3087High7.52026-04-27If `shutil.unpack_archive()` is given a ZIP archive with an absolute Windows path containing a drive (`C:\\...`) then the archive will be extracted outside the…
CVE-2026-6019Medium6.12026-04-22http.cookies.Morsel.js_output() returns an inline <script> snippet and only escapes " for JavaScript string context. It does not neutralize the HTML parser-sen…
CVE-2026-40192High7.52026-04-15Pillow is a Python imaging library. Versions 10.3.0 through 12.1.1 did not limit the amount of GZIP-compressed data read when decoding a FITS image, making the…
CVE-2026-5271High7.82026-04-01pymanager included the current working directory in sys.path meaning modules could be shadowed by modules in the current working directory. As a result, if a u…
CVE-2026-25645Medium4.42026-03-25Requests is a HTTP library. Prior to version 2.33.0, the `requests.utils.extract_zipped_paths()` utility function uses a predictable filename when extracting f…
CVE-2026-4519Low3.32026-03-20The webbrowser.open() API would accept leading dashes in the URL which could be handled as command line options for certain web browsers. New behavior reject…
CVE-2026-4224High7.52026-03-16When an Expat parser with a registered ElementDeclHandler parses an inline document type definition containing a deeply nested content model a C stack overflow…
CVE-2026-3644High7.52026-03-16The fix for CVE-2026-0672, which rejected control characters in http.cookies.Morsel, was incomplete. The Morsel.update(), |= operator, and unpickling paths wer…
CVE-2026-32274High7.52026-03-12Black is the uncompromising Python code formatter. Starting in version 24.3.0 and prior to version 26.3.1, Black writes a cache file, the name of which is comp…
CVE-2025-13462Low3.32026-03-12The "tarfile" module would still apply normalization of AREGTYPE (\x00) blocks to DIRTYPE, even while processing a multi-block member such as GNUTYPE_LONGNAME…
CVE-2026-31900Critical9.82026-03-11Black is the uncompromising Python code formatter. Black provides a GitHub action for formatting code. This action supports an option, use_pyproject: true, for…
CVE-2026-25990High7.52026-02-11Pillow is a Python imaging library. From 10.3.0 to before 12.1.1, an out-of-bounds write may be triggered when loading a specially crafted PSD image. This vuln…
CVE-2026-0994High7.52026-01-23A denial-of-service (DoS) vulnerability exists in google.protobuf.json_format.ParseDict() in Python, where the max_recursion_depth limit can be bypassed when p…
CVE-2025-12781Medium5.32026-01-21When passing data to the b64decode(), standard_b64decode(), and urlsafe_b64decode() functions in the "base64" module the characters "+/" will always be accepte…
CVE-2026-21441High7.52026-01-07urllib3 is an HTTP client library for Python. urllib3's streaming API is designed for the efficient handling of large HTTP responses by reading the content in…
CVE-2025-66471High7.52025-12-05urllib3 is a user-friendly HTTP client library for Python. Starting in version 1.0 and prior to 2.6.0, the Streaming API improperly handles highly compressed d…
CVE-2025-66418High7.52025-12-05urllib3 is a user-friendly HTTP client library for Python. Starting in version 1.24 and prior to 2.6.0, the number of links in the decompression chain was unbo…
CVE-2025-12084Medium5.32025-12-03When building nested elements using xml.dom.minidom methods such as appendChild() that have a dependency on _clear_id_cache() the algorithm is quadratic. Avail…
CVE-2025-13837Medium5.52025-12-01When loading a plist file, the plistlib module reads data in size specified by the file itself, meaning a malicious file can cause OOM and DoS issues
CVE-2025-13836High7.52025-12-01When reading an HTTP response from a server, if no read amount is specified, the default behavior will be to use Content-Length. This allows a malicious server…
CVE-2025-6075Medium5.52025-10-31If the value passed to os.path.expandvars() is user-controlled a performance degradation is possible when expanding environment variables.
CVE-2025-48379High7.12025-07-01Pillow is a Python imaging library. In versions 11.2.0 to before 11.3.0, there is a heap buffer overflow when writing a sufficiently large (>64k encoded with d…
CVE-2025-50182Medium5.32025-06-19urllib3 is a user-friendly HTTP client library for Python. Starting in version 2.2.0 and prior to 2.5.0, urllib3 does not control redirects in browsers and Nod…
CVE-2025-50181Medium5.32025-06-19urllib3 is a user-friendly HTTP client library for Python. Prior to 2.5.0, it is possible to disable redirects for all requests by instantiating a PoolManager…
CVE-2025-47273High8.82025-05-17setuptools is a package that allows users to download, build, install, upgrade, and uninstall Python packages. A path traversal vulnerability in `PackageIndex`…
CVE-2024-9287High7.82024-10-22A vulnerability has been found in the CPython `venv` module and CLI where path names provided when creating a virtual environment were not quoted properly, all…
CVE-2024-6232High7.52024-09-03There is a MEDIUM severity vulnerability affecting CPython. Regular expressions that allowed excessive backtracking during tarfile.TarFile header parsing…
CVE-2024-7592High7.52024-08-19There is a LOW severity vulnerability affecting CPython, specifically the 'http.cookies' standard library module. When parsing cookies that contained backsla…
CVE-2024-37891Medium4.42024-06-17 urllib3 is a user-friendly HTTP client library for Python. When using urllib3's proxy support with `ProxyManager`, the `Proxy-Authorization` header is only se…
CVE-2024-28219Medium6.72024-04-03In _imagingcms.c in Pillow before 10.3.0, a buffer overflow exists because strcpy is used instead of strncpy.
CVE-2023-50447High8.12024-01-19Pillow through 10.1.0 allows PIL.ImageMath.eval Arbitrary Code Execution via the environment parameter, a different vulnerability than CVE-2022-22817 (which wa…
CVE-2023-6507Medium6.12023-12-08An issue was found in CPython 3.12.0 `subprocess` module on POSIX platforms. The issue was fixed in CPython 3.12.1 and does not affect other stable releases. …
CVE-2023-44271High7.52023-11-03An issue was discovered in Pillow before 10.0.0. It is a Denial of Service that uncontrollably allocates memory to process a given task, potentially causing a…
CVE-2023-45803Medium4.22023-10-17urllib3 is a user-friendly HTTP client library for Python. urllib3 previously wouldn't remove the HTTP request body when an HTTP redirect response using status…
CVE-2018-25091Medium6.12023-10-15urllib3 before 1.24.2 does not remove the authorization HTTP header when following a cross-origin redirect (i.e., a redirect that differs in host, port, or sch…
CVE-2023-43804Medium5.92023-10-04urllib3 is a user-friendly HTTP client library for Python. urllib3 doesn't treat the `Cookie` HTTP header special or provide any helpers for managing cookies o…
CVE-2023-40217Medium5.32023-08-25An issue was discovered in Python before 3.8.18, 3.9.x before 3.9.18, 3.10.x before 3.10.13, and 3.11.x before 3.11.5. It primarily affects servers (such as HT…
CVE-2023-41105High7.52023-08-23An issue was discovered in Python 3.11 through 3.11.4. If a path containing '\0' bytes is passed to os.path.normpath(), the path will be truncated unexpectedly…
CVE-2022-48566Medium5.92023-08-22An issue was discovered in compare_digest in Lib/hmac.py in Python through 3.9.1. Constant-time-defeating optimisations were possible in the accumulator variab…
CVE-2022-48565Critical9.82023-08-22An XML External Entity (XXE) issue was discovered in Python through 3.9.1. The plistlib module no longer accepts entity declarations in XML plist files to avoi…
CVE-2022-48564Medium6.52023-08-22read_ints in plistlib.py in Python through 3.9.1 is vulnerable to a potential DoS attack via CPU and RAM exhaustion when processing malformed Apple Property Li…
CVE-2022-48560High7.52023-08-22A use-after-free exists in Python through 3.9 via heappushpop in heapq.
CVE-2023-38898Medium5.32023-08-15An issue in Python cpython v.3.7 allows an attacker to obtain sensitive information via the _asyncio._swap_current_task component. NOTE: this is disputed by th…
CVE-2023-36632High7.52023-06-25The legacy email.utils.parseaddr function in Python through 3.11.4 allows attackers to trigger "RecursionError: maximum recursion depth exceeded while calling…
CVE-2023-33595Medium5.52023-06-07CPython v3.12.0 alpha 7 was discovered to contain a heap use-after-free via the function ascii_decode at /Objects/unicodeobject.c.
CVE-2023-32681Medium6.12023-05-26Requests is a HTTP library. Since Requests 2.3.0, Requests has been leaking Proxy-Authorization headers to destination servers when redirected to an HTTPS endp…
CVE-2023-27043Medium5.32023-04-19The email module of Python through 3.11.3 incorrectly parses e-mail addresses that contain a special character. The wrong portion of an RFC2822 header is ident…
CVE-2023-24329High7.52023-02-17An issue in the urllib.parse component of Python before 3.11.4 allows attackers to bypass blocklisting methods by supplying a URL that starts with blank charac…
CVE-2022-40897Medium5.92022-12-23Python Packaging Authority (PyPA) setuptools before 65.5.1 allows remote attackers to cause a denial of service via HTML in a crafted package or custom Package…
CVE-2022-45199High7.52022-11-14Pillow before 9.3.0 allows denial of service via SAMPLESPERPIXEL.
CVE-2022-45198High7.52022-11-14Pillow before 9.2.0 performs Improper Handling of Highly Compressed GIF Data (Data Amplification).
CVE-2022-45061High7.52022-11-09An issue was discovered in Python before 3.11.1. An unnecessary quadratic algorithm exists in one path when processing some inputs to the IDNA (RFC 3490) decod…
CVE-2022-42919High7.82022-11-07Python 3.9.x before 3.9.16 and 3.10.x before 3.10.9 on Linux allows local privilege escalation in a non-default configuration. The Python multiprocessing libra…
CVE-2022-37454Critical9.82022-10-21The Keccak XKCP SHA-3 reference implementation before fdc6fef has an integer overflow and resultant buffer overflow that allows attackers to execute arbitrary…
CVE-2020-10735High7.52022-09-09A flaw was found in python. In algorithms with quadratic time complexity using non-binary bases, when using int("text"), a system could take 50ms to parse an i…
CVE-2021-4189Medium5.32022-08-24A flaw was found in Python, specifically in the FTP (File Transfer Protocol) client library in PASV (passive) mode. The issue is how the FTP client trusts the…
CVE-2021-28861High7.42022-08-23Python 3.x through 3.10 has an open redirection vulnerability in lib/http/server.py due to no protection against multiple (/) at the beginning of URI path whic…
CVE-2017-20052Medium5.02022-06-16A vulnerability classified as problematic was found in Python 2.7.13. This vulnerability affects unknown code of the component pgAdmin4. The manipulation leads…
CVE-2022-30595Critical9.82022-05-25libImaging/TgaRleDecode.c in Pillow 9.1.0 has a heap buffer overflow in the processing of invalid TGA image files.
CVE-2022-28470Critical9.82022-05-08marcador package in PyPI 0.1 through 0.13 included a code-execution backdoor.
CVE-2022-24902Low2.92022-05-06TkVideoplayer is a simple library to play video files in tkinter. Uncontrolled memory consumption in versions of TKVideoplayer prior to 2.0.0 can theoretically…
CVE-2015-20107High7.62022-04-13In Python (aka CPython) up to 3.10.8, the mailcap module does not add escape characters into commands discovered in the system mailcap file. This may allow att…
CVE-2022-24303Critical9.12022-03-28Pillow before 9.0.1 allows attackers to delete files because spaces in temporary pathnames are mishandled.
CVE-2018-25032High7.52022-03-25zlib before 1.2.12 allows memory corruption when deflating (i.e., when compressing) if the input has many distant matches.
CVE-2022-26488High7.02022-03-10In Python before 3.10.3 on Windows, local users can gain privileges because the search path is inadequately secured. The installer may allow a local attacker t…
CVE-2021-3733Medium6.52022-03-10There's a flaw in urllib's AbstractBasicAuthHandler class. An attacker who controls a malicious HTTP server that an HTTP client (such as web browser) connects…
CVE-2021-3737High7.52022-03-04A flaw was found in python. An improperly handled HTTP response in the HTTP client code of python may allow a remote attacker, who controls the HTTP server, to…
CVE-2022-0391High7.52022-02-09A flaw was found in Python, specifically within the urllib.parse module. This module helps break Uniform Resource Locator (URL) strings into components. The is…
CVE-2022-22817Critical9.82022-01-10PIL.ImageMath.eval in Pillow before 9.0.0 allows evaluation of arbitrary expressions, such as ones that use the Python exec method. A lambda expression could a…
CVE-2022-22816Medium6.52022-01-10path_getbbox in path.c in Pillow before 9.0.0 has a buffer over-read during initialization of ImagePath.Path.
CVE-2022-22815Medium6.52022-01-10path_getbbox in path.c in Pillow before 9.0.0 improperly initializes ImagePath.Path.
CVE-2021-42576Critical9.82021-10-18The bluemonday sanitizer before 1.0.16 for Go, and before 0.0.8 for Python (in pybluemonday), does not properly enforce policies associated with the SELECT, ST…
CVE-2021-23437High7.52021-09-03The package pillow 5.2.0 and before 8.3.2 are vulnerable to Regular Expression Denial of Service (ReDoS) via the getrgb function.
CVE-2021-34552Critical9.82021-07-13Pillow through 8.2.0 and PIL (aka Python Imaging Library) through 1.1.7 allow an attacker to pass controlled parameters directly into a convert function to tri…
CVE-2021-33503High7.52021-06-29An issue was discovered in urllib3 before 1.26.5. When provided with a URL containing many @ characters in the authority component, the authority regular expre…
CVE-2021-28678Medium5.52021-06-02An issue was discovered in Pillow before 8.2.0. For BLP data, BlpImagePlugin did not properly check that reads (after jumping to file offsets) returned data. T…
CVE-2021-28677High7.52021-06-02An issue was discovered in Pillow before 8.2.0. For EPS data, the readline implementation used in EPSImageFile has to deal with any combination of \r and \n as…