Public Security Advisories
Coordinated vulnerability disclosures from Argus. Findings, impact, and remediation, published in good faith.
The PEM reader behind PEM_read_bio_X509_CRL and PEM_X509_INFO_read_bio reads one byte after the header delimiter without checking the buffer bound. When the delimiter ends on the last byte of the buffer, which a streaming BIO allows, that byte is written one position past the heap allocation.
The built-in OCSP and CRL lookup callbacks connect to the URL named in the peer's certificate and read the HTTP response with no time limit. A responder that accepts the connection and then stops sending keeps the verifying thread blocked inside the handshake call indefinitely.
wolfSSL_X509_CRL_print writes the CRL issuer name to the output without escaping control characters. A CRL whose issuer contains CR or LF adds lines of its author's choosing to the printed text. The CRL does not need a valid signature to be loaded and printed. Applications that print CRLs from untrusted sources into line-based output are affected.
With inline CRL fetching enabled, wolfSSL sends an HTTP GET to the host and port named in a certificate's CRL distribution point and applies no check to the destination. A certificate that the verifier accepts can direct that request at loopback, link-local or private addresses reachable from the verifier.
A TLS 1.2 client that requests ocsp_multi stapling defers revocation checking of chain CA certificates to the CertificateStatus message. The handler for that message requires a stapled response for the leaf only, then adds every pending chain CA to the certificate manager whether or not a response for it arrived.
When the server answers a client's OCSP stapling request, wolfSSL turns off its own OCSP and CRL lookups for the leaf certificate and relies on the staple. A missing or zero-length staple is then accepted unless must-staple is set, so a server can complete the handshake with a leaf certificate that had no revocation check.
For a client that requests OCSP stapling, wolfSSL replaces a failed CRL check on a chain CA certificate with success unless the CRL explicitly lists the certificate as revoked. The staple that is expected to cover the certificate is never required, so a missing or stale CRL for an intermediate no longer fails the handshake.
The wolfSSL HTTP request builder rejects CR and LF in the path and host but not in the method, the Content-Type value or the extra headers. An application that forwards untrusted data into the exported wolfIO_HttpBuildRequest can be made to send injected request lines and headers.
When a TLS 1.2 server omits the CertificateStatus message, the wolfSSL client runs a fallback OCSP lookup for the leaf certificate only and returns its failure only if OCSP or must-staple is enabled on the certificate manager. A client that requires CRL checking, has OCSP disabled and still requests stapling completes the handshake with no revocation check on the leaf.
On a CRL miss, LoadCertByIssuer checks that the issuer-hash CRL file exists and then loads it by name. The loader opens the same path twice in a row, so one lookup resolves the name three times. A local process that can write to the directory can replace the file between any of them.
LoadCRL lists the CRL directory, accepts entries that were regular files at listing time, and later opens each one by name. The open follows symlinks and does not recheck the object. A local process with write access to the directory can make the loader read a file it never checked.
wolfSSL_X509_STORE_load_locations accepts directory entries that were regular files at listing time and later opens each by name. A local process with write access to the directory can replace an entry in between. wolfSSL_X509_STORE_set_default_paths also takes the directory from SSL_CERT_DIR.
// No embargoed advisories.