Public Security Advisories
Coordinated vulnerability disclosures from Argus. Findings, impact, and remediation, published in good faith.
wolfSSL returns decrypted application data through a pointer into its receive buffer. When more input is already buffered and the next record needs a larger buffer, GetInputData_ex() reallocates the buffer without checking for pending plaintext, and the next wolfSSL_read() copies from the freed block.
When replacing a heap-allocated session ticket fails to allocate, wolfSSL_set_SessionTicket and SetTicket point the session back at its small static ticket buffer but keep the length of the released ticket. Later code trusts that length: a resumption ClientHello sends bytes from beyond the static buffer to the peer, and a later ticket copy can write past it.
The RFC 2253 escaping branch of wolfSSL_ASN1_STRING_print_ex finds the end of a string by scanning for a NUL byte and ignores the stored length. Strings returned by the RFC 3161 time-stamp getters have no terminator, so printing one reads past the response buffer and writes the bytes it passes to the output BIO.
The wolfSSL sniffer grows its decrypted-data buffer with a realloc for each application-data record. When the allocator moves the block, the old block is released with the plaintext decoded so far still in it. The failure path of the same call clears the buffer; the success path does not.
In builds that define the SHOW_SECRETS debug macro and enable SSL 3.0, the SSL 3.0 master secret derivation prints the pre-master secret and the master secret to standard output in hex. Anyone who can read the captured output can decrypt those sessions.
In sniffer builds that define the SHOW_SECRETS debug macro, the key setup routine prints the recovered pre-master secret, or the TLS 1.3 key exchange shared secret, of every decoded session to standard output in hex. A reader of the captured output can decrypt those sessions.
In sniffer builds that define the SHOW_SECRETS debug macro, the sniffer prints the master secret of both sides of each decoded session, and the TLS 1.3 resumption secret, to standard output in hex. A reader of the captured output can decrypt those sessions.
In keylog-export builds, wolfSSL appends every TLS 1.3 traffic secret to sslkeylog.log in the working directory through a plain fopen call. The file gets umask-governed permissions, so on a common umask any local account can read it and decrypt the process's TLS 1.3 sessions.
In keylog-export builds, wolfSSL writes the master secret of every TLS 1.2 or earlier handshake to standard output and appends it to sslkeylog.log through a plain fopen call. The file gets umask-governed permissions, so other local accounts can read it and decrypt those sessions.
In builds that define the SHOW_SECRETS debug macro, wolfSSL_RAND_egd prints the entropy bytes it read from an EGD socket to standard output after mixing them into the global DRBG. The bytes are one input to the reseed; they do not by themselves determine the DRBG state.
wolfSSL_i2d_SSL_SESSION copies ticketLen bytes from the session's ticket pointer without checking that length against the buffer the pointer refers to. After an allocation failure leaves the pointer on the small static ticket buffer with the length of a larger, released ticket, serialization reads past that buffer and places adjacent heap memory in the output blob.
wolfSSL_ASN1_STRING_to_UTF8 copies the string length plus one byte from the source, assuming a stored NUL terminator. Strings returned by the RFC 3161 time-stamp getters point into the raw response with no terminator, so the copy reads one byte past the response buffer and returns that byte to the application.
When AddSessionToCache overwrites an existing cache entry and the new ticket needs a larger buffer, the previous dynamically allocated ticket is freed without being wiped. The old ticket stays in freed heap memory until the allocator reuses the block.
CreateTicket switches the session back to its static ticket buffer before building a new ticket. If the session's ticket was in a heap buffer, that buffer is freed without being wiped, and the previously installed ticket stays in freed heap memory.
When a server restores TLS 1.3 session state from a client ticket and the session's ticket nonce is in a heap buffer, the old nonce buffer is freed without being wiped. The path exists only in builds with WOLFSSL_TICKET_NONCE_MALLOC.
When DTLS handshake fragments overlap or bridge two reassembly buckets, DtlsMsgCombineFragBuckets grows a bucket with a realloc. The old bucket is released without being wiped, in both the realloc and the no-realloc builds, and its handshake fragment bytes stay in freed heap memory.
wolfSSL keeps plaintext copies of DTLS handshake messages for retransmission and reassembly. DtlsMsgDelete, DtlsMsgDestroyFragBucket and the DTLS 1.3 retransmit and fragment buffer releases free these copies without wiping them, so handshake bytes including Finished verify_data stay in freed heap memory.
The wolfSSL sniffer frees its per-flow TCP reassembly buffers without clearing them when a monitored session is torn down. Captured TLS records, with their headers and ciphertext, remain in freed heap memory of the sniffing process.
When a connection is freed, wolfSSL clears keys and secrets but releases the handshake reassembly buffer, the threaded-crypt staging buffers and the WOLFSSL object's inline record buffers without clearing them. Decrypted handshake data, and in some builds application plaintext, remains in freed heap memory.
When the record layer needs a larger output buffer, wolfSSL copies the queued record bytes to a new block and frees the old one without clearing it. The shrink paths clear the same buffers before freeing them. The input buffer is cleared on growth only while send-side encryption is on.
// No embargoed advisories.