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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 50.10% (percentile 99, 2026-11-26)
- **CWE:** CWE-835
- **Aliases:** BIT-node-2021-4044, BIT-node-min-2021-4044, GHSA-mmjf-f5jw-w72q, RUSTSEC-2021-0129
- **Published:** 2021-12-14T12:00:00.000Z
- **Modified:** 2026-06-17T04:18:56.683Z

## Who should check

- Projects that depend on crates.io package openssl-src (\>= 300.0.0, \< 300.0.4)
- Anyone running OpenSSL Fixed in OpenSSL 3.0.1 (Affected 3.0.0)

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

## Affected and fixed versions

- crates.io `openssl-src`: affected \>= 300.0.0, \< 300.0.4; fixed 300.0.4 (osv)
- OpenSSL: Fixed in OpenSSL 3.0.1 (Affected 3.0.0) (cvelist)

## Mitigation

- Upgrade openssl-src to 300.0.4 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-4044. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-4044.md
Affected: openssl-src >= 300.0.0, < 300.0.4
Fixed in: 300.0.4

Steps:
1. Search this machine and project for openssl-src (crates.io), OpenSSL: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-4044 being exploited?

There is no confirmed exploitation: CVE-2021-4044 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 50.10% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-4044?

High: CVSS 7.5 (v3.1, scored by NVD). Remote, no login needed.

### Which versions are affected by CVE-2021-4044?

openssl-src \>= 300.0.0, \< 300.0.4.

### Is there a fix for CVE-2021-4044?

Yes. Fixed in 300.0.4. Upgrade openssl-src to 300.0.4 or later.

### How do I check if I'm affected by CVE-2021-4044?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-4044>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-mmjf-f5jw-w72q> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/RUSTSEC-2021-0129> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2021-4044> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-4044>
