{"id":"UBUNTU-CVE-2022-31782","details":"ftbench.c in FreeType Demo Programs through 2.12.1 has a heap-based buffer overflow.","modified":"2026-04-22T13:23:38.681171Z","published":"2022-06-02T14:15:00Z","related":["USN-5528-1"],"upstream":["CVE-2022-31782"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-31782"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5528-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-31782"}],"affected":[{"package":{"name":"freetype","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/freetype@2.8.1-2ubuntu2.2?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.8.1-2ubuntu2.2"}]}],"versions":["2.8-0.2ubuntu2","2.8.1-0.1ubuntu2","2.8.1-0.1ubuntu3","2.8.1-2ubuntu1","2.8.1-2ubuntu2","2.8.1-2ubuntu2.1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"2.8.1-2ubuntu2.2","binary_name":"freetype2-demos"},{"binary_version":"2.8.1-2ubuntu2.2","binary_name":"libfreetype6"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31782.json"}},{"package":{"name":"freetype","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/freetype@2.10.1-2ubuntu0.2?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.10.1-2ubuntu0.2"}]}],"versions":["2.9.1-4","2.10.1-2","2.10.1-2ubuntu0.1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"2.10.1-2ubuntu0.2","binary_name":"freetype2-demos"},{"binary_version":"2.10.1-2ubuntu0.2","binary_name":"libfreetype6"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31782.json"}},{"package":{"name":"freetype","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/freetype@2.11.1+dfsg-1ubuntu0.1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.11.1+dfsg-1ubuntu0.1"}]}],"versions":["2.10.4+dfsg-1build1","2.10.4+dfsg-1build2","2.11.0+dfsg-1","2.11.1+dfsg-1","2.11.1+dfsg-1build1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"2.11.1+dfsg-1ubuntu0.1","binary_name":"freetype2-demos"},{"binary_version":"2.11.1+dfsg-1ubuntu0.1","binary_name":"libfreetype6"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-31782.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"}]}