CVE-2023-23919: Multiple OpenSSL error handling issues in nodejs crypto library
Node.js did not clear the OpenSSL error stack after operations that may set it, which could cause false positive errors in later cryptographic operations on the same thread. This could be used to cause a denial of service.
Originally disclosed on HackerOne
- Triaged in 4 days
- Fixed in 10 days
- Paid in 10 days
- Disclosed after 40 days
Summary by the program
Node.js OpenSSL error handling issues in nodejs crypto library (Medium) (CVE-2023-23919)
In some cases Node.js did does not clear the OpenSSL error stack after operations that may set it. This may lead to false positive errors during subsequent cryptographic operations that happen to be on the same thread. This in turn could be used to cause a denial of service.
Thank you, to Morgan Jones and Ryan Dorrity from Viasat Secure Mobile for reporting and discovering this vulnerability and thank you Rafael Gonzaga for fixing it.
Impacts:
Versions of < 19.2.0 and lower of the 19.x release line and all versions of the 18.x, and 16.x release lines.
Full Security Advisory: https://nodejs.org/en/blog/vulnerability/february-2023-security-releases/
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
This could be used to cause a denial of service.
What the attacker needed
None
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When a program uses encryption, it sometimes records errors in a shared list. Node.js forgot to empty that list after some operations. Later, a normal operation could see an old error and fail, which an attacker could use to make the service stop working.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.