CVE-2023-25653 Improper calculations in ECC implementation can trigger a Denial-of-Service (DoS)
Attackers can cause a denial of service via infinite loops in ECC operations when using the non-default fallback crypto backend.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-25653?
CVE-2023-25653 is a high-severity denial of service vulnerability in cisco node-jose, published on 16 Feb 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
node-jose is a JavaScript implementation of the JSON Object Signing and Encryption (JOSE) for web browsers and node.js-based servers. Prior to version 2.2.0, when using the non-default "fallback" crypto back-end, ECC operations in `node-jose` can trigger a Denial-of-Service (DoS) condition, due to a possible infinite loop in an internal calculation. For some ECC operations, this condition is triggered randomly; for others, it can be triggered by malicious input. The issue has been patched in version 2.2.0. Since this issue is only present in the "fallback" crypto implementation, it can be avoided by ensuring that either WebCrypto or the Node `crypto` module is available in the JS environment where `node-jose` is being run.
Weakness: CWE-835
Which versions are affected by CVE-2023-25653?
2 open source packages ship an affected version, including node-jose. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
node-jose npm | All versions | 2.2.0 |
node-jose npm | All versions | 2.2.0 |
Products include Cisco Node-Jose.
How do I fix CVE-2023-25653?
Upgrade node-jose to 2.2.0 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2023-25653 being exploited?
There is no known exploitation of CVE-2023-25653 in the wild and no public exploit code.
Other vulnerabilities in cisco node-jose
Sources
Also known as GHSA-5h4j-qrvg-9xhw.