CVE-2021-23840: Calls to EVP_CipherUpdate, EVP_EncryptUpdate and EVP_DecryptUpdate may overflow the output length argument in some cases where the input length is close to the maximum permissable length for an...

High CVSS 7.5

CVE id
CVE-2021-23840
Published
Last modified

Affected packages

PackageAffected versionsFixed in
MySQL
Runtimes and servers
< 5.7.33
>= 8.0.15, < 8.0.23
5.7.33, 8.0.23
Node.js
Runtimes and servers
>= 10.0.0, <= 10.12.0
>= 10.13.0, < 10.24.0
>= 12.0.0, <= 12.12.0
>= 12.13.0, < 12.21.0
>= 14.0.0, <= 14.14.0
>= 15.0.0, < 15.10.0
10.24.0, 12.21.0, 15.10.0

How to fix it

MySQL (Runtimes and servers)

Upgrade MySQL to the fixed release of the line you run: 5.7.33, 8.0.23.

mysqld --version
  • Install the patched MySQL release of your series (the mysql image tag or the MySQL packages) and restart the server.

Node.js (Runtimes and servers)

Upgrade Node.js to the fixed release of the line you run: 10.24.0, 12.21.0, 15.10.0.

node --version
  • Install the patched Node.js release of your major line (nvm install, or the node image tag) everywhere the app runs and builds.

A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.

Details

Calls to EVPCipherUpdate, EVPEncryptUpdate and EVP_DecryptUpdate 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).

References

Am I affected?

Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.

or paste its content

Needed when you paste. package.json and pyproject.toml only have version ranges: use the lockfile next to them.

Only package names and versions are checked; the file itself is not kept. We use your email to send this report and nothing else unless you tick the box above. Privacy policy.

About this data

Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.