cve.bz

CVE-2021-4044 Infinite Loop

7.5 highEPSS 50%Fix available

High (7.5). EPSS 50% estimated probability of exploitation activity in the next 30 days. Fixed in openssl-src 300.0.4.

On this page
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).

Severity

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
EPSS
50% (unchanged from 50% a week ago; 50% 30 days ago) estimated probability of exploitation activity in the next 30 days; 99th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-835 Loop with Unreachable Exit Condition (Infinite Loop)
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-4044 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-4044?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-4044?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-4044 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
openssl:opensslbefore 1.0.2
openssl:openssl1.1.0
openssl:openssl3.0.0
nodejs:node.jsfrom 17.0.0 before 17.3.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-mmjf-f5jw-w72qcrates.ioopenssl-src>=300.0.0 <300.0.4300.0.4
RUSTSEC-2021-0129crates.ioopenssl-src>=300.0.0 <300.0.4300.0.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu22.04:LTSopenssl3.0.1-0ubuntu1UBUNTU-CVE-2021-4044
openSUSETumbleweedopenssl-33.0.1-1.1openSUSE-SU-2024:11797-1
Alpinev3.15openssl33.0.2-r0ALPINE-CVE-2021-4044
Alpinev3.16openssl33.0.1-r0ALPINE-CVE-2021-4044
Alpinev3.17, v3.18, v3.19 and 5 moreopenssl3.0.1-r0ALPINE-CVE-2021-4044

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This issue does not affect the versions of OpenSSL shipped with Red Hat products. OpenSSL 3.0.0 SSL/TLS clients are affected by this issue.

ProductPackageStateAdvisory
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/management-ingress-rhel8Not affected
Red Hat Enterprise Linux 6opensslNot affected
Red Hat Enterprise Linux 6openssl098eNot affected
Red Hat Enterprise Linux 7opensslNot affected
Red Hat Enterprise Linux 7openssl098eNot affected
Red Hat Enterprise Linux 8compat-openssl10Not affected
Red Hat Enterprise Linux 8opensslNot affected
Red Hat Enterprise Linux 9opensslNot affected
Red Hat JBoss Core ServicesopensslNot affected
Red Hat JBoss Web Server 3opensslNot affected
Red Hat JBoss Web Server 5opensslNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-4044.

References

Check your stackJSON