Public Security Advisories
Coordinated vulnerability disclosures from Argus. Findings, impact, and remediation, published in good faith.
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.
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_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.
// No embargoed advisories.