Public Security Advisories
Coordinated vulnerability disclosures from Argus. Findings, impact, and remediation, published in good faith.
In --enable-c89 builds the OpenSSL-compatibility X.509 printer formats a certificate's subjectAltName strings into an 80-byte stack buffer with a macro that discards the size, so a long alt name from a peer certificate overflows the stack when the certificate is printed.
wolfSSL_ASN1_STRING_print replaces control bytes with dots but leaves carriage return and line feed as they are. wolfSSL_GENERAL_NAME_print uses it for the email, DNS and URI names of a certificate, so a subject alternative name containing CR or LF adds lines of the certificate author's choosing to the printed output.
wolfSSL_GENERAL_NAME_print prints a directoryName alternative name with the XN_FLAG_ONELINE flag set, which in wolfSSL did not include control-character escaping. Attribute values of the directory name are written to the output byte for byte, so a value containing CR or LF adds lines chosen by the certificate author to the printed text.
The certificate text dump in wolfSSL's OpenSSL compatibility layer prints dNSName, rfc822Name and URI subject alternative names with a plain string format and no escaping. An entry that contains CR or LF adds lines of the certificate author's choosing to the printed text. Each entry is limited to under 80 bytes. Applications that print peer certificates into line-based output are affected.
When the certificate text dump in wolfSSL's OpenSSL compatibility layer prints a directoryName subject alternative name, it copies the country, organization, unit and common name values into the output byte for byte. A value that contains CR or LF adds lines of the certificate author's choosing to the printed text. The whole entry is limited to under 80 bytes.
The wolfSSL certificate print functions render subjectAltName entries as one list separated by ", " and copy each value unescaped. A certificate with a SAN value that contains ", DNS:" or CR/LF is printed with entries or lines that are not in the certificate.
// No embargoed advisories.