Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2021-4044

HIGH 7.5EPSS 99%

Invalid handling of X509_verify_cert() internal errors in libssl

Also known as BIT-node-2021-4044, BIT-node-min-2021-4044, GHSA-mmjf-f5jw-w72q, RUSTSEC-2021-0129

Mitigation

  • Upgrade openssl-src to 300.0.4 or later.

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)

Vulnerability facts

Affected
openssl-src >= 300.0.0, < 300.0.4
Fixed in
300.0.4
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
7.5 (v3.1, NVD)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 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
EPSS
50.10% chance of exploitation in 30 days (percentile 99, 2026-11-26)
CWE
CWE-835
Published
Modified

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

Package / productAffectedFixedSource
crates.io openssl-src>= 300.0.0, < 300.0.4300.0.4osv
OpenSSLFixed in OpenSSL 3.0.1 (Affected 3.0.0)—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors