CVE-2022-25851 Denial of Service (DoS)
An attacker can cause a denial of service by providing specific input that triggers an infinite loop in the jpeg-js library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-25851?
CVE-2022-25851 is a high-severity denial of service vulnerability in jpeg-js, published on 10 Jun 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The package jpeg-js before 0.4.4 are vulnerable to Denial of Service (DoS) where a particular piece of input will cause to enter an infinite loop and never return.
Weakness: CWE-835
Which versions are affected by CVE-2022-25851?
2 open source packages ship an affected version, including jpeg-js. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
jpeg-js npm | All versions | 0.4.4 |
jpeg-js npm | All versions | 0.4.4 |
Products include Jpeg-Js Project Jpeg-Js.
How do I fix CVE-2022-25851?
Upgrade jpeg-js to 0.4.4 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-2022-25851 being exploited?
There is no known exploitation of CVE-2022-25851 in the wild and no public exploit code.
Other vulnerabilities in jpeg-js
Sources
Also known as GHSA-xvf7-4v9q-58w6.