Public Security Advisories
Coordinated vulnerability disclosures from Argus. Findings, impact, and remediation, published in good faith.
On heap-math builds the TLS 1.3 pre-master secret buffer is 512 bytes (578 with PSK), but an FFDHE-6144 or FFDHE-8192 key share produces a 768 or 1024-byte shared secret. wolfSSL wrote the secret without checking the buffer size, so a peer that negotiates one of those groups causes a heap write of up to 512 bytes past the buffer before authentication.
On heap-math builds a TLS 1.2 server computes the DHE pre-master secret into a 512-byte buffer (578 with PSK) without checking it against its configured DH prime. A server that uses a prime above 4096 bits writes past the buffer whenever a client completes a DHE key exchange, before the client is authenticated.
On heap-math builds with PSK, a TLS 1.2 server writes the DHE-PSK shared secret at offset 2 of a 578-byte buffer without checking it against its configured DH prime. With a prime above 4096 bits the write passes the end of the buffer on any DHE-PSK ClientKeyExchange, before the pre-shared key is looked up.
The wolfSSL sniffer decrypts TLS 1.3 sessions that use a static DH key by computing the shared secret into a 512-byte buffer (heap-math builds) with no size check. With a 6144 or 8192-bit static key, any captured handshake that uses a finite-field group makes the sniffer write up to 512 bytes past the buffer.
A TLS 1.2 DHE client writes the DH shared secret into a 512-byte buffer (heap-math builds) without checking it against the prime from the ServerKeyExchange. With wolfSSL's own key generation an oversized prime fails earlier with an error. The write is reachable when a PK callback generates the client's DH key pair.
The heap math backend exports its radix alphabet as const char *mp_s_rmap: the characters are const but the pointer is writable. Code in the same process can repoint it, and mp_read_radix and mp_toradix index it over a fixed 64 entries without checking the length, which reads past a shorter replacement and corrupts conversions.
The heap math backend keeps its radix alphabet behind mp_s_rmap, a non-const global pointer exported by a public header. mp_read_radix and mp_toradix index it up to 64 entries without a length check, so in-process code that repoints it causes wrong conversions and reads past the replacement string. The fast math backend already keeps its copy of the table static.
In the heap math backend, mp_clear on non-FIPS builds zeroes only the digits currently in use, with plain stores and no barrier, and then frees the buffer. A compiler may remove the stores, and digits beyond the in-use count are never cleared. The main key-free paths wipe their secrets separately.
// No embargoed advisories.