Public Security Advisories
Coordinated vulnerability disclosures from Argus. Findings, impact, and remediation, published in good faith.
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.
A TLS 1.2 DHE-PSK client writes the DH shared secret at offset 2 of a 578-byte buffer (heap-math builds) without checking it against the prime from the unsigned 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 buffer that holds the TLS 1.2 DHE-PSK pre-master secret reserves space for one 2-byte length field, but the composition writes two. With a 4096-bit DH prime and a 63- or 64-byte PSK, MakePSKPreMasterSecret writes one or two bytes past the end of the heap allocation. No capacity check exists on the path.
A TLS 1.3 client records that the server selected a pre-shared key in a flag that wolfSSL_clear does not reset. After a PSK or resumption handshake, a client object that is cleared and reused rejects the next full certificate handshake with a message-ordering error. The stale flag does not let a server skip authentication.
When a TLS 1.3 server selects the client's resumption PSK, the wolfSSL client marks the server as authenticated without consulting any record of whether the original session verified a certificate. A ticket obtained without verification resumes on a connection that requires it, and the verify result reads as success.
// No embargoed advisories.