Skip to content

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

HighCVSS 7.4 EPSS 48.1%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
MySQLOpenSSLUbuntuDebian

Description

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).

Upgrade path

279 packages: 204 fixed, 14 with no fix yet.

PackageAffectedFixed inStatus
netapp clustered data ontap All versions No fix listed No fix yet
netapp clustered data ontap antivirus connector All versions No fix listed No fix yet
netapp hci management node All versions No fix listed No fix yet
netapp manageability software development kit All versions No fix listed No fix yet
netapp santricity smi-s provider All versions No fix listed No fix yet
netapp solidfire All versions No fix listed No fix yet
netapp storage encryption All versions No fix listed No fix yet
Siemens Industrial Edge - Machine Insight App All versions No fix listed No fix yet
Siemens SINEMA Server V14 All versions No fix listed No fix yet
ubuntu/edk2(Ubuntu Pro 16.04) = 0~20150106.5c2d456b-2; = 0~20160104.c2a892d7-1; = 0~20160408.ffea0a2c-2; = 0~20160408.ffea0a2c-2ubuntu0.1 +5 more No fix listed No fix yet
ubuntu/edk2(Ubuntu Pro 18.04) = 0~20170911.5dfba97c-1; = 0~20171010.234dbcef-1; = 0~20171027.76fd5a66-1; = 0~20171205.a9212288-1 +10 more No fix listed No fix yet
ubuntu/openssl(Ubuntu Pro FIPS 16.04) = 1.0.2g-1ubuntu4.fips.4.6; = 1.0.2g-1ubuntu4.fips.4.6.1; = 1.0.2g-1ubuntu4.fips.4.6.2; = 1.0.2g-1ubuntu4.fips.4.6.3 +4 more No fix listed No fix yet
ubuntu/openssl(Ubuntu Pro FIPS 18.04) = 1.1.1-1ubuntu2.fips.2.1~18.04.3.1; = 1.1.1-1ubuntu2.fips.2.1~18.04.15.2; All versions No fix listed No fix yet
ubuntu/openssl(Ubuntu Pro FIPS 20.04) = 1.1.1f-1ubuntu2.fips.2.8; = 1.1.1f-1ubuntu2.fips.7.1; All versions No fix listed No fix yet
alpine/openssl(Alpine v3.11) >= 1.1.1, < 1.1.1l-r0 1.1.1l-r0 Fixed
alpine/openssl(Alpine v3.12) >= 1.1.1, < 1.1.1l-r0 1.1.1l-r0 Fixed
alpine/openssl(Alpine v3.13) >= 1.1.1, < 1.1.1l-r0 1.1.1l-r0 Fixed
alpine/openssl(Alpine v3.14) >= 1.1.1, < 1.1.1l-r0 1.1.1l-r0 Fixed
alpine/openssl(Alpine v3.15) >= 1.1.1, < 1.1.1l-r0 1.1.1l-r0 Fixed
alpine/openssl(Alpine v3.16) >= 1.1.1, < 1.1.1l-r0 1.1.1l-r0 Fixed
alpine/openssl(Alpine v3.17) >= 1.1.1, < 1.1.1l-r0 1.1.1l-r0 Fixed
alpine/openssl(Alpine v3.18) >= 1.1.1, < 1.1.1l-r0 1.1.1l-r0 Fixed
alpine/openssl(Alpine v3.19) >= 1.1.1, < 1.1.1l-r0 1.1.1l-r0 Fixed
alpine/openssl(Alpine v3.20) >= 1.1.1, < 1.1.1l-r0 1.1.1l-r0 Fixed
alpine/openssl(Alpine v3.21) >= 1.1.1, < 1.1.1l-r0 1.1.1l-r0 Fixed
alpine/openssl(Alpine v3.22) >= 1.1.1, < 1.1.1l-r0 1.1.1l-r0 Fixed
alpine/openssl(Alpine v3.23) >= 1.1.1, < 1.1.1l-r0 1.1.1l-r0 Fixed
alpine/openssl(Alpine v3.24) >= 1.1.1, < 1.1.1l-r0 1.1.1l-r0 Fixed
alpine/openssl1.1-compat(Alpine v3.17) < 1.1.1l-r0 1.1.1l-r0 Fixed
alpine/openssl1.1-compat(Alpine v3.18) < 1.1.1l-r0 1.1.1l-r0 Fixed

… and 249 more packages.

Affected products

ProductAffected versionsFixed in
ubuntu/edk2(Ubuntu:22.04) < 2022.02-3ubuntu0.22.04.4 2022.02-3ubuntu0.22.04.4
ubuntu/openssl(Ubuntu:22.04) < 1.1.1l-1ubuntu1 1.1.1l-1ubuntu1
crates.io openssl-src(crates.io) < 111.16.0 111.16.0
crates.io openssl-src(crates.io) >= 0.0.0-0, < 111.16.0 111.16.0
debian/openssl(Debian:12) < 1.1.1l-1 1.1.1l-1
debian/openssl(Debian:13) < 1.1.1l-1 1.1.1l-1
debian/openssl(Debian:14) < 1.1.1l-1 1.1.1l-1
OpenSSL >= 1.0.2, < 1.0.2za 1.0.2za
OpenSSL >= 1.1.1, < 1.1.1l 1.1.1l
debian linux = 9.0 No fix listed
debian linux = 10.0 No fix listed
debian linux = 11.0 No fix listed
netapp clustered data ontap All versions No fix listed
netapp clustered data ontap antivirus connector All versions No fix listed
netapp e-series santricity os controller >= 11.0, <= 11.50.2 No fix listed
netapp hci management node All versions No fix listed
netapp manageability software development kit All versions No fix listed
netapp santricity smi-s provider All versions No fix listed
netapp solidfire All versions No fix listed
netapp storage encryption All versions No fix listed
mcafee epolicy orchestrator < 5.10.0 5.10.0
mcafee epolicy orchestrator = 5.10.0 No fix listed
mcafee epolicy orchestrator = 5.10.0-update_1 No fix listed
mcafee epolicy orchestrator = 5.10.0-update_10 No fix listed
mcafee epolicy orchestrator = 5.10.0-update_2 No fix listed
Show 175 more
ProductAffected versionsFixed in
mcafee epolicy orchestrator = 5.10.0-update_3 No fix listed
mcafee epolicy orchestrator = 5.10.0-update_4 No fix listed
mcafee epolicy orchestrator = 5.10.0-update_5 No fix listed
mcafee epolicy orchestrator = 5.10.0-update_6 No fix listed
mcafee epolicy orchestrator = 5.10.0-update_7 No fix listed
mcafee epolicy orchestrator = 5.10.0-update_8 No fix listed
mcafee epolicy orchestrator = 5.10.0-update_9 No fix listed
tenable Nessus Network Monitor < 6.0.0 6.0.0
tenable.sc >= 5.16.0, <= 5.19.1 No fix listed
oracle essbase < 11.1.2.4.047 11.1.2.4.047
oracle essbase >= 21.0, < 21.3 21.3
oracle essbase = 21.3 No fix listed
oracle MySQL Connectors <= 8.0.27 No fix listed
oracle mysql enterprise monitor <= 8.0.25 No fix listed
oracle mysql server >= 5.7.0, <= 5.7.35 No fix listed
oracle mysql server >= 8.0.0, <= 8.0.26 No fix listed
oracle mysql workbench <= 8.0.26 No fix listed
oracle PeopleSoft Enterprise PeopleTools = 8.57 No fix listed
oracle PeopleSoft Enterprise PeopleTools = 8.58 No fix listed
oracle PeopleSoft Enterprise PeopleTools = 8.59 No fix listed
oracle secure backup = 18.1.0.1.0 No fix listed
oracle zfs storage appliance kit = 8.8 No fix listed
Siemens sinec infrastructure network services < 1.0.1.1 1.0.1.1
oracle communications cloud native core console = 1.9.0 No fix listed
oracle communications cloud native core security edge protection proxy = 1.7.0 No fix listed
oracle communications cloud native core unified data repository = 1.15.0 No fix listed
oracle communications session border controller = 8.4 No fix listed
oracle communications session border controller = 9.0 No fix listed
oracle communications unified session manager = 8.2.5 No fix listed
oracle communications unified session manager = 8.4.5 No fix listed
oracle enterprise communications broker = 3.2.0 No fix listed
oracle enterprise communications broker = 3.3.0 No fix listed
oracle Enterprise Session Border Controller = 8.4 No fix listed
oracle Enterprise Session Border Controller = 9.0 No fix listed
oracle health sciences inform publisher = 6.2.1.0 No fix listed
oracle health sciences inform publisher = 6.3.1.1 No fix listed
oracle JD Edwards EnterpriseOne Tools < 9.2.6.3 9.2.6.3
oracle jd edwards world security = a9.4 No fix listed
OpenSSL = Fixed in OpenSSL 1.1.1l (Affected 1.1.1-1.1.1k) No fix listed
OpenSSL = Fixed in OpenSSL 1.0.2za (Affected 1.0.2-1.0.2y) No fix listed
Siemens BFCClient < V2.17 V2.17
Siemens Industrial Edge - Machine Insight App All versions No fix listed
Siemens Industrial Edge - PROFINET IO Connector = All versions < V1.1.1 No fix listed
Siemens RUGGEDCOM RM1224 LTE(4G) EU = All versions < V7.1 No fix listed
Siemens RUGGEDCOM RM1224 LTE(4G) NAM = All versions < V7.1 No fix listed
Siemens RUGGEDCOM ROX MX5000 < V2.15.0 V2.15.0
Siemens RUGGEDCOM ROX MX5000RE < V2.15.0 V2.15.0
Siemens RUGGEDCOM ROX RX1400 < V2.15.0 V2.15.0
Siemens RUGGEDCOM ROX RX1500 < V2.15.0 V2.15.0
Siemens RUGGEDCOM ROX RX1501 < V2.15.0 V2.15.0
Siemens RUGGEDCOM ROX RX1510 < V2.15.0 V2.15.0
Siemens RUGGEDCOM ROX RX1511 < V2.15.0 V2.15.0
Siemens RUGGEDCOM ROX RX1512 < V2.15.0 V2.15.0
Siemens RUGGEDCOM ROX RX1524 < V2.15.0 V2.15.0
Siemens RUGGEDCOM ROX RX1536 < V2.15.0 V2.15.0
Siemens RUGGEDCOM ROX RX5000 < V2.15.0 V2.15.0
Siemens SCALANCE M804PB = All versions < V7.1 No fix listed
Siemens SCALANCE M812-1 ADSL-Router = All versions < V7.1 No fix listed
Siemens SCALANCE M816-1 ADSL-Router = All versions < V7.1 No fix listed
Siemens SCALANCE M826-2 SHDSL-Router = All versions < V7.1 No fix listed
Siemens SCALANCE M874-2 = All versions < V7.1 No fix listed
Siemens SCALANCE M874-3 = All versions < V7.1 No fix listed
Siemens SCALANCE M876-3 = All versions < V7.1 No fix listed
Siemens SCALANCE M876-3 (ROK) = All versions < V7.1 No fix listed
Siemens SCALANCE M876-4 (EU) = All versions < V7.1 No fix listed
Siemens SCALANCE M876-4 (NAM) = All versions < V7.1 No fix listed
Siemens SCALANCE MUM853-1 (EU) < V7.1 V7.1
Siemens SCALANCE MUM856-1 (EU) < V7.1 V7.1
Siemens SCALANCE MUM856-1 (RoW) < V7.1 V7.1
Siemens SCALANCE S615 LAN-Router = All versions < V7.1 No fix listed
Siemens SCALANCE SC622-2C = All versions < V2.3 No fix listed
Siemens SCALANCE SC632-2C = All versions < V2.3 No fix listed
Siemens SCALANCE SC636-2C = All versions < V2.3 No fix listed
Siemens SCALANCE SC642-2C = All versions < V2.3 No fix listed
Siemens SCALANCE SC646-2C = All versions < V2.3 No fix listed
Siemens SCALANCE W1748-1 M12 < V3.0.0 V3.0.0
Siemens SCALANCE W1788-1 M12 < V3.0.0 V3.0.0
Siemens SCALANCE W1788-2 EEC M12 < V3.0.0 V3.0.0
Siemens SCALANCE W1788-2 M12 < V3.0.0 V3.0.0
Siemens SCALANCE W1788-2IA M12 < V3.0.0 V3.0.0
Siemens SCALANCE W721-1 RJ45 < V6.6.0 V6.6.0
Siemens SCALANCE W722-1 RJ45 < V6.6.0 V6.6.0
Siemens SCALANCE W734-1 RJ45 < V6.6.0 V6.6.0
Siemens SCALANCE W734-1 RJ45 (USA) < V6.6.0 V6.6.0
Siemens SCALANCE W738-1 M12 < V6.6.0 V6.6.0
Siemens SCALANCE W748-1 M12 < V6.6.0 V6.6.0
Siemens SCALANCE W748-1 RJ45 < V6.6.0 V6.6.0
Siemens SCALANCE W761-1 RJ45 < V6.6.0 V6.6.0
Siemens SCALANCE W774-1 M12 EEC < V6.6.0 V6.6.0
Siemens SCALANCE W774-1 RJ45 < V6.6.0 V6.6.0
Siemens SCALANCE W774-1 RJ45 (USA) < V6.6.0 V6.6.0
Siemens SCALANCE W778-1 M12 < V6.6.0 V6.6.0
Siemens SCALANCE W778-1 M12 EEC < V6.6.0 V6.6.0
Siemens SCALANCE W778-1 M12 EEC (USA) < V6.6.0 V6.6.0
Siemens SCALANCE W786-1 RJ45 < V6.6.0 V6.6.0
Siemens SCALANCE W786-2 RJ45 < V6.6.0 V6.6.0
Siemens SCALANCE W786-2 SFP < V6.6.0 V6.6.0
Siemens SCALANCE W786-2IA RJ45 < V6.6.0 V6.6.0
Siemens SCALANCE W788-1 M12 < V6.6.0 V6.6.0
Siemens SCALANCE W788-1 RJ45 < V6.6.0 V6.6.0
Siemens SCALANCE W788-2 M12 < V6.6.0 V6.6.0
Siemens SCALANCE W788-2 M12 EEC < V6.6.0 V6.6.0
Siemens SCALANCE W788-2 RJ45 < V6.6.0 V6.6.0
Siemens SCALANCE WAM766-1 < V1.2.0 V1.2.0
Siemens SCALANCE WAM766-1 (US) < V1.2.0 V1.2.0
Siemens SCALANCE WAM766-1 EEC < V1.2.0 V1.2.0
Siemens SCALANCE WAM766-1 EEC (US) < V1.2.0 V1.2.0
Siemens SCALANCE WUM766-1 < V1.2.0 V1.2.0
Siemens SCALANCE WUM766-1 (USA) < V1.2.0 V1.2.0
Siemens scalance x200-4p irt < V5.5.2 V5.5.2
Siemens scalance x201-3p irt < V5.5.2 V5.5.2
Siemens SCALANCE X201-3P IRT PRO < V5.5.2 V5.5.2
Siemens scalance x202-2irt < V5.5.2 V5.5.2
Siemens scalance x202-2p irt < V5.5.2 V5.5.2
Siemens SCALANCE X202-2P IRT PRO < V5.5.2 V5.5.2
Siemens SCALANCE X204-2 = All versions < V5.2.6 No fix listed
Siemens SCALANCE X204-2FM = All versions < V5.2.6 No fix listed
Siemens SCALANCE X204-2LD = All versions < V5.2.6 No fix listed
Siemens SCALANCE X204-2LD TS = All versions < V5.2.6 No fix listed
Siemens SCALANCE X204-2TS = All versions < V5.2.6 No fix listed
Siemens scalance x204irt < V5.5.2 V5.5.2
Siemens SCALANCE X204IRT PRO < V5.5.2 V5.5.2
Siemens SCALANCE X206-1 = All versions < V5.2.6 No fix listed
Siemens SCALANCE X206-1LD = All versions < V5.2.6 No fix listed
Siemens SCALANCE X208 = All versions < V5.2.6 No fix listed
Siemens SCALANCE X208PRO = All versions < V5.2.6 No fix listed
Siemens SCALANCE X212-2 = All versions < V5.2.6 No fix listed
Siemens SCALANCE X212-2LD = All versions < V5.2.6 No fix listed
Siemens SCALANCE X216 = All versions < V5.2.6 No fix listed
Siemens SCALANCE X224 = All versions < V5.2.6 No fix listed
Siemens SCALANCE X302-7 EEC (230V, coated) < V4.1.4 V4.1.4
Siemens SCALANCE X302-7 EEC (230V) < V4.1.4 V4.1.4
Siemens SCALANCE X302-7 EEC (24V, coated) < V4.1.4 V4.1.4
Siemens SCALANCE X302-7 EEC (24V) < V4.1.4 V4.1.4
Siemens SCALANCE X302-7 EEC (2x 230V, coated) < V4.1.4 V4.1.4
Siemens SCALANCE X302-7 EEC (2x 230V) < V4.1.4 V4.1.4
Siemens SCALANCE X302-7 EEC (2x 24V, coated) < V4.1.4 V4.1.4
Siemens SCALANCE X302-7 EEC (2x 24V) < V4.1.4 V4.1.4
Siemens SCALANCE X304-2FE < V4.1.4 V4.1.4
Siemens SCALANCE X306-1LD FE < V4.1.4 V4.1.4
Siemens SCALANCE X307-2 EEC (230V, coated) < V4.1.4 V4.1.4
Siemens SCALANCE X307-2 EEC (230V) < V4.1.4 V4.1.4
Siemens SCALANCE X307-2 EEC (24V, coated) < V4.1.4 V4.1.4
Siemens SCALANCE X307-2 EEC (24V) < V4.1.4 V4.1.4
Siemens SCALANCE X307-2 EEC (2x 230V, coated) < V4.1.4 V4.1.4
Siemens SCALANCE X307-2 EEC (2x 230V) < V4.1.4 V4.1.4
Siemens SCALANCE X307-2 EEC (2x 24V, coated) < V4.1.4 V4.1.4
Siemens SCALANCE X307-2 EEC (2x 24V) < V4.1.4 V4.1.4
Siemens SCALANCE X307-3 < V4.1.4 V4.1.4
Siemens SCALANCE X307-3LD < V4.1.4 V4.1.4
Siemens SCALANCE X308-2 < V4.1.4 V4.1.4
Siemens SCALANCE X308-2LD < V4.1.4 V4.1.4
Siemens SCALANCE X308-2LH < V4.1.4 V4.1.4
Siemens SCALANCE X308-2LH+ < V4.1.4 V4.1.4
Siemens scalance x308-2m < V4.1.4 V4.1.4
Siemens SCALANCE X308-2M PoE < V4.1.4 V4.1.4
Siemens SCALANCE X308-2M TS < V4.1.4 V4.1.4
Siemens SCALANCE X310 < V4.1.4 V4.1.4
Siemens SCALANCE X310FE < V4.1.4 V4.1.4
Siemens SCALANCE X320-1 FE < V4.1.4 V4.1.4
Siemens SCALANCE X320-1-2LD FE < V4.1.4 V4.1.4
Siemens SCALANCE X408-2 < V4.1.4 V4.1.4
Siemens SCALANCE XF201-3P IRT < V5.5.2 V5.5.2
Siemens SCALANCE XF202-2P IRT < V5.5.2 V5.5.2
Siemens SCALANCE XF204 = All versions < V5.2.6 No fix listed
Siemens SCALANCE XF204-2 = All versions < V5.2.6 No fix listed
Siemens SCALANCE XF204-2BA IRT < V5.5.2 V5.5.2
Siemens scalance xf204irt < V5.5.2 V5.5.2
Siemens SCALANCE XF206-1 = All versions < V5.2.6 No fix listed
Siemens SCALANCE XF208 = All versions < V5.2.6 No fix listed
Siemens SCALANCE XR324-12M (230V, ports on front) < V4.1.4 V4.1.4
Siemens SCALANCE XR324-12M (230V, ports on rear) < V4.1.4 V4.1.4
Siemens SCALANCE XR324-12M (24V, ports on front) < V4.1.4 V4.1.4
Siemens SCALANCE XR324-12M (24V, ports on rear) < V4.1.4 V4.1.4
Siemens SCALANCE XR324-12M TS (24V) < V4.1.4 V4.1.4

References