CVE-2021-23840: Integer overflow in CipherUpdate

Published Feb 16, 2021
·
Updated

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

153 affected componentsFixes available
redhat/jbcs-httpd24-apr<0:1.6.3-107.el8
0:1.6.3-107.el8
redhat/jbcs-httpd24-apr-util<0:1.6.1-84.el8
0:1.6.1-84.el8
redhat/jbcs-httpd24-curl<0:7.78.0-2.el8
0:7.78.0-2.el8
redhat/jbcs-httpd24-httpd<0:2.4.37-78.el8
0:2.4.37-78.el8
redhat/jbcs-httpd24-nghttp2<0:1.39.2-39.el8
0:1.39.2-39.el8
redhat/jbcs-httpd24-openssl<1:1.1.1g-8.el8
1:1.1.1g-8.el8
redhat/jbcs-httpd24-openssl-chil<0:1.0.0-7.el8
0:1.0.0-7.el8
redhat/jbcs-httpd24-openssl-pkcs11<0:0.4.10-22.el8
0:0.4.10-22.el8
redhat/jbcs-httpd24-apr<0:1.6.3-107.jbcs.el7
0:1.6.3-107.jbcs.el7
redhat/jbcs-httpd24-apr-util<0:1.6.1-84.jbcs.el7
0:1.6.1-84.jbcs.el7
redhat/jbcs-httpd24-curl<0:7.78.0-2.jbcs.el7
0:7.78.0-2.jbcs.el7
redhat/jbcs-httpd24-httpd<0:2.4.37-78.jbcs.el7
0:2.4.37-78.jbcs.el7
redhat/jbcs-httpd24-nghttp2<0:1.39.2-39.jbcs.el7
0:1.39.2-39.jbcs.el7
redhat/jbcs-httpd24-openssl<1:1.1.1g-8.jbcs.el7
1:1.1.1g-8.jbcs.el7
redhat/jbcs-httpd24-openssl-chil<0:1.0.0-7.jbcs.el7
0:1.0.0-7.jbcs.el7
redhat/jbcs-httpd24-openssl-pkcs11<0:0.4.10-22.jbcs.el7
0:0.4.10-22.jbcs.el7
redhat/openssl<1:1.0.2k-22.el7_9
1:1.0.2k-22.el7_9
redhat/edk2<0:20210527gite1999b264f1f-3.el8
0:20210527gite1999b264f1f-3.el8
redhat/openssl<1:1.1.1k-4.el8
1:1.1.1k-4.el8
redhat/jws5-tomcat<0:9.0.50-3.redhat_00004.1.el7
0:9.0.50-3.redhat_00004.1.el7
redhat/jws5-tomcat-native<0:1.2.30-3.redhat_3.el7
0:1.2.30-3.redhat_3.el7
redhat/jws5-tomcat-vault<0:1.1.8-4.Final_redhat_00004.1.el7
0:1.1.8-4.Final_redhat_00004.1.el7
redhat/jws5-tomcat<0:9.0.50-3.redhat_00004.1.el8
0:9.0.50-3.redhat_00004.1.el8
redhat/jws5-tomcat-native<0:1.2.30-3.redhat_3.el8
0:1.2.30-3.redhat_3.el8
redhat/jws5-tomcat-vault<0:1.1.8-4.Final_redhat_00004.1.el8
0:1.1.8-4.Final_redhat_00004.1.el8
IBM Security Verify Bridge<=All
OpenSSL OpenSSL>=1.0.2<1.0.2y
OpenSSL OpenSSL>=1.1.1<1.1.1j
Debian Debian Linux=10.0
Tenable Log Correlation Engine<6.0.8
Tenable Nessus Network Monitor=5.11.0
Tenable Nessus Network Monitor=5.11.1
Tenable Nessus Network Monitor=5.12.0
Tenable Nessus Network Monitor=5.12.1
Tenable Nessus Network Monitor=5.13.0
Oracle Business Intelligence=5.5.0.0.0
Oracle Business Intelligence=5.9.0.0.0
Oracle Business Intelligence=12.2.1.3.0
Oracle Business Intelligence=12.2.1.4.0
Oracle Communications Cloud Native Core Policy=1.15.0
Oracle Enterprise Manager For Storage Management=13.4.0.0
Oracle Enterprise Manager Ops Center=12.4.0.0
Oracle GraalVM=19.3.5
Oracle GraalVM=20.3.1.2
Oracle GraalVM=21.0.0.2
Oracle JD Edwards EnterpriseOne Tools<9.2.6.0
Oracle Jd Edwards World Security=a9.4
Oracle MySQL Server<5.7.33
Oracle MySQL Server>=8.0.15<8.0.23
Oracle Nosql Database<20.3
McAfee ePolicy Orchestrator<5.10.0
McAfee ePolicy Orchestrator=5.10.0
McAfee ePolicy Orchestrator=5.10.0-update_1
McAfee ePolicy Orchestrator=5.10.0-update_10
McAfee ePolicy Orchestrator=5.10.0-update_2
McAfee ePolicy Orchestrator=5.10.0-update_3
McAfee ePolicy Orchestrator=5.10.0-update_4
McAfee ePolicy Orchestrator=5.10.0-update_5
McAfee ePolicy Orchestrator=5.10.0-update_6
McAfee ePolicy Orchestrator=5.10.0-update_7
McAfee ePolicy Orchestrator=5.10.0-update_8
McAfee ePolicy Orchestrator=5.10.0-update_9
Fujitsu M10-1 Firmware<xcp2410
Fujitsu M10-1
Fujitsu M10-4 Firmware<xcp2410
Fujitsu M10-4
Fujitsu M10-4s Firmware<xcp2410
Fujitsu M10-4s
Fujitsu M12-1 Firmware<xcp2410
Fujitsu M12-1
Fujitsu M12-2 Firmware<xcp2410
Fujitsu M12-2
Fujitsu M12-2s Firmware<xcp2410
Fujitsu M12-2s
Fujitsu M10-1 Firmware<xcp3110
Fujitsu M10-4 Firmware<xcp3110
Fujitsu M10-4s Firmware<xcp3110
Fujitsu M12-1 Firmware<xcp3110
Fujitsu M12-2 Firmware<xcp3110
Fujitsu M12-2s Firmware<xcp3110
Nodejs Node.js>=10.0.0<=10.12.0
Nodejs Node.js>=10.13.0<10.24.0
Nodejs Node.js>=12.0.0<=12.12.0
Nodejs Node.js>=12.13.0<12.21.0
Nodejs Node.js>=14.0.0<=14.14.0
Nodejs Node.js>=15.0.0<15.10.0
Nodejs Node.js=14.15.0
All of the following
Fujitsu M10-1 Firmware<xcp2410
Fujitsu M10-1
All of the following
Fujitsu M10-4 Firmware<xcp2410
Fujitsu M10-4
All of the following
Fujitsu M10-4s Firmware<xcp2410
Fujitsu M10-4s
All of the following
Fujitsu M12-1 Firmware<xcp2410
Fujitsu M12-1
All of the following
Fujitsu M12-2 Firmware<xcp2410
Fujitsu M12-2
All of the following
Fujitsu M12-2s Firmware<xcp2410
Fujitsu M12-2s
All of the following
Fujitsu M10-1 Firmware<xcp3110
Fujitsu M10-1
All of the following
Fujitsu M10-4 Firmware<xcp3110
Fujitsu M10-4
All of the following
Fujitsu M10-4s Firmware<xcp3110
Fujitsu M10-4s
All of the following
Fujitsu M12-1 Firmware<xcp3110
Fujitsu M12-1
All of the following
Fujitsu M12-2 Firmware<xcp3110
Fujitsu M12-2
All of the following
Fujitsu M12-2s Firmware<xcp3110
Fujitsu M12-2s
redhat/openssl<1.1.1
1.1.1
redhat/openssl<1.0.2
1.0.2
Node.js Node.js>=10.0.0<10.24.0, >=12.0.0<12.21.0, >=14.0.0<14.16.0, >=15.0.0<15.10.0
10.24.012.21.014.16.015.10.0
Node.js Node.js>=10.0.0<10.24.0
10.24.0
Node.js Node.js>=12.0.0<12.21.0
12.21.0
Node.js Node.js>=14.0.0<14.16.0
14.16.0
Node.js Node.js>=15.0.0<15.10.0
15.10.0
debian/openssl
3.0.20-1~deb12u23.0.22-1~deb12u23.5.7-1~deb13u23.5.7-1~deb13u33.6.5-1
alpine/openssl>=1.0.2<1.1.1j-r0
1.1.1j-r0
alpine/openssl>=1.0.2<1.1.1j-r0
1.1.1j-r0
alpine/openssl>=1.0.2<1.1.1j-r0
1.1.1j-r0
alpine/openssl>=1.0.2<1.1.1j-r0
1.1.1j-r0
alpine/openssl>=1.0.2<1.1.1j-r0
1.1.1j-r0
alpine/openssl>=1.0.2<1.1.1j-r0
1.1.1j-r0
alpine/openssl>=1.0.2<1.1.1j-r0
1.1.1j-r0
alpine/openssl>=1.0.2<1.1.1j-r0
1.1.1j-r0
alpine/openssl>=1.0.2<1.1.1j-r0
1.1.1j-r0
alpine/openssl>=1.0.2<1.1.1j-r0
1.1.1j-r0
alpine/openssl>=1.0.2<1.1.1j-r0
1.1.1j-r0
alpine/openssl>=1.0.2<1.1.1j-r0
1.1.1j-r0
alpine/openssl>=1.0.2<1.1.1j-r0
1.1.1j-r0
alpine/openssl>=1.0.2<1.1.1j-r0
1.1.1j-r0
alpine/openssl>=1.0.2<1.1.1j-r0
1.1.1j-r0
alpine/openssl>=1.0.2<1.1.1j-r0
1.1.1j-r0
alpine/openssl1.1-compat<1.1.1j-r0
1.1.1j-r0
alpine/openssl1.1-compat<1.1.1j-r0
1.1.1j-r0
alpine/openssl3<1.1.1j-r0
1.1.1j-r0
alpine/openssl3<1.1.1j-r0
1.1.1j-r0
ubuntu/openssl<1.0.1f-1ubuntu2.27+esm10
1.0.1f-1ubuntu2.27+esm10
ubuntu/openssl<1.0.2g-1ubuntu4.19
1.0.2g-1ubuntu4.19
ubuntu/edk2*
ubuntu/openssl<1.0.2g-1ubuntu4.fips.4.19.3
1.0.2g-1ubuntu4.fips.4.19.3
ubuntu/openssl*
ubuntu/openssl<1.1.1-1ubuntu2.1~18.04.8
1.1.1-1ubuntu2.1~18.04.8
ubuntu/openssl1.0<1.0.2n-1ubuntu5.6
1.0.2n-1ubuntu5.6
ubuntu/edk2*
ubuntu/openssl<1.1.1-1ubuntu2.fips.2.1~18.04.9.1
1.1.1-1ubuntu2.fips.2.1~18.04.9.1
ubuntu/openssl*
ubuntu/edk2<0~20191122.bd85bf54-2ubuntu3.3
0~20191122.bd85bf54-2ubuntu3.3
ubuntu/openssl<1.1.1f-1ubuntu2.2
1.1.1f-1ubuntu2.2
ubuntu/openssl<1.1.1f-1ubuntu2.fips.7.2
1.1.1f-1ubuntu2.fips.7.2
ubuntu/openssl<1.1.1f-1ubuntu2.fips.2.8
1.1.1f-1ubuntu2.fips.2.8

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/jbcs-httpd24-apr to a version that resolves this vulnerability.

    Fixed in 0:1.6.3-107.el8
  2. Upgrade

    Upgrade redhat/jbcs-httpd24-apr-util to a version that resolves this vulnerability.

    Fixed in 0:1.6.1-84.el8
  3. Upgrade

    Upgrade redhat/jbcs-httpd24-curl to a version that resolves this vulnerability.

    Fixed in 0:7.78.0-2.el8
  4. Upgrade

    Upgrade redhat/jbcs-httpd24-httpd to a version that resolves this vulnerability.

    Fixed in 0:2.4.37-78.el8
  5. Upgrade

    Upgrade redhat/jbcs-httpd24-nghttp2 to a version that resolves this vulnerability.

    Fixed in 0:1.39.2-39.el8
  6. Upgrade

    Upgrade redhat/jbcs-httpd24-openssl to a version that resolves this vulnerability.

    Fixed in 1:1.1.1g-8.el8
  7. Upgrade

    Upgrade redhat/jbcs-httpd24-openssl-chil to a version that resolves this vulnerability.

    Fixed in 0:1.0.0-7.el8
  8. Upgrade

    Upgrade redhat/jbcs-httpd24-openssl-pkcs11 to a version that resolves this vulnerability.

    Fixed in 0:0.4.10-22.el8
  9. Upgrade

    Upgrade redhat/jbcs-httpd24-apr to a version that resolves this vulnerability.

    Fixed in 0:1.6.3-107.jbcs.el7
  10. Upgrade

    Upgrade redhat/jbcs-httpd24-apr-util to a version that resolves this vulnerability.

    Fixed in 0:1.6.1-84.jbcs.el7
  11. Upgrade

    Upgrade redhat/jbcs-httpd24-curl to a version that resolves this vulnerability.

    Fixed in 0:7.78.0-2.jbcs.el7
  12. Upgrade

    Upgrade redhat/jbcs-httpd24-httpd to a version that resolves this vulnerability.

    Fixed in 0:2.4.37-78.jbcs.el7
  13. Upgrade

    Upgrade redhat/jbcs-httpd24-nghttp2 to a version that resolves this vulnerability.

    Fixed in 0:1.39.2-39.jbcs.el7
  14. Upgrade

    Upgrade redhat/jbcs-httpd24-openssl to a version that resolves this vulnerability.

    Fixed in 1:1.1.1g-8.jbcs.el7
  15. Upgrade

    Upgrade redhat/jbcs-httpd24-openssl-chil to a version that resolves this vulnerability.

    Fixed in 0:1.0.0-7.jbcs.el7
  16. Upgrade

    Upgrade redhat/jbcs-httpd24-openssl-pkcs11 to a version that resolves this vulnerability.

    Fixed in 0:0.4.10-22.jbcs.el7
  17. Upgrade

    Upgrade redhat/openssl to a version that resolves this vulnerability.

    Fixed in 1:1.0.2k-22.el7_9
  18. Upgrade

    Upgrade redhat/edk2 to a version that resolves this vulnerability.

    Fixed in 0:20210527gite1999b264f1f-3.el8
  19. Upgrade

    Upgrade redhat/openssl to a version that resolves this vulnerability.

    Fixed in 1:1.1.1k-4.el8
  20. Upgrade

    Upgrade redhat/jws5-tomcat to a version that resolves this vulnerability.

    Fixed in 0:9.0.50-3.redhat_00004.1.el7
  21. Upgrade

    Upgrade redhat/jws5-tomcat-native to a version that resolves this vulnerability.

    Fixed in 0:1.2.30-3.redhat_3.el7
  22. Upgrade

    Upgrade redhat/jws5-tomcat-vault to a version that resolves this vulnerability.

    Fixed in 0:1.1.8-4.Final_redhat_00004.1.el7
  23. Upgrade

    Upgrade redhat/jws5-tomcat to a version that resolves this vulnerability.

    Fixed in 0:9.0.50-3.redhat_00004.1.el8
  24. Upgrade

    Upgrade redhat/jws5-tomcat-native to a version that resolves this vulnerability.

    Fixed in 0:1.2.30-3.redhat_3.el8
  25. Upgrade

    Upgrade redhat/jws5-tomcat-vault to a version that resolves this vulnerability.

    Fixed in 0:1.1.8-4.Final_redhat_00004.1.el8
  26. Upgrade

    Upgrade redhat/openssl to a version that resolves this vulnerability.

    Fixed in 1.1.1
  27. Upgrade

    Upgrade redhat/openssl to a version that resolves this vulnerability.

    Fixed in 1.0.2
  28. 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
  29. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 10.24.0
  30. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 12.21.0
  31. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 14.16.0
  32. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 15.10.0
  33. Upgrade

    Upgrade debian/openssl to 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
  34. Upgrade

    Upgrade alpine/openssl to a version that resolves this vulnerability.

    Fixed in 1.1.1j-r0
  35. Upgrade

    Upgrade alpine/openssl1.1-compat to a version that resolves this vulnerability.

    Fixed in 1.1.1j-r0
  36. Upgrade

    Upgrade alpine/openssl3 to a version that resolves this vulnerability.

    Fixed in 1.1.1j-r0
  37. Upgrade

    Upgrade ubuntu/openssl to a version that resolves this vulnerability.

    Fixed in 1.0.1f-1ubuntu2.27+esm10
  38. Upgrade

    Upgrade ubuntu/openssl to a version that resolves this vulnerability.

    Fixed in 1.0.2g-1ubuntu4.19
  39. Upgrade

    Upgrade ubuntu/openssl to a version that resolves this vulnerability.

    Fixed in 1.0.2g-1ubuntu4.fips.4.19.3
  40. Upgrade

    Upgrade ubuntu/openssl to a version that resolves this vulnerability.

    Fixed in 1.1.1-1ubuntu2.1~18.04.8
  41. Upgrade

    Upgrade ubuntu/openssl1.0 to a version that resolves this vulnerability.

    Fixed in 1.0.2n-1ubuntu5.6
  42. Upgrade

    Upgrade ubuntu/openssl to a version that resolves this vulnerability.

    Fixed in 1.1.1-1ubuntu2.fips.2.1~18.04.9.1
  43. Upgrade

    Upgrade ubuntu/edk2 to a version that resolves this vulnerability.

    Fixed in 0~20191122.bd85bf54-2ubuntu3.3
  44. Upgrade

    Upgrade ubuntu/openssl to a version that resolves this vulnerability.

    Fixed in 1.1.1f-1ubuntu2.2
  45. Upgrade

    Upgrade ubuntu/openssl to a version that resolves this vulnerability.

    Fixed in 1.1.1f-1ubuntu2.fips.7.2
  46. Upgrade

    Upgrade ubuntu/openssl to a version that resolves this vulnerability.

    Fixed in 1.1.1f-1ubuntu2.fips.2.8
  47. Upgrade

    Upgrade OpenSSL to a version that resolves this vulnerability.

    Fixed in 1.1.1j
  48. Upgrade

    Upgrade OpenSSL to a version that resolves this vulnerability.

    Fixed in 1.0.2y

Event History

Feb 16, 2021
CVE Published
12:00 AM
CVE Published
via MITRE·04:55 PM
Data Sourced
via MITRE·04:55 PM
DescriptionWeakness
Data Sourced
via OSV·05:15 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·05:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Feb 18, 2021
Data Sourced
via Red Hat·04:56 PM
DescriptionSeverityAffected Software
Feb 23, 2021
Data Sourced
via Node.js·12:58 PM
SeverityAffected Software
Data Sourced
via Node.js·01:30 PM
Description

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the vulnerability ID for this OpenSSL vulnerability?

The vulnerability ID for this OpenSSL vulnerability is CVE-2021-23840.

2

What is the severity of CVE-2021-23840?

CVE-2021-23840 has a severity level of high.

3

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.

4

How can I fix CVE-2021-23840?

To fix CVE-2021-23840, update OpenSSL to the recommended version provided by the vendor.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203