Pingora versions prior to 0.8.1 have a vulnerability in their HTTP/2 server implementation where default limits on header-list size and concurrent streams are not set. This allows a remote unauthenticated attacker to exhaust server memory by sending many small HPACK header references across unlimited streams, potentially causing process termination. The issue was fixed in version 0.8.1 by enforcing a 64 KiB header-list size limit and a maximum of 100 concurrent streams per connection. Users should upgrade to Pingora 0.8.1 or later to mitigate this risk.
Pingora versions prior to 0.9.0 have a vulnerability where HTTP/2 requests with differing :authority and Host headers can cause cache poisoning and host-based access control bypass. This occurs because the application uses the :authority header for request filtering and caching, while the upstream uses the client-supplied Host header, violating RFC 9113 requirements. The issue was fixed in version 0.9.0 by rejecting requests with mismatched or malformed headers.
Libp2p gossipsub has a vulnerability where PRUNE control messages cause unbounded backoff state for unknown topics. The node records backoff entries for topics it has never joined, which can accumulate and consume memory for up to an hour, even after peers disconnect. This can be exploited by sending many PRUNE messages with new topic IDs. A fix is available in version 0.50.1.
SurrealDB versions prior to 3.3.0 contain a use-after-free vulnerability in the KV backends due to leaked futures from affinitypool::spawn_local. This flaw arises when non-'static borrowed state is moved into affinity-pool closures and the returned future is leaked, allowing pool workers to access freed memory. The issue affects multiple methods including count, scan, compact, and cursor iteration. Version 3.3.0 upgrades affinitypool to 0.8.0, making spawn_local unsafe and requiring callers to ensure no leaks occur, thereby fixing the vulnerability.
A vulnerability in pulldown-cmark versions 0.13.0 through 0.13.4 causes exponential event growth when parsing Markdown with the ENABLE_WIKILINKS option enabled. Specifically, wikilinks with a pipe separator and empty display text leak child node sibling chains, causing the parser to generate exponentially more events, which can exhaust memory. This flaw is fixed in version 0.13.5.
The vulnerability in ZipStreamReader allows ZIP archives to have differing file names between the local file headers and the central directory. This discrepancy can cause applications that check archive contents using ZipArchive but extract using ZipStreamReader to write or overwrite files under unexpected names, potentially leading to unauthorized file modifications. A fix is available in version 9.0.5 that introduces an opt-in consistency check between local headers and central directory entries, but this check is disabled by default, requiring applications to enable it explicitly when extracting untrusted archives.
lopdf versions prior to 0.42.0 contain a stack overflow vulnerability in the PDF parser due to unbounded recursion when processing deeply nested PDF arrays or dictionaries. A crafted PDF with around 10,000 levels of nested arrays in the Catalog can cause the parser to exhaust the call stack and abort the process with SIGABRT, resulting in a denial of service. This vulnerability does not cause a panic that can be caught, making it effective for crashing services that parse untrusted PDFs. The issue is fixed in lopdf version 0.42.0 by enforcing a maximum object-nesting depth.
The zstd-sys crate on wasm32 platforms had a memory corruption vulnerability due to its WebAssembly allocator shim not properly handling allocation failures. Instead of returning NULL on allocation failure, it wrote to address 0 and returned address 4, causing the C library to treat an invalid buffer as valid. This allowed decompression to overwrite the bottom of the module's linear memory within the wasm sandbox. The issue was fixed by returning NULL on allocation failure or size overflow and making free(NULL) a no-op.
A use-after-free vulnerability exists in the zstd-safe library when changing a multithreaded compression context with an unfinished frame. This occurs because jobs may still be running on worker threads while the context is reset or modified, leading to potential use of freed memory. The issue is fixed in version 8.2.0 by refusing changes while a multithreaded frame is unfinished and adding a wait mechanism for worker threads.
A vulnerability in zstd-safe versions from 7.2.2 up to but not including 8.2.0 allows an out-of-bounds read due to unchecked position values in the InBuffer struct. The flaw occurs because the position field can be set beyond the end of the input slice, and the ZSTD_seekable_compressStream function does not validate this position before passing it to the underlying C library, resulting in reading memory past the input buffer. This issue was fixed in version 8.2.0 by adding position checks before calls into the C library.
A double free vulnerability exists in the zstd-safe library's deprecated experimental feature DCtx::try_clone. This function performs a plain copy of the compression context, which can lead to both copies freeing the same dictionary resource, causing memory corruption. Additionally, cloned contexts may resume with uninitialized stream state and lose certain parameter limits. The issue was fixed in version 8.2.0 by preventing cloning of such contexts and preserving necessary parameters during copying.
A vulnerability in the zstd-safe Rust crate affects streaming decompression of legacy zstd frames (versions 0.4 to 0.7). When decompression fails, the output buffer is incorrectly reported as fully written, causing the vector length to extend over uninitialized memory. This can lead to up to 32 KiB of stale heap memory being exposed to the application on subsequent writes or flushes. The issue affects the streaming write decoder but not the streaming read decoder, bulk API, or decode_all functions. The flaw was fixed by only committing buffer positions on successful decompression calls.
A heap buffer overflow vulnerability exists in the zstd-safe crate's `CCtx::try_clone` function when used with multithreaded contexts. This occurs because the function copies tables sized from the context's parameters, which are replaced by worker parameters in multithreaded mode without resizing the original tables, leading to out-of-bounds reads or writes. The issue affects versions from 4.1.4 up to but not including 8.2.0 and was fixed in version 8.2.0 by disabling `try_clone` and the unsafe `compress_block` when multithreading is enabled.
An out-of-bounds read vulnerability exists in the zstd-safe library's `train_from_buffer` function due to integer overflow in summing sample sizes. This flaw allows reading past the end of a buffer when sample sizes come from an untrusted source. The issue affects versions prior to 8.2.0 and has been fixed in version 8.2.0.
A use-after-free vulnerability exists in zstd-safe versions from 3.0.1 up to but not including 8.2.0. This occurs when one-shot decompression or compression calls on a context with an open stream leave the context pointing to a freed dictionary or buffers, leading to decompressed output containing freed heap memory or resumed streams using invalid buffers. The issue arises if an application uses the same context for both streaming and one-shot calls without resetting the context in between. The flaw was fixed in version 8.2.0 by resetting the session after one-shot calls when a stream may be open.
A use-after-free vulnerability exists in the zstd-safe Rust crate versions from 3.0.0 up to but not including 8.2.0. The issue arises in the deprecated experimental features `CCtx::init_using_cdict` and `DCtx::init_using_ddict`, where the dictionary references could be dropped while the context still pointed to them. This flaw was corrected in version 8.2.0 by changing the lifetime annotations to ensure the dictionary outlives the context.
A vulnerability in the zstd-safe crate's Seekable::decompress function allows setting a Vec length beyond its capacity when decompressing with offsets past the end of the data. This can lead to reading adjacent heap memory or memory corruption when appending to the Vec. The issue is fixed in version 8.2.0 by clamping requests and validating counts against buffer capacity.
The zstd-safe crate contained a vulnerability in the OutBuffer::around_pos function where it accepted a position beyond the initialized length of a Vec<u8>. This caused safe Rust code to potentially read uninitialized or stale heap memory between the previous length and the new position. The issue was fixed by zero-filling the memory gap to prevent exposure of uninitialized data.
The zstd-safe library's Seekable component did not properly track its initialization state, leading to potential NULL or out-of-bounds reads of the seek table. This could cause decompression functions to read invalid memory or return incorrect data after failed initialization attempts. The issue was fixed by enforcing successful initialization before use and adding bounds checks on frame indices.
A use-after-free vulnerability exists in the zstd-safe library when using the experimental feature CParameter::StableInBuffer(true). The library retains a pointer to the input buffer across streaming calls, but the input buffer is only guaranteed valid for a single call. This can lead to reading freed memory during later calls such as flush_stream and end_stream. The issue affects versions from 4.1.0 up to but not including 8.2.0 and was fixed by disabling the problematic parameter in version 8.2.0.