Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2021-4044

openssl: invalid handling of X509_verify_cert() internal errors in libssl

Overview

Published
14 Dec 2021
Modified
17 Jun 2026
High CVE
4 Registry packages
13 OS packages
6 Linux distributions
Yes Fix available

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

Source: OX vulnerability database

Severity

7.5 · HIGH

CVSS 3.1 base score, scored by NVD.

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Weakness: CWE-835

Affected packages · 4

Packages affected by CVE-2021-4044
EcosystemPackageVulnerableFixed in
Bitnami node >=17.0.0, <17.3.0 17.3.0
Bitnami node-min >=17.0.0, <17.3.0 17.3.0
Cargo (Rust) openssl-src >=300.0.0, <300.0.4 300.0.4
Conan (C/C++) openssl <1.0.2||=1.1.0||=3.0.0 1.0.2s3.0.1

Open a package to see all its vulnerabilities.

Operating systems · 9 fixes

Photon OS 1 release · 1 package

fixed 1
openssl
Photon OS fixes for CVE-2021-4044
ReleasePackageFixed in
4.0 openssl +4 3.0.0-2.ph4

alpine 4 releases · 1 package

fixed 4
openssl
alpine fixes for CVE-2021-4044
ReleasePackageFixed in
3.22 openssl 3.0.1-r0
3.23 openssl 3.0.1-r0
3.24 openssl 3.0.1-r0
edge openssl 3.0.1-r0

echo 1 release · 1 package

fixed 1
openssl-1-0-1g
echo fixes for CVE-2021-4044
ReleasePackageFixed in
openssl-1-0-1g 1.0.1g+e1

openSUSE 1 release · 1 package

fixed 1
libopenssl-3-devel
openSUSE fixes for CVE-2021-4044
ReleasePackageFixed inAdvisory
Tumbleweed libopenssl-3-devel +5 3.0.1-1.1 openSUSE-SU-2024:11797-1

root.io alpine 1 release · 1 package

fixed 1
rootio-openssl
root.io alpine fixes for CVE-2021-4044
ReleasePackageFixed in
3.23 rootio-openssl 3.0.1-r0

ubuntu 1 release · 1 package

fixed 1
openssl
ubuntu fixes for CVE-2021-4044
ReleasePackageFixed in
22.04 openssl 3.0.1-0ubuntu1

References

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.