{"id":"UBUNTU-CVE-2022-27470","details":"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.","modified":"2026-05-20T16:06:42.600412311Z","published":"2022-05-04T03:15:00Z","upstream":["CVE-2022-27470"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-27470"},{"type":"REPORT","url":"https://github.com/libsdl-org/SDL_ttf/commit/db1b41ab8bde6723c24b866e466cad78c2fa0448"},{"type":"REPORT","url":"https://github.com/libsdl-org/SDL_ttf/issues/187"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-27470"}],"affected":[{"package":{"name":"libsdl2-ttf","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/libsdl2-ttf?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.12+dfsg1-2","2.0.14+dfsg1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libsdl2-ttf-2.0-0","binary_version":"2.0.14+dfsg1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-27470.json"}},{"package":{"name":"libsdl2-ttf","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/libsdl2-ttf?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.14+dfsg1-2"],"ecosystem_specific":{"binaries":[{"binary_name":"libsdl2-ttf-2.0-0","binary_version":"2.0.14+dfsg1-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-27470.json"}},{"package":{"name":"libsdl2-ttf","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/libsdl2-ttf?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.15+dfsg1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libsdl2-ttf-2.0-0","binary_version":"2.0.15+dfsg1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-27470.json"}},{"package":{"name":"libsdl2-ttf","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/libsdl2-ttf?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.15+dfsg1-1","2.0.15+dfsg1-2","2.0.18+dfsg-2"],"ecosystem_specific":{"binaries":[{"binary_name":"libsdl2-ttf-2.0-0","binary_version":"2.0.18+dfsg-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-27470.json"}},{"package":{"name":"libsdl2-ttf","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/libsdl2-ttf?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.20.2+dfsg-1","2.22.0+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libsdl2-ttf-2.0-0","binary_version":"2.22.0+dfsg-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-27470.json"}},{"package":{"name":"libsdl2-ttf","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/libsdl2-ttf?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.24.0+dfsg-2"],"ecosystem_specific":{"binaries":[{"binary_name":"libsdl2-ttf-2.0-0","binary_version":"2.24.0+dfsg-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-27470.json"}},{"package":{"name":"libsdl2-ttf","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/libsdl2-ttf?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.24.0+dfsg-2","2.24.0+dfsg-3"],"ecosystem_specific":{"binaries":[{"binary_name":"libsdl2-ttf-2.0-0","binary_version":"2.24.0+dfsg-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-27470.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}