CVE Catalog
EnglishPolski(English translation not available - showing Polish)

CVE-2021-3712

High
Published: Translated: NVD NIST

Summary

W OpenSSL, struktura ASN1_STRING, która przechowuje dane ciągu ASN.1, może nie być poprawnie zakończona znakiem NUL. Aplikacje mogą tworzyć poprawne struktury ASN1_STRING, które nie kończą się tym znakiem, co prowadzi do potencjalnych problemów z bezpieczeństwem w funkcjach drukujących dane ASN.1.

Risk Assessment

Brak zakończenia znakiem NUL może prowadzić do nieprzewidywalnego zachowania aplikacji, co stwarza ryzyko wycieków pamięci lub innych problemów związanych z bezpieczeństwem.

Recommendation

Zaleca się, aby aplikacje korzystające z OpenSSL upewniły się, że wszystkie struktury ASN1_STRING są poprawnie zakończone znakiem NUL przed ich użyciem w funkcjach drukujących.

Related vulnerabilities

Original NVD description (English source)

ASN.1 strings are represented internally within OpenSSL as an ASN1_STRING structure which contains a buffer holding the string data and a field holding the buffer length. This contrasts with normal C strings which are repesented as a buffer for the string data which is terminated with a NUL (0) byte. Although not a strict requirement, ASN.1 strings that are parsed using OpenSSL's own "d2i" functions (and other similar parsing functions) as well as any string whose value has been set with the ASN1_STRING_set() function will additionally NUL terminate the byte array in the ASN1_STRING structure. However, it is possible for applications to directly construct valid ASN1_STRING structures which do not NUL terminate the byte array by directly setting the "data" and "length" fields in the ASN1_STRING array. This can also happen by using the ASN1_STRING_set0() function. Numerous OpenSSL functions that print ASN.1 data have been found to assume that the ASN1_STRING byte array will be NUL termin

Vulnerability data from NVD (NIST) · CISA KEV · EPSS