Public Security Advisories
Coordinated vulnerability disclosures from Argus. Findings, impact, and remediation, published in good faith.
DoAlert rejects an alert record whose payload is not exactly two bytes, but the fatal unexpected_message alert it sends in reply is compiled only with WOLFSSL_EXTRA_ALERTS. A default build drops the connection without telling the peer why.
DoAlert closes a connection once the peer has sent WOLFSSL_ALERT_COUNT_MAX alert records. The fatal unexpected_message alert that announces this is compiled only with WOLFSSL_EXTRA_ALERTS, so a default build ends the connection with ALERT_COUNT_E and sends nothing.
DoCertificateVerify maps its failures to decode_error, decrypt_error or bad_certificate alerts only when WOLFSSL_EXTRA_ALERTS is defined. In a default build a server that rejects a client's CertificateVerify closes the connection without sending any alert.
When the DTLS stateless cookie exchange fails, DoClientHello asks TranslateErrorToAlert for an alert and sends one only if the error code is in that function's list. Codes outside the list, such as MEMORY_E, end the handshake with no alert to the client.
The server-side ClientKeyExchange handler rejects an invalid X25519, X448 or ECC public key and a mismatched RSA premaster length, but the fatal alerts for those four cases are compiled only with WOLFSSL_EXTRA_ALERTS. A default build closes the connection without an alert.
wolfSSL closes a connection after WOLFSSL_MAX_EMPTY_RECORDS consecutive zero-length application-data records. The fatal unexpected_message alert for that case is compiled only with WOLFSSL_EXTRA_ALERTS, so a default build returns EMPTY_RECORD_LIMIT_E and sends nothing.
When the record loop fails to read a record body for a reason other than WANT_READ, for example MEMORY_E while growing the input buffer, the fatal alert is compiled only with WOLFSSL_EXTRA_ALERTS. A default build returns the raw error, and the DTLS branch has no alert in any build.
When DoTls13ServerHello fails, DoServerHello sends a fatal alert only if TranslateErrorToAlert knows the error code. For codes outside its list, such as MEMORY_E, it returns invalid_alert and the client closes the connection without sending any alert.
The client-side ServerKeyExchange handler rejects an invalid X25519, X448 or ECC server key and an unsupported signature algorithm, but the fatal alerts for those four cases are compiled only with WOLFSSL_EXTRA_ALERTS. A default build drops the handshake without an alert.
The server-side resumption handler rejects a ClientHello that drops extended master secret or omits the resumed session's cipher suite, but the fatal alerts for those three cases are compiled only with WOLFSSL_EXTRA_ALERTS. A default build ends the handshake without an alert.
The server rejects a ClientHello whose compression methods list is empty, lacks the null method or matches nothing usable, but the fatal alerts for those three cases are compiled only with WOLFSSL_EXTRA_ALERTS. A default build ends the handshake without an alert.
SendAlert_ex clears the pending-alert marker after calling SendBuffered without checking the result. When the flush fails with WANT_WRITE on a non-blocking socket, the retry hook finds no pending alert and the fatal alert is never retransmitted, so the peer sees the connection drop without it.
SendAlert_ex writes the alert history before the alert is flushed and does not revert it when the flush fails. The duplicate-alert guards in the TLS 1.3 handshake dispatcher and in DoServerHello then read a fatal alert as already sent and skip every later alert on the connection.
SendFatalAlertOnly, the function that turns a handshake error code into a fatal alert, is an empty stub unless WOLFSSL_EXTRA_ALERTS is defined. In a default build, out-of-order, duplicate and wrong-side handshake messages end the TLS 1.2 or DTLS connection without an alert.
TranslateErrorToAlert maps a fixed list of error codes to TLS 1.3 alerts and returns invalid_alert for all others. The handshake dispatcher sends no alert for that value, so errors such as MEMORY_E, SIDE_ERROR and VERIFY_FINISHED_ERROR end a TLS 1.3 handshake without an alert.
// No embargoed advisories.