CVE-2021-23840: Integer overflow in CipherUpdate
Calls to EVPCipherUpdate, EVPEncryptUpdate and EVPDecryptUpdate may overflow the output length argument in some cases where the input length is close to the maximum permissable length for an integer on the platform. In such cases the return value from the function call will be 1 (indicating success), but the output length value will be negative. This could cause applications to behave incorrectly or crash. OpenSSL versions 1.1.1i and below are affected by this issue. Users of these versions should upgrade to OpenSSL 1.1.1j. OpenSSL versions 1.0.2x and below are affected by this issue. However OpenSSL 1.0.2 is out of support and no longer receiving public updates. Premium support customers of OpenSSL 1.0.2 should upgrade to 1.0.2y. Other users should upgrade to 1.1.1j. Fixed in OpenSSL 1.1.1j (Affected 1.1.1-1.1.1i). Fixed in OpenSSL 1.0.2y (Affected 1.0.2-1.0.2x).
Other sources
Calls to EVPCipherUpdate, EVPEncryptUpdate and EVPDecryptUpdate may overflow the output length argument in some cases where the input length is close to the maximum permissible length for an integer on the platform. In such cases the return value from the function call will be 1 (indicating success), but the output length value will be negative. This could cause applications to behave incorrectly or crash.
OpenSSL - Integer overflow in CipherUpdate - This is a vulnerability in OpenSSL which may be exploited through Node.js. You can read more about it in https://www.openssl.org/news/secadv/20210216.txt
— Node.Js
OpenSSL is vulnerable to a denial of service, caused by an integer overflow in CipherUpdate. By sending an overly long argument, an attacker could exploit this vulnerability to cause the application to crash.
— IBM
This is a vulnerability in OpenSSL which may be exploited through Node.js. You can read more about it in https://www.openssl.org/news/secadv/20210216.txt
All versions of the 15.x, 14.x, 12.x and 10.x releases lines
— Node.Js
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/jbcs-httpd24-aprto a version that resolves this vulnerability.Fixed in 0:1.6.3-107.el8 - Upgrade
Upgrade
redhat/jbcs-httpd24-apr-utilto a version that resolves this vulnerability.Fixed in 0:1.6.1-84.el8 - Upgrade
Upgrade
redhat/jbcs-httpd24-curlto a version that resolves this vulnerability.Fixed in 0:7.78.0-2.el8 - Upgrade
Upgrade
redhat/jbcs-httpd24-httpdto a version that resolves this vulnerability.Fixed in 0:2.4.37-78.el8 - Upgrade
Upgrade
redhat/jbcs-httpd24-nghttp2to a version that resolves this vulnerability.Fixed in 0:1.39.2-39.el8 - Upgrade
Upgrade
redhat/jbcs-httpd24-opensslto a version that resolves this vulnerability.Fixed in 1:1.1.1g-8.el8 - Upgrade
Upgrade
redhat/jbcs-httpd24-openssl-chilto a version that resolves this vulnerability.Fixed in 0:1.0.0-7.el8 - Upgrade
Upgrade
redhat/jbcs-httpd24-openssl-pkcs11to a version that resolves this vulnerability.Fixed in 0:0.4.10-22.el8 - Upgrade
Upgrade
redhat/jbcs-httpd24-aprto a version that resolves this vulnerability.Fixed in 0:1.6.3-107.jbcs.el7 - Upgrade
Upgrade
redhat/jbcs-httpd24-apr-utilto a version that resolves this vulnerability.Fixed in 0:1.6.1-84.jbcs.el7 - Upgrade
Upgrade
redhat/jbcs-httpd24-curlto a version that resolves this vulnerability.Fixed in 0:7.78.0-2.jbcs.el7 - Upgrade
Upgrade
redhat/jbcs-httpd24-httpdto a version that resolves this vulnerability.Fixed in 0:2.4.37-78.jbcs.el7 - Upgrade
Upgrade
redhat/jbcs-httpd24-nghttp2to a version that resolves this vulnerability.Fixed in 0:1.39.2-39.jbcs.el7 - Upgrade
Upgrade
redhat/jbcs-httpd24-opensslto a version that resolves this vulnerability.Fixed in 1:1.1.1g-8.jbcs.el7 - Upgrade
Upgrade
redhat/jbcs-httpd24-openssl-chilto a version that resolves this vulnerability.Fixed in 0:1.0.0-7.jbcs.el7 - Upgrade
Upgrade
redhat/jbcs-httpd24-openssl-pkcs11to a version that resolves this vulnerability.Fixed in 0:0.4.10-22.jbcs.el7 - Upgrade
Upgrade
redhat/opensslto a version that resolves this vulnerability.Fixed in 1:1.0.2k-22.el7_9 - Upgrade
Upgrade
redhat/edk2to a version that resolves this vulnerability.Fixed in 0:20210527gite1999b264f1f-3.el8 - Upgrade
Upgrade
redhat/opensslto a version that resolves this vulnerability.Fixed in 1:1.1.1k-4.el8 - Upgrade
Upgrade
redhat/jws5-tomcatto a version that resolves this vulnerability.Fixed in 0:9.0.50-3.redhat_00004.1.el7 - Upgrade
Upgrade
redhat/jws5-tomcat-nativeto a version that resolves this vulnerability.Fixed in 0:1.2.30-3.redhat_3.el7 - Upgrade
Upgrade
redhat/jws5-tomcat-vaultto a version that resolves this vulnerability.Fixed in 0:1.1.8-4.Final_redhat_00004.1.el7 - Upgrade
Upgrade
redhat/jws5-tomcatto a version that resolves this vulnerability.Fixed in 0:9.0.50-3.redhat_00004.1.el8 - Upgrade
Upgrade
redhat/jws5-tomcat-nativeto a version that resolves this vulnerability.Fixed in 0:1.2.30-3.redhat_3.el8 - Upgrade
Upgrade
redhat/jws5-tomcat-vaultto a version that resolves this vulnerability.Fixed in 0:1.1.8-4.Final_redhat_00004.1.el8 - Upgrade
Upgrade
redhat/opensslto a version that resolves this vulnerability.Fixed in 1.1.1 - Upgrade
Upgrade
redhat/opensslto a version that resolves this vulnerability.Fixed in 1.0.2 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 10.24.0Fixed in 12.21.0Fixed in 14.16.0Fixed in 15.10.0 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 10.24.0 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 12.21.0 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 14.16.0 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 15.10.0 - Upgrade
Upgrade
debian/opensslto a version that resolves this vulnerability.Fixed in 3.0.20-1~deb12u2Fixed in 3.0.22-1~deb12u2Fixed in 3.5.7-1~deb13u2Fixed in 3.5.7-1~deb13u3Fixed in 3.6.5-1 - Upgrade
Upgrade
alpine/opensslto a version that resolves this vulnerability.Fixed in 1.1.1j-r0 - Upgrade
Upgrade
alpine/openssl1.1-compatto a version that resolves this vulnerability.Fixed in 1.1.1j-r0 - Upgrade
Upgrade
alpine/openssl3to a version that resolves this vulnerability.Fixed in 1.1.1j-r0 - Upgrade
Upgrade
ubuntu/opensslto a version that resolves this vulnerability.Fixed in 1.0.1f-1ubuntu2.27+esm10 - Upgrade
Upgrade
ubuntu/opensslto a version that resolves this vulnerability.Fixed in 1.0.2g-1ubuntu4.19 - Upgrade
Upgrade
ubuntu/opensslto a version that resolves this vulnerability.Fixed in 1.0.2g-1ubuntu4.fips.4.19.3 - Upgrade
Upgrade
ubuntu/opensslto a version that resolves this vulnerability.Fixed in 1.1.1-1ubuntu2.1~18.04.8 - Upgrade
Upgrade
ubuntu/openssl1.0to a version that resolves this vulnerability.Fixed in 1.0.2n-1ubuntu5.6 - Upgrade
Upgrade
ubuntu/opensslto a version that resolves this vulnerability.Fixed in 1.1.1-1ubuntu2.fips.2.1~18.04.9.1 - Upgrade
Upgrade
ubuntu/edk2to a version that resolves this vulnerability.Fixed in 0~20191122.bd85bf54-2ubuntu3.3 - Upgrade
Upgrade
ubuntu/opensslto a version that resolves this vulnerability.Fixed in 1.1.1f-1ubuntu2.2 - Upgrade
Upgrade
ubuntu/opensslto a version that resolves this vulnerability.Fixed in 1.1.1f-1ubuntu2.fips.7.2 - Upgrade
Upgrade
ubuntu/opensslto a version that resolves this vulnerability.Fixed in 1.1.1f-1ubuntu2.fips.2.8 - Upgrade
Upgrade
OpenSSLto a version that resolves this vulnerability.Fixed in 1.1.1j - Upgrade
Upgrade
OpenSSLto a version that resolves this vulnerability.Fixed in 1.0.2y
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is the vulnerability ID for this OpenSSL vulnerability?
The vulnerability ID for this OpenSSL vulnerability is CVE-2021-23840.
What is the severity of CVE-2021-23840?
CVE-2021-23840 has a severity level of high.
What is the impact of CVE-2021-23840?
CVE-2021-23840 can cause a denial of service (DoS) due to an integer overflow in CipherUpdate.
How can I fix CVE-2021-23840?
To fix CVE-2021-23840, update OpenSSL to the recommended version provided by the vendor.
Where can I find more information about CVE-2021-23840?
You can find more information about CVE-2021-23840 on the IBM X-Force Exchange website and the OpenSSL website.