# CVE-2021-4044: Invalid handling of X509_verify_cert() internal errors in libssl

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 50.1%, higher than 98% of CVEs (2026-12-02)
- Published: 2021-12-14T12:00:00.000Z
- Modified: 2026-09-08T08:48:17.662Z
- Also known as: GHSA-mmjf-f5jw-w72q, BIT-NODE-2021-4044, BIT-NODE-MIN-2021-4044, RUSTSEC-2021-0129
- Weaknesses: CWE-835
- Assigned by: openssl

## Description

Internally libssl in OpenSSL calls X509_verify_cert() on the client side to verify a certificate supplied by a server. That function may return a negative return value to indicate an internal error (for example out of memory). Such a negative return value is mishandled by OpenSSL and will cause an IO function (such as SSL_connect() or SSL_do_handshake()) to not indicate success and a subsequent call to SSL_get_error() to return the value SSL_ERROR_WANT_RETRY_VERIFY. This return value is only supposed to be returned by OpenSSL if the application has previously called SSL_CTX_set_cert_verify_callback(). Since most applications do not do this the SSL_ERROR_WANT_RETRY_VERIFY return value from SSL_get_error() will be totally unexpected and applications may not behave correctly as a result. The exact behaviour will depend on the application but it could result in crashes, infinite loops or other similar incorrect responses. This issue is made more serious in combination with a separate bug in OpenSSL 3.0 that will cause X509_verify_cert() to indicate an internal error when processing a certificate chain. This will occur where a certificate does not include the Subject Alternative Name extension but where a Certificate Authority has enforced name constraints. This issue can occur even with valid chains. By combining the two issues an attacker could induce incorrect, application dependent behaviour. Fixed in OpenSSL 3.0.1 (Affected 3.0.0).

(As written by CVE List.)

## Affected

- OpenSSL OpenSSL: Fixed in OpenSSL 3.0.1 (Affected 3.0.0); before 1.0.2; 1.1.0; 3.0.0
- openssl-src (crates.io): from 300.0.0 before 300.0.4
- netapp cloud_backup: no versions given
- netapp e-series_performance_analyzer: no versions given
- netapp ontap_select_deploy_administration_utility: no versions given
- netapp snapcenter: no versions given
- netapp a250_firmware: no versions given
- netapp 500f_firmware: no versions given
- netapp h500s_firmware: no versions given
- netapp h700s_firmware: no versions given
- netapp h300e_firmware: no versions given
- netapp h500e_firmware: no versions given
- netapp h700e_firmware: no versions given
- netapp h410s_firmware: no versions given
- netapp h410c_firmware: no versions given
- netapp h300s_firmware: no versions given
- nodejs node.js: from 17.0.0 before 17.3.0
- node (Bitnami): from 17.0.0 before 17.3.0
- node-min (Bitnami): from 17.0.0 before 17.3.0

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`
- Bitnami Vulnerability Database: rating High

## References

- <https://www.openssl.org/news/secadv/20211214.txt> (advisory, vendor-advisory, web)
- <https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=758754966791c537ea95241438454aa86f91f256> (web)
- <https://security.netapp.com/advisory/ntap-20211229-0003/> (advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-4044> (advisory, web)
- <https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=758754966791c537ea95241438454aa86f91f256> (web)
- <https://rustsec.org/advisories/RUSTSEC-2021-0129.html> (advisory, web)
- <https://security.netapp.com/advisory/ntap-20211229-0003> (web)
- <https://crates.io/crates/openssl-src> (package)

## Sources

- CVE List: [CVE-2021-4044](https://www.cve.org/CVERecord?id=CVE-2021-4044), CVE Terms of Use, modified 2024-09-17
- GitHub Advisory Database: [GHSA-mmjf-f5jw-w72q](https://github.com/advisories/GHSA-mmjf-f5jw-w72q), CC-BY-4.0, modified 2024-12-16
- RustSec Advisory Database: [RUSTSEC-2021-0129](https://rustsec.org/advisories/RUSTSEC-2021-0129.html), CC0-1.0, modified 2024-12-16
- NVD: [CVE-2021-4044](https://nvd.nist.gov/vuln/detail/CVE-2021-4044), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-NODE-2021-4044](https://osv.dev/vulnerability/BIT-NODE-2021-4044), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-NODE-MIN-2021-4044](https://osv.dev/vulnerability/BIT-NODE-MIN-2021-4044), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-4044 · Whole record: https://cve.day/CVE-2021-4044.json · Rebuilt by cve.day 2026-11-25T22:58:05.980Z
