Vulnerability · Published May 4, 2022 · Assigned by mitre
CVE-2022-27470
High 7.8
In plain English
A high-severity security flaw in the sdl2_ttf package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 63% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)7.8High
Exploit odds (30 days)1.0%top 37.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
SDL_ttf v2.0.18 and below was discovered to contain an arbitrary memory write via the function TTF_RenderText_Solid(). This vulnerability is triggered via a crafted TTF file.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | sdl2_ttf | 2.20.0-r0 | ALPINE-CVE-2022-27470 |
| Alpine:v3.21 | sdl2_ttf | 2.20.0-r0 | ALPINE-CVE-2022-27470 |
| Alpine:v3.22 | sdl2_ttf | 2.20.0-r0 | ALPINE-CVE-2022-27470 |
| Alpine:v3.23 | sdl2_ttf | 2.20.0-r0 | ALPINE-CVE-2022-27470 |
| Alpine:v3.24 | sdl2_ttf | 2.20.0-r0 | ALPINE-CVE-2022-27470 |
| Debian:12 | libsdl2-ttf | 2.0.18+dfsg-3 | DEBIAN-CVE-2022-27470 |
| Debian:13 | libsdl2-ttf | 2.0.18+dfsg-3 | DEBIAN-CVE-2022-27470 |
| Debian:14 | libsdl2-ttf | 2.0.18+dfsg-3 | DEBIAN-CVE-2022-27470 |
| Ubuntu:22.04:LTS | libsdl2-ttf | no fix listed | UBUNTU-CVE-2022-27470 |
| Ubuntu:24.04:LTS | libsdl2-ttf | no fix listed | UBUNTU-CVE-2022-27470 |
| Ubuntu:25.10 | libsdl2-ttf | no fix listed | UBUNTU-CVE-2022-27470 |
| Ubuntu:26.04:LTS | libsdl2-ttf | no fix listed | UBUNTU-CVE-2022-27470 |
| Ubuntu:26.10 | libsdl2-ttf | no fix listed | UBUNTU-CVE-2022-27470 |
Affected products (as reported)
References
- https://github.com/libsdl-org/SDL_ttf/issues/187 x_refsource_MISC
- https://github.com/libsdl-org/SDL_ttf/commit/db1b41ab8bde6723c24b866e466cad78c2fa0448 x_refsource_MISC
- FEDORA-2022-280ac942be vendor-advisory, x_refsource_FEDORA
- FEDORA-2022-600e0cba93 vendor-advisory, x_refsource_FEDORA
- FEDORA-2022-857d1f7050 vendor-advisory, x_refsource_FEDORA