{"dataType":"CVE_RECORD","cveMetadata":{"cveId":"CVE-2023-0215","assignerOrgId":"3a12439a-ef3a-4c79-92e6-6081a721f1e5","state":"PUBLISHED","assignerShortName":"openssl","dateReserved":"2023-01-11T11:59:16.647Z","datePublished":"2023-02-08T19:03:28.691Z","dateUpdated":"2025-11-04T19:14:32.988Z"},"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"OpenSSL","vendor":"OpenSSL","versions":[{"lessThan":"3.0.8","status":"affected","version":"3.0.0","versionType":"semver"},{"lessThan":"1.1.1t","status":"affected","version":"1.1.1","versionType":"custom"},{"lessThan":"1.0.2zg","status":"affected","version":"1.0.2","versionType":"custom"}]}],"credits":[{"lang":"en","type":"reporter","user":"00000000-0000-4000-9000-000000000000","value":"Octavio Galland (Max Planck Institute for Security and Privacy)"},{"lang":"en","type":"reporter","user":"00000000-0000-4000-9000-000000000000","value":"Marcel Böhme (Max Planck Institute for Security and Privacy)"},{"lang":"en","type":"remediation developer","user":"00000000-0000-4000-9000-000000000000","value":"Viktor Dukhovni"},{"lang":"en","type":"remediation developer","user":"00000000-0000-4000-9000-000000000000","value":"Matt Caswell"}],"datePublic":"2023-02-07T00:00:00.000Z","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"The public API function BIO_new_NDEF is a helper function used for streaming<br>ASN.1 data via a BIO. It is primarily used internally to OpenSSL to support the<br>SMIME, CMS and PKCS7 streaming capabilities, but may also be called directly by<br>end user applications.<br><br>The function receives a BIO from the caller, prepends a new BIO_f_asn1 filter<br>BIO onto the front of it to form a BIO chain, and then returns the new head of<br>the BIO chain to the caller. Under certain conditions, for example if a CMS<br>recipient public key is invalid, the new filter BIO is freed and the function<br>returns a NULL result indicating a failure. However, in this case, the BIO chain<br>is not properly cleaned up and the BIO passed by the caller still retains<br>internal pointers to the previously freed filter BIO. If the caller then goes on<br>to call BIO_pop() on the BIO then a use-after-free will occur. This will most<br>likely result in a crash.<br><div><br></div><div>This scenario occurs directly in the internal function B64_write_ASN1() which<br>may cause BIO_new_NDEF() to be called and will subsequently call BIO_pop() on<br>the BIO. This internal function is in turn called by the public API functions<br>PEM_write_bio_ASN1_stream, PEM_write_bio_CMS_stream, PEM_write_bio_PKCS7_stream,<br>SMIME_write_ASN1, SMIME_write_CMS and SMIME_write_PKCS7.<br><br>Other public API functions that may be impacted by this include<br>i2d_ASN1_bio_stream, BIO_new_CMS, BIO_new_PKCS7, i2d_CMS_bio_stream and<br>i2d_PKCS7_bio_stream.<br><br>The OpenSSL cms and smime command line applications are similarly affected.<br><br></div>"}],"value":"The public API function BIO_new_NDEF is a helper function used for streaming\nASN.1 data via a BIO. It is primarily used internally to OpenSSL to support the\nSMIME, CMS and PKCS7 streaming capabilities, but may also be called directly by\nend user applications.\n\nThe function receives a BIO from the caller, prepends a new BIO_f_asn1 filter\nBIO onto the front of it to form a BIO chain, and then returns the new head of\nthe BIO chain to the caller. Under certain conditions, for example if a CMS\nrecipient public key is invalid, the new filter BIO is freed and the function\nreturns a NULL result indicating a failure. However, in this case, the BIO chain\nis not properly cleaned up and the BIO passed by the caller still retains\ninternal pointers to the previously freed filter BIO. If the caller then goes on\nto call BIO_pop() on the BIO then a use-after-free will occur. This will most\nlikely result in a crash.\n\n\n\nThis scenario occurs directly in the internal function B64_write_ASN1() which\nmay cause BIO_new_NDEF() to be called and will subsequently call BIO_pop() on\nthe BIO. This internal function is in turn called by the public API functions\nPEM_write_bio_ASN1_stream, PEM_write_bio_CMS_stream, PEM_write_bio_PKCS7_stream,\nSMIME_write_ASN1, SMIME_write_CMS and SMIME_write_PKCS7.\n\nOther public API functions that may be impacted by this include\ni2d_ASN1_bio_stream, BIO_new_CMS, BIO_new_PKCS7, i2d_CMS_bio_stream and\ni2d_PKCS7_bio_stream.\n\nThe OpenSSL cms and smime command line applications are similarly affected."}],"metrics":[{"format":"other","other":{"content":{"text":"Moderate"},"type":"https://www.openssl.org/policies/secpolicy.html"}}],"problemTypes":[{"descriptions":[{"description":"use-after-free","lang":"en"}]}],"providerMetadata":{"orgId":"3a12439a-ef3a-4c79-92e6-6081a721f1e5","shortName":"openssl","dateUpdated":"2024-06-21T19:07:45.229Z"},"references":[{"name":"OpenSSL Advisory","tags":["vendor-advisory"],"url":"https://www.openssl.org/news/secadv/20230207.txt"},{"name":"3.0.8 git commit","tags":["patch"],"url":"https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=8818064ce3c3c0f1b740a5aaba2a987e75bfbafd"},{"name":"1.1.1t git commit","tags":["patch"],"url":"https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=c3829dd8825c654652201e16f8a0a0c46ee3f344"},{"name":"1.0.2zg patch (premium)","tags":["patch"],"url":"https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=9816136fe31d92ace4037d5da5257f763aeeb4eb"},{"url":"https://security.netapp.com/advisory/ntap-20230427-0007/"},{"url":"https://security.netapp.com/advisory/ntap-20230427-0009/"},{"url":"https://security.gentoo.org/glsa/202402-08"},{"url":"https://security.netapp.com/advisory/ntap-20240621-0006/"}],"source":{"discovery":"UNKNOWN"},"title":"Use-after-free following BIO_new_NDEF","x_generator":{"engine":"Vulnogram 0.1.0-dev"}},"adp":[{"title":"CVE Program Container","references":[{"name":"OpenSSL Advisory","tags":["vendor-advisory","x_transferred"],"url":"https://www.openssl.org/news/secadv/20230207.txt"},{"name":"3.0.8 git commit","tags":["patch","x_transferred"],"url":"https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=8818064ce3c3c0f1b740a5aaba2a987e75bfbafd"},{"name":"1.1.1t git commit","tags":["patch","x_transferred"],"url":"https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=c3829dd8825c654652201e16f8a0a0c46ee3f344"},{"name":"1.0.2zg patch (premium)","tags":["patch","x_transferred"],"url":"https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=9816136fe31d92ace4037d5da5257f763aeeb4eb"},{"url":"https://security.netapp.com/advisory/ntap-20230427-0007/","tags":["x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20230427-0009/","tags":["x_transferred"]},{"url":"https://security.gentoo.org/glsa/202402-08","tags":["x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20240621-0006/","tags":["x_transferred"]},{"url":"https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2023-0003"}],"providerMetadata":{"orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE","dateUpdated":"2025-11-04T19:14:32.988Z"}},{"metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":7.5,"attackVector":"NETWORK","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"NONE","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"id":"CVE-2023-0215","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2025-04-23T13:26:40.603939Z"}}}],"problemTypes":[{"descriptions":[{"lang":"en","type":"CWE","cweId":"CWE-416","description":"CWE-416 Use After Free"}]}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2025-08-27T20:32:52.734Z"}}]},"dataVersion":"5.2"}