1577 matches found
`cap-async-std` has been discontinued
cap-async-std has been discontinued, as it is based on async-std which was previously discontinued...
`HandshakeState` error rollback does not restore the `CipherState`, leading to unauthenticated DoS and potential encrypted public key leak
In snow there is a rollback mechanism during the handshake phase to handle recovery from bad inputs, but it didn't cover the cipher key state, leading to a Denial of Service attack with tampered but unauthenticated input. If the protocol had logic to re-attempt the encryption phase with known or...
Scalar Multiplication Arithmetic Bug in AVX-512 Backend
Summary Any user using the AVX-512 backend of curve25519-dalek could have produced incorrect outputs on computations involving a scalar multiplication on an attacker-chosen Edwards or Ristretto point. This affects all versions of curve25519-dalek in the range 1.1.0–5.0.0, inclusive. No other...
Timing side channel in RSA decryption: time depends on the leading zero bytes of the decrypted value
After the RSA private-key operation, decryption converted the result to bytes by skipping its leading zero bytes and copying the rest into a buffer of the modulus size. The number of bytes copied, and the offset they were copied to, depended on how many leading zero bytes the decrypted value had...
Panic in RSASSA-PSS verification with automatic salt length on small public keys
RSASSA-PSS signature verification can panic when the salt length is detected from the signature and the public key is too small for the hash function. This affects verification through pss::VerifyingKey::newwithautosaltlen, and through RsaPublicKey::verify with a Pss whose saltlen is None...
Improper quoting of command arguments in hints enables command injection
sq emits hints, which can include a suggested command that the user can run. Some hints are derived from the input and thus can partially be influenced by an attacker. Because the quoting was not careful enough, it was possible to craft a user ID that would be used in the command and when the hin...
RSA public keys with exponent 1 are accepted on the Nettle and OpenSSL backends
These are now detected and rejected...
Unescaped control characters in user IDs enable terminal output spoofing
We were not always careful to ensure that control characters in e.g. user IDs, were escaped. For instance, sq verify did not correctly sanitize the signer's user ID. An attacker could use this to embed ANSI cursor movement sequences in a user ID to overwrite a verification warning with fake "Full...
ASCII armor parsing buffers a line without a length limit
The ASCII-armor reader did not limit the length of a line, parsing an armored message with a very long line could exhaust memory in the process. Memory use follows the input size, with a small constant factor, and is not a classic amplification. A 4096 byte line length of ASCII-armor input is now...
Following symbolic links when writing to a WKD enables arbitrary file truncation
When inserting a certificate into a WKD or creating the policy file, we open and write to the file. If the file happened to be a symbolic link, then we would open the target of the symbolic link and overwrite that. This has been fixed by not following a symbolic link. Most users will not be...
Ed25519 identity and other low-order public keys are accepted for signature verification
These are now detected and rejected...
Argon2 string-to-key parameters are not limited by StandardPolicy
An attacker can trigger a denial of service using Argon2. This is fixed in sequoia-openpgp, but requires users to switch to use SKESK::decryptwithpolicyinstead of SKESK::decrypt...
Degenerate DSA keys are accepted on the Nettle and OpenSSL backends
DSA signature verification did not reject a public key with generator 1 and public value 1 before calling the cryptographic backend. The Nettle and OpenSSL backends, including the default Nettle build, accepted this key. Under that key, a signature can verify for every message. Ordinary DSA keys...
Following symbolic links when updating certificates enables arbitrary file modification
When updating a certificate, we open and write to the certificate's file. If the file happened to be a symbolic link, then we open the target of the symbolic link and write to that. Most users will not be affected by this as certificate directories are not shared between users. This issue has bee...
Tolerant ASCII armor parsing can select a different block than a strict parser
The ASCII armor parser has a new mode, ReaderMode::Strict, which only considers compliant ASCII-armor blocks. This should be used when it is essential that a message be understood in the same way by different implementations. For instance, an attacker could leverage the current tolerant mode to...
Argon2 string-to-key parameters are not limited by StandardPolicy
An attacker can trigger a denial of service using Argon2. Protect against this by extending the Policy trait to check S2K objects. Change the StandardPolicy to reject unreasonable Argon parameter sets by default...
Following symbolic links when reading certificates enables information disclosure
When reading a certificate, we open and read the certificate's file. If the file happened to be a symbolic link, then we open the target of the symbolic link and read that. Most users will not be affected by this as certificate directories are not shared between users. This issue has been fixed b...
Following a symbolic-linked write lock file enables arbitrary file truncation
When getting the write lock, we open and truncate the write lock file. If the write lock file happened to be a symbolic link, then we open the target of the symbolic link and truncate that. Most users will not be affected by this as certificate directories are not shared between users. This issue...
Unbounded download buffering enables denial of service via malicious HKP or WKD server
A malicious HKP or WKD server could return a very large response that when buffered by sequoia-net triggers an out-of-memory error. By default, the client now aborts the download after fetching more than 8 MB of data. This limit can be customized...
User IDs and notation data are displayed without escaping control characters
Users of the library often display attacker-controlled user IDs and notation data. If these contain control characters, this can cause problems. For instance, if a user ID contains an embedded NUL character, libraries that use C strings may display a truncated version. If the data is displayed in...
FROST coordinator accepts unvalidated DKG polynomial commitments
The FROST coordinator statemachine::coordinator::frost::Coordinator did not validate the DKG public shares it received. It stored each polynomial commitment at receipt without checking it, and computed the aggregate public key from its own copy without checking it either. A signer that is a membe...
`openssl-tls` trusts OpenSSL's default CA store in addition to the configured cluster CA
With the openssl-tls connector, configuring a cluster CA certificate-authority, certificate-authority-data, or the in-cluster ca.crt did not limit which server certificates were trusted. The connector started from OpenSSL's default verify paths and added the configured roots to that store, so a...
Private cookie nonces can repeat in processes that fork
Who is affected Only applications that call fork and then add private encrypted cookies on the thread that forked, in more than one of the resulting processes. This is an uncommon way to deploy a Rust web application. In particular: Rocket is not affected. axum is not affected as normally run. It...
Out-of-bounds read when iterating over IPv6 extension headers of laxly parsed packets
Iterating over malformed or truncated IPv6 extension headers can cause out-of-bounds reads when the packet was parsed using one of the lax parsing functions e.g. via Ipv6ExtensionsSlice::fromslicelax or LaxSlicedPacket. Lax parsing stops at the first invalid or truncated extension header and...
Apache Arrow Rust: Bloom filters written as plaintext when writing encrypted Parquet
When writing an encrypted parquet file with a column with bloom filters, the header and bitsets of the bloom filter are written in plaintext in the final parquet. Patched versions now reject writing bloom filters when encryption is enabled, raising an error at runtime. Existing encrypted parquet...
Dilithium verification accepts non-conforming signatures with the `avx2` feature
With the default avx2 feature on x8664 and a CPU that supports AVX2, pqcrypto-dilithium verifies signatures with PQClean's AVX2 implementation of Dilithium. That implementation predates two upstream fixes pq-crystals/dilithium113, 3 June 2026, the same ones described in RUSTSEC-2026-0586 for...
ML-KEM does not perform the FIPS 203 input checks
pqcrypto-mlkem wraps PQClean's ML-KEM implementation, which does not perform the input checks required by FIPS 203: - encapsulation does not perform the encapsulation key modulus check section 7.2, so encapsulation keys with coefficients that are not reduced modulo q are accepted; - decapsulation...
ML-DSA verification accepts non-conforming signatures with the `avx2` feature
With the default avx2 feature on x8664 non-Windows and a CPU that supports AVX2, pqcrypto-mldsa verifies signatures with PQClean's AVX2 implementation of ML-DSA. That implementation predates two upstream fixes pq-crystals/dilithium113, 3 June 2026: - the verifier does not check that the infinity...
Stack overflow in `Url::origin()` on nested `blob:` URLs
In url 2.5.8 and earlier, Url::origin handled a blob: URL by parsing its path as another URL and calling itself on the result. It did so regardless of the inner URL's scheme, blob included. Each blob: prefix cost one stack frame, with no limit on nesting depth. Url::parse accepts a URL with 10,00...
Panics during RSA private-key construction, validation, or re-encoding
RsaPrivateKey private-key construction, validation, and serialization can panic across three classes of inputs, as well as when re-encoding certain valid keys: - RsaPrivateKey::fromcomponents and PKCS1 or PKCS8 private-key decoding DER or PEM can panic during validation when a supplied factor...
Validating Matrix key IDs may panic
Using keyid::validate may panic if the algorithm part of the key ID is longer than 255 bytes and contains non-ASCII characters. The affected versions assumed that the length of the first part containing the encryption or signing algorithm the part before the colon would fit into a NonZeroU8, but...
gRPC `IpKeyExtractor` keys on client-supplied forwarding headers
tonicmiddleware::IpKeyExtractor is documented as rate limiting gRPC requests by client IP address, but on a standard tonic server it keys on client-supplied x-forwarded-for and x-real-ip headers. In 0.5.0–0.9.1, the extractor reads those headers directly; in 0.10.0–0.11.0, it first checks for a...
Validating Matrix Content URIs may panic
Using mxcuri::validate may panic if the server name part of the URI is larger than 249 bytes. The affected versions assumed that the length of the first part of the URI mxc://servername would fit into a NonZeroU8, but the length of the server name wasn't validated and the Matrix specification...
WASI filesystem sandbox escape on Windows through a drive-prefixed path component
This is an entry in the RustSec database for the Wasmtime security advisory located at https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-f2pq-268w-886c For more information see the GitHub-hosted security advisory...
`SortedLinkedList::zeroize` lead to an inconsistent state
The Zeroize implementation of SortedLinkedList did not properly re-initialize the linked list, leading to broken invariants and memorry corruption. Reported by Jacob Finkelman...
`FindMutView::pop` after mutating the value would lead to a use after free
Reported by Jacob Finkelman...
`Spsc::peek` used `Relaxed` ordering where it should have use `Acquire`
This could lead to UB through a race condition. Reported by Jacob Finkelman...
The treiber stack implementation in heapless had a race condition
In the affected versions, it was possible for two threads or execution contexts running concurrently to race, causing one to read out of a pointer that had been invalidated by another execution context. Reported by Jacob Finkelman...
On maps of `u16::MAX` elements, `IndexMap::insert` could lead to a broken invariant
Note that this required filling up the map and having the last item inserted to hash to u16::MAX. It is therefore very unlikely to be reachable in a real-world scenario. Reported by 8rsrf7...
`Deque::make_contiguous` could lead to broken invariants
In some branches, Deque::makecontiguous set the back value to either 0 or N when it shouldn't, leading to broken invariants and out-of-bounds writes. Reported by DRMacIver and https://github.com/MJUCOM...
`IndexMap::truncate` could lead to an inconsistent state
IndexMap::truncate was not rebuilding indices when it should, leading to an inconsistent state and memory corruption. Reported by Jacob Finkelman...
The `Deque` implementation from `TryFrom` was wrong when the `Deque` ended up full
If the array passed to Deque::tryfrom was as long as the capacity of the Deque, it would lead to a invalid state...
Panicking `Drop` implementation could lead to UB
Multiple functions dropped generic parameters but didn't properly handle the unwinding case, leading to broken invariants. Reported by tooson9010-spec and Evian-Zhang...
Unbounded buffering of an SMTP reply allows a malicious server to exhaust memory
A malicious or compromised server can send a reply line that never ends, which the client buffers until memory runs out. A reply made of many short lines also keeps a CPU core busy: for a few seconds per reply since 0.11.22, for as long as the server wants before it. Applications that connect onl...
Messages for an address with a quoted local part are sent to a different address
A message whose sender or recipient has a quoted local part is sent with a different address in its envelope than the one the application was given: "d "@example.com becomes [email protected]. Someone who can choose such an address can have a message delivered to another mailbox than the one the...
Missing dot-stuffing after a bare LF or CR allows SMTP command injection
Someone who controls the content of a message with bare LF or CR line endings can end it early with \n.\n on a server that takes a bare LF for a line ending. What follows is read by the server as SMTP commands, which can be used to send other messages over the same authenticated connection. This...
STARTTLS response injection allows a man-in-the-middle to forge SMTP replies
A man-in-the-middle can append replies of their own to the cleartext reply to STARTTLS. The client takes them for the server's replies to the commands it then sends over TLS, so the attacker can, for example, make a message that the server rejected look accepted. Only connections upgraded with...
Timing side channel in P-256 scalar validation leaks leading zero bytes of nonces and signing keys
As part of P-256 scalar validation, libcrux-ecdsa prior to version 0.0.10 checked whether a scalar is zero by looping over its bytes with a short-circuiting comparison. Since the loop stops at the first non-zero byte, its running time reveals how many leading bytes of the scalar are zero. Impact...
Panic on an `EHLO` reply line of only white space allows denial of service
A malicious or compromised server can reply to EHLO with a line holding nothing but white space, causing the client to panic. Applications that connect only to a trusted server over implicit TLS are not exposed; the risk applies to clients that may connect to untrusted servers, or that use STARTT...
Panic on a mailbox display name containing CR or LF allows denial of service
A Mailbox whose display name contains a CR or LF panics when it is formatted or put in a header such as From or To. Someone who can choose a display name, for example the name of a user a message is sent to, can crash the thread or task building the message. Applications that take display names...