CVE-2022-46285 Denial of service in libXpm
An attacker can cause a denial of service in applications using libXpm by providing a file with an unclosed comment, triggering an infinite loop.
- 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-46285?
CVE-2022-46285 is a high-severity denial of service vulnerability in libXpm, published on 7 Feb 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
A flaw was found in libXpm. This issue occurs when parsing a file with a comment not closed; the end-of-file condition will not be detected, leading to an infinite loop and resulting in a Denial of Service in the application linked to the library.
Weakness: CWE-835
Which versions are affected by CVE-2022-46285?
It affects 1 product.
Products include X.org Libxpm.
How do I fix CVE-2022-46285?
Apply the vendor's patch.
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-46285 being exploited?
There is no known exploitation of CVE-2022-46285 in the wild and no public exploit code.
Other vulnerabilities in libXpm
Sources
Also known as ALPINE-CVE-2022-46285, AZL-13249, DEBIAN-CVE-2022-46285, GHSA-x5vr-48jx-h8wp, JLSEC-2026-284, UBUNTU-CVE-2022-46285 and 1 more.