kcve.ai취약점 정보 · 내 자산 확인

CVE-2021-3712 Read buffer overruns processing ASN.1 strings

ASN.1 문자열을 처리하는 버퍼 오버런 읽기

설명

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 terminated, even though this is not guaranteed for strings that have been directly constructed. Where an application requests an ASN.1 structure to be printed, and where that ASN.1 structure contains ASN1_STRINGs that have been directly constructed by the application without NUL terminating the "data" field, then a read buffer overrun can occur. The same thing can also occur during name constraints processing of certificates (for example if a certificate has been directly constructed by the application instead of loading it via the OpenSSL parsing functions, and the certificate contains non NUL terminated ASN1_STRING structures). It can also occur in the X509_get1_email(), X509_REQ_get1_email() and X509_get1_ocsp() functions. If a malicious actor can cause an application to directly construct an ASN1_STRING and then process it through one of the affected OpenSSL functions then this issue could be hit. This might result in a crash (causing a Denial of Service attack). It could also result in the disclosure of private memory contents (such as private keys, or sensitive plaintext). Fixed in OpenSSL 1.1.1l (Affected 1.1.1-1.1.1k). Fixed in OpenSSL 1.0.2za (Affected 1.0.2-1.0.2y).

ASN.1 문자열은 내부적으로 OpenSSL 내에서 문자열 데이터를 유지하는 버퍼와 버퍼 길이를 유지하는 필드를 포함하는 ASN1_STRING 구조로 표시됩니다. 이것은 NUL (0) 바이트로 종결되는 끈 자료를 위한 완충기로 repesented 정상적인 C 끈과 대조합니다. 엄격한 요구 사항은 아니지만, ASN.1 문자열은 OpenSSL의 자신의 "d2i" 함수를 사용하여 파싱됩니다 (그리고 다른 유사한 파싱 함수) 뿐만 아니라 값이 ASN1_STRING_set() 함수로 설정 된 문자열은 추가적으로 ASN1_STRING 구조체에서 바이트 배열을 종료 합니다. 그러나 응용 프로그램에서 유효한 ASN1_STRING 구조를 직접 구성할 수 있으며, NUL이 아닌 경우 ASN1_STRING 배열의 "데이터" 및 "길이" 필드를 직접 설정하여 바이트 배열을 종료할 수 있습니다. ASN1_STRING_set0() 함수를 사용하면 이러한 일이 발생할 수도 있습니다. ASN.1 데이터를 인쇄하는 수많은 OpenSSL 함수는 ASN1_STRING 바이트 배열이 NUL로 종료된다고 가정하는 것으로 밝혀졌지만, 직접 구성된 문자열에 대해서는 보장되지 않습니다. 애플리케이션이 ASN.1 구조체를 인쇄하도록 요청하고, 그 ASN.1 구조체가 "데이터" 필드를 종료하지 않고 애플리케이션에 의해 직접 구성된 ASN1_STRINGs를 포함하는 경우, 판독 버퍼 오버런이 발생할 수 있다. 인증서의 이름 제약 처리 중에도 같은 일이 발생할 수 있습니다(예: OpenSSL 구문 분석 함수를 통해 인증서를 로드하는 대신 애플리케이션에서 인증서가 직접 구성된 경우 인증서에 NUL이 아닌 종료된 ASN1_STRING 구조가 포함됨). X509_get1_email(), X509_REQ_get1_email() 및 X509_get1_ocsp() 함수에서도 발생할 수 있습니다. 악의적인 액터가 애플리케이션으로 하여금 ASN1_STRING을 직접 구성하게 하고 영향을 받는 OpenSSL 함수 중 하나를 통해 처리하게 한다면 이 문제가 발생할 수 있습니다. 이로 인해 충돌이 발생할 수 있습니다(서비스 거부 공격 발생). 또한 개인 메모리 내용(예를 들어, 개인 키 또는 민감한 일반 텍스트)을 공개할 수도 있습니다. OpenSSL 1.1.1l (에 영향을 미치는 1.1.1-1.1.1k)에서 수정. OpenSSL 1.0.2za에서 수정 (에 영향을 미치는 1.0.2-1.0.2y).

영향 받는 제품 제품 4개

  • OpenSSL

    OpenSSL

    영향 받는 버전

    • 버전 정보 확인 필요

    해결 버전

    해결된 버전 정보가 없습니다.

  • mcafee

    epolicy orchestrator

    NVD 기준 해결 버전 있음

    영향 받는 버전

    • 5.10.0 미만
    • 5.10.0

    해결 버전

    • 5.10.0 이상
  • openssl

    openssl

    NVD 기준 해결 버전 있음

    영향 받는 버전

    • 1.0.2 이상 1.0.2za 미만
    • 1.1.1 이상 1.1.1l 미만

    해결 버전

    • 1.0.2za 이상
    • 1.1.1l 이상
  • oracle

    essbase

    NVD 기준 해결 버전 있음

    영향 받는 버전

    • 11.1.2.4.047 미만
    • 21.0 이상 21.3 미만
    • 21.3

    해결 버전

    • 11.1.2.4.047 이상
    • 21.3 이상

참고 자료 21건

‹ 목록

점검 지원 범위 문의

도입 문의