CVE-2022-31782 Memory corruption in n/a
A heap-based buffer overflow in FreeType demo programs allows attackers to execute arbitrary code or cause denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2022-31782?
CVE-2022-31782 is a high-severity memory corruption vulnerability in n/a, published on 27 May 2022. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
ftbench.c in FreeType Demo Programs through 2.12.1 has a heap-based buffer overflow.
Weakness: CWE-787
Which versions are affected by CVE-2022-31782?
It affects 1 product.
Products include Freedesktop Freetype Demo Programs.
How do I fix CVE-2022-31782?
Upgrade to a fixed version.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2022-31782 being exploited?
There is no known exploitation of CVE-2022-31782 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2022-31782, GHSA-2rjg-8x42-r2x7, MGASA-2022-0297, OESA-2025-1956, OESA-2025-1957, UBUNTU-CVE-2022-31782.