# CVE-2021-4044: Invalid handling of X509\_verify\_cert() internal errors in libssl

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (NVD); no exploitation reported by the 5 checked sources; EPSS 50% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2021-12-14 · Modified: 2024-09-17
- Aliases: ALPINE-CVE-2021-4044, UBUNTU-CVE-2021-4044, GHSA-mmjf-f5jw-w72q, BIT-node-2021-4044, BIT-node-min-2021-4044, RUSTSEC-2021-0129
- Record: https://cvemate.com/vulnerability/CVE-2021-4044 · JSON: https://cvemate.com/vulnerability/CVE-2021-4044/json

## Description

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

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 50.099%, percentile 98.931%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine openssl (Alpine Linux): \< 3.0.1-r0
- alpine openssl3 (Alpine Linux): \< 3.0.2-r0 \| \< 3.0.1-r0
- Crates.Io openssl-src (Crates.Io): ≥ 300.0.0, \< 300.0.4
- ubuntu openssl (Ubuntu): \< 3.0.1-0ubuntu1
- netapp 500f\_firmware: na
- netapp a250\_firmware: na
- netapp cloud\_backup: na
- netapp e-series\_performance\_analyzer: na
- netapp h300e\_firmware: na
- netapp h300s\_firmware: na
- netapp h410c\_firmware: na
- netapp h410s\_firmware: na
- netapp h500e\_firmware: na
- netapp h500s\_firmware: na
- netapp h700e\_firmware: na
- netapp h700s\_firmware: na
- netapp ontap\_select\_deploy\_administration\_utility: na
- netapp snapcenter: na
- nodejs node.js: ≥ 17.0.0, \< 17.3.0
- openssl openssl: Fixed in OpenSSL 3.0.1 (Affected 3.0.0) \| \< 1.0.2 \| 1.1.0 \| 3.0.0

## References

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

---

Data as of 2026-12-05T02:49:42.705Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
