The Apache Thrift Rust crate versions prior to 0.23.0 contain a vulnerability in the TBinaryInputProtocol's read_bytes function, where an attacker-controlled 4-byte length value is used directly to allocate a buffer without bounds checking. This can lead to excessive memory allocation or immediate process abort, causing a denial of service. The issue affects any peer sending binary protocol data and is unauthenticated and network-reachable. The vulnerability is fixed in version 0.23.0 by adding checks against negative sizes and enforcing a maximum string size limit.
The evtx crate versions from 0.11.0 up to but not including 0.15.1 contain a vulnerability in the .wevtcache file parser where an unbounded memory allocation occurs. This happens because the code reads a 64-bit length field from the file and allocates a buffer of that size without verifying it fits within the actual file size, allowing a crafted file to cause a multi-gigabyte allocation and crash the process due to out-of-memory conditions. The issue is fixed in version 0.15.1.
A path traversal vulnerability in the kitty graphics protocol handler of rio-vt allows an attacker to delete and read files outside the intended temporary directory. The flaw arises because the handler only checks if the file path contains a specific substring without rejecting directory traversal sequences, enabling escape from the temp directory. This affects any application using rio-vt that renders untrusted output. The vulnerability is fixed in rio-vt version 0.5.29.
`ant-releases` crate versions from 0.0.0-0 onwards contain a path traversal vulnerability in the archive extraction function. The vulnerability allows crafted ZIP archives with entries containing relative paths (e.g., '../') to write files outside the intended destination directory, potentially overwriting arbitrary files on the host system.
`codeq` is a Rust serialization library with a vulnerability in its `Decode` trait implementations for `String` and `Vec<u8>`. The decoding process reads a 4-byte big-endian length prefix from input and allocates memory of that size before reading the actual payload. Because there is no upper bound or validation on this length, an attacker can supply a small input that causes the library to allocate up to approximately 4 GiB of memory, leading to uncontrolled resource consumption and potential denial of service via out-of-memory conditions. This issue affects all versions prior to 0.6.3. The vulnerability is fixed in version 0.6.3, where the decode buffers grow dynamically as payload bytes arrive instead of pre-allocating the full length.
The russh SSH agent server does not call the Agent::confirm method before signing with keys added with the confirm constraint (ssh-add -c). This confirm constraint is intended to require user approval before signing. The issue was introduced in version 0.50.0-beta.12 and affects all versions up to and including 0.64.1. As a result, keys added with the confirm constraint are signed without user confirmation, allowing any process with access to the agent to use those keys without approval. This undermines the security purpose of the confirm constraint defined in RFC 9987.
The pageant crate's PageantStream component improperly handles a 4-byte length prefix from its input stream without validating the claimed frame size. This allows a malicious peer to claim an oversized frame (up to ~4 GiB) and cause unbounded memory buffering, leading to a remote memory-exhaustion denial-of-service (DoS) on the client process. The vulnerability affects versions from 0.2.0 up to but not including 0.2.5. A fix is available in version 0.2.5 that rejects frames exceeding the transport's maximum size before buffering.
A vulnerability in russh versions 0.60.0 up to but not including 0.65 allows a peer to advertise a maximum packet size of zero in channel-open messages. This causes the AsyncWrite path to stall indefinitely because the write operation never completes or errors, leading to a silent hang of the application task. The issue arises from lack of validation of the peer-declared maximum packet size and inconsistent handling in the AsyncWrite code path. This can be exploited by an authenticated client against a server or by a malicious server against a client to cause a denial of service by hanging write operations.
The russh SSH agent server (version prior to 0.65.0) has a vulnerability where it unboundedly allocates memory when processing SSH_AGENT_CONSTRAIN_CONFIRM (0x02) records during key addition requests. Each 1-byte confirm record causes a 56-byte allocation retained for the process lifetime, with no limit on the number of such records per key or the number of keys stored. This can lead to persistent memory growth controlled by any local process able to connect to the agent socket. The issue was fixed in version 0.65.0.
The russh SSH client versions prior to 0.65 have a vulnerability in their handling of EXT_INFO packets during the pre-authentication phase. The client accumulates extension names from these packets into a vector without any limit or deduplication, allowing a malicious server to cause unbounded memory growth by sending many such packets. This can lead to denial of service via resource exhaustion. The issue is fixed in version 0.65.
SQLite versions before 3.54.0 have a vulnerability where opening a database file alongside a write-ahead-log (-wal) file with a differing page size can cause uninitialized page-cache memory to be returned. This can lead to queries returning stale memory bytes. The sqlcipher-src crate versions from 419.0.3 up to but not including 420.0.0, which bundle SQLCipher 4.19.0 on SQLite 3.53.4, are affected. The issue is fixed in sqlcipher-src 420.0.0. Exploitation requires local access and the victim process to open crafted files potentially controlled by a less trusted party.
The `ocipkg` tool has a path traversal vulnerability when unpacking OCI archives. The destination directory for unpacking is derived from an attacker-controlled image name read from the archive's own index.json. This allows escaping the intended local image store directory, enabling deletion and writing of files outside the store. The flaw is fixed in version 0.4.1 by validating and sanitizing the image name to prevent path traversal.
The Orion library's BLAKE2b implementation has a flaw in the reset() function when used with a key of different length than the original initialization key. This causes the computed BLAKE2b tag to be incorrect, leading to verification failures during normal protocol operations. The issue is fixed in versions 0.17.16 and 0.18.1.
LLVM's compilation of the internal function conditional_sub_u32() in the Orion cryptographic library introduces timing-vulnerable conditional jumps on certain CPU targets lacking conditional move/select instructions. This affects ML-KEM and ML-DSA cryptographic operations, potentially leaking secret-dependent information. The issue impacts specific Linux targets including i586, s390x, and x86_64 architectures. The vulnerability could enable recovery of cryptographic keys depending on the compiler, CPU, and attacker proximity. Fixed versions 0.17.16 and 0.18.1 address this by rewriting conditional_sub_u32() to consider conditional move/jump availability.
The `nix-nar` crate's `Decoder::unpack` function improperly handles path containment when extracting archive entries, allowing a malicious NAR archive to write files outside the intended destination directory via path traversal. This occurs because symlink targets are not validated and the containment check only compares path strings without considering symlinks created earlier during unpacking. An attacker can craft an archive that creates symlinks pointing outside the destination and then writes files through these symlinks, potentially enabling code execution by placing files in attacker-controlled locations.
A denial of service vulnerability exists in the zip crate versions 5.1.0 up to but not including 9.0.0 when the legacy-zip feature is enabled. An attacker can craft a malicious ZIP64 archive with an uncompressed size set to an extremely large value, causing a capacity overflow panic in the Shrink decoder during extraction. This panic terminates the affected process, leading to denial of service. The issue arises because the decoder reserves output buffer capacity based on the uncompressed size from ZIP metadata before validating the compressed data size. This vulnerability is fixed in version 9.0.0.
A vulnerability in the zip crate (versions 7.2.0 up to but not including 9.0.0) allows an attacker to write arbitrary files outside the intended extraction directory by exploiting symlink validation flaws. The issue arises because the path validation is purely lexical and absolute symlink targets are not properly rejected, enabling directory traversal outside the extraction target. This is especially impactful on Windows, where a single symlink can redirect extraction to a different drive or remote share. The vulnerability requires the attacker to know or guess the absolute extraction path. The issue was introduced by a change in path handling in version 7.2.0 and fixed in version 9.0.0.
A vulnerability in the zip crate's AES-encrypted entry handling allows an attacker to bypass HMAC authentication if the entry's declared compressed size exceeds the actual data length, causing premature EOF. This results in truncated, unauthenticated plaintext being accepted without error. Zero-payload entries also bypass authentication. The flaw affects versions from 0.6.0 up to but not including 9.0.0 and is fixed in version 9.0.0.