Public Security Advisories
Coordinated vulnerability disclosures from Argus. Findings, impact, and remediation, published in good faith.
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 text dump of an X.509 attribute certificate prints the directory names of the holder and the issuer by copying their attribute values to the output unchanged. An attribute certificate whose holder or issuer name contains CR or LF adds lines of its author's choosing to the dump. Only builds with attribute certificate support and applications that print untrusted attribute certificates are affected.
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.
wolfSSL_X509_REQ_print writes the subject of a certificate signing request to the output without escaping control characters. A request whose subject contains CR or LF adds lines chosen by the submitter to the printed text. Services that print or log requests they receive, such as enrolment front ends, are affected.
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 certificate text dump in wolfSSL's OpenSSL compatibility layer writes subject and issuer name values to the output without escaping control characters. A certificate whose name contains CR or LF adds lines of the sender's choosing to the printed text. Applications that print peer certificates into logs or other line-based output are affected.
wolfSSL_X509_REQ_print writes the attributes of a certificate signing request, such as the challenge password and unstructured name, with a plain string format and no escaping. An attribute value that contains CR or LF adds lines chosen by the submitter to the printed text. The value is limited to about 49 bytes. Only builds with the full OpenSSL compatibility layer and certificate generation are affected.
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.
wolfSSL_ASN1_STRING_print_ex accepts the ASN1_STRFLGS_ESC_CTRL and ASN1_STRFLGS_ESC_MSB flags but never tests them. With any flag combination other than a hex dump, CR, LF and other control bytes of the string are written to the output unchanged, so an application that relies on these flags to print certificate strings safely gets no escaping.
wolfSSL_X509_NAME_oneline returns the one-line form of a certificate subject or issuer exactly as the parser assembled it, with attribute values copied in byte for byte. A value containing CR or LF puts line breaks into the returned string, and a NUL byte in a value cuts the string short. Applications that log the string can be made to write forged or misleading entries.
// No embargoed advisories.