High
libsdl2-ttf — security advisory
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.
- Products
- libsdl2-ttf
- Affected versions
- 2.0.12+dfsg1-2, 2.0.14+dfsg1-1, 2.0.14+dfsg1-2, 2.0.15+dfsg1-1, 2.0.15+dfsg1-2, 2.0.18+dfsg-2, 2.20.2+dfsg-1, 2.22.0+dfsg-1, 2.24.0+dfsg-2, 2.24.0+dfsg-3
- Fixed versions
- Not specified
- CVEs
- CVE-2022-27470
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 00:40 UTC · Revision 1
Source evidence
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.
osv:UBUNTU-CVE-2022-27470
libsdl2-ttf
Fixed versions: Not specified
libsdl2-ttf
Fixed versions: Not specified
libsdl2-ttf
Fixed versions: Not specified
libsdl2-ttf
Fixed versions: Not specified
libsdl2-ttf
Fixed versions: Not specified
libsdl2-ttf
Fixed versions: Not specified
libsdl2-ttf
Fixed versions: Not specified
libsdl2-ttf
Fixed versions: Not specified
Complete source record
{
"id": "6570d1da5d643844b10baa453d6d3a6b38951afd97bf4efaa791c92641b5fe67",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2022-27470",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2022-27470",
"summary": "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.",
"evidence": "osv:UBUNTU-CVE-2022-27470",
"products": [
{
"name": {
"value": "libsdl2-ttf",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.0.12+dfsg1-2",
"evidence": "/affected/0/versions"
},
{
"value": "2.0.14+dfsg1-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "libsdl2-ttf",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.0.14+dfsg1-2",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "libsdl2-ttf",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.0.15+dfsg1-1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "libsdl2-ttf",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.0.15+dfsg1-1",
"evidence": "/affected/3/versions"
},
{
"value": "2.0.15+dfsg1-2",
"evidence": "/affected/3/versions"
},
{
"value": "2.0.18+dfsg-2",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "libsdl2-ttf",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.20.2+dfsg-1",
"evidence": "/affected/4/versions"
},
{
"value": "2.22.0+dfsg-1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "libsdl2-ttf",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.24.0+dfsg-2",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "libsdl2-ttf",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.24.0+dfsg-3",
"evidence": "/affected/6/versions"
}
]
},
{
"name": {
"value": "libsdl2-ttf",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.24.0+dfsg-2",
"evidence": "/affected/7/versions"
},
{
"value": "2.24.0+dfsg-3",
"evidence": "/affected/7/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2022-27470",
"aliases": [
"UBUNTU-CVE-2022-27470"
],
"metrics": [
{
"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"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libsdl2-ttf",
"purl": "pkg:deb/ubuntu/libsdl2-ttf?arch=source&distro=xenial",
"ecosystem": "Ubuntu:16.04:LTS"
},
"versions": [
"2.0.12+dfsg1-2",
"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"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libsdl2-ttf-2.0-0",
"binary_version": "2.0.14+dfsg1-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libsdl2-ttf",
"purl": "pkg:deb/ubuntu/libsdl2-ttf?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"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"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libsdl2-ttf-2.0-0",
"binary_version": "2.0.14+dfsg1-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libsdl2-ttf",
"purl": "pkg:deb/ubuntu/libsdl2-ttf?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"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"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libsdl2-ttf-2.0-0",
"binary_version": "2.0.15+dfsg1-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libsdl2-ttf",
"purl": "pkg:deb/ubuntu/libsdl2-ttf?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"2.0.15+dfsg1-1",
"2.0.15+dfsg1-2",
"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"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libsdl2-ttf-2.0-0",
"binary_version": "2.0.18+dfsg-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libsdl2-ttf",
"purl": "pkg:deb/ubuntu/libsdl2-ttf?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"2.20.2+dfsg-1",
"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"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libsdl2-ttf-2.0-0",
"binary_version": "2.22.0+dfsg-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libsdl2-ttf",
"purl": "pkg:deb/ubuntu/libsdl2-ttf?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"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"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libsdl2-ttf-2.0-0",
"binary_version": "2.24.0+dfsg-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libsdl2-ttf",
"purl": "pkg:deb/ubuntu/libsdl2-ttf?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"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"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libsdl2-ttf-2.0-0",
"binary_version": "2.24.0+dfsg-3"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libsdl2-ttf",
"purl": "pkg:deb/ubuntu/libsdl2-ttf?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"2.24.0+dfsg-2",
"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"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libsdl2-ttf-2.0-0",
"binary_version": "2.24.0+dfsg-3"
}
]
}
}
],
"modified": "2026-10-17T12:55:57.379709394Z",
"provider": "osv",
"upstream": [
"CVE-2022-27470"
],
"references": [
"https://ubuntu.com/security/CVE-2022-27470",
"https://github.com/libsdl-org/SDL_ttf/commit/db1b41ab8bde6723c24b866e466cad78c2fa0448",
"https://github.com/libsdl-org/SDL_ttf/issues/187",
"https://www.cve.org/CVERecord?id=CVE-2022-27470"
]
},
"related_cves": [
{
"value": "CVE-2022-27470",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 354361,
"published_at": "2022-05-04T03:15:00+00:00"
}