Medium
tcc — security advisory
An issue was discovered in Tiny C Compiler (aka TinyCC or TCC) 0.9.27. Compiling a crafted source file leads to an 8 byte out of bounds write in the asm_parse_directive function in tccasm.c.
- Products
- tcc
- Affected versions
- 0.9.27+git20200814.62c30a4a-1, 0.9.27+git20200814.62c30a4a-2, 0.9.27+git20200814.62c30a4a-2build1, 0.9.27-2, 0.9.27-4, 0.9.27-5, 0.9.27-8, 0.9.27~git20140923.9d7fb33-3ubuntu1, 0.9.27~git20151227.933c223-1, 0.9.27~git20161217.cd9514ab-3ubuntu1
- Fixed versions
- Not specified
- CVEs
- CVE-2018-20376
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 00:27 UTC · Revision 1
Source evidence
An issue was discovered in Tiny C Compiler (aka TinyCC or TCC) 0.9.27. Compiling a crafted source file leads to an 8 byte out of bounds write in the asm_parse_directive function in tccasm.c.
osv:UBUNTU-CVE-2018-20376
tcc
Fixed versions: Not specified
tcc
Fixed versions: Not specified
tcc
Fixed versions: Not specified
tcc
Fixed versions: Not specified
tcc
Fixed versions: Not specified
tcc
Fixed versions: Not specified
tcc
Fixed versions: Not specified
tcc
Fixed versions: Not specified
Complete source record
{
"id": "d999eef0e38b12da0df59f948bcfd55cae2f668d1d17c44645a9184940ae8a2e",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2018-20376",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2018-20376",
"summary": "An issue was discovered in Tiny C Compiler (aka TinyCC or TCC) 0.9.27. Compiling a crafted source file leads to an 8 byte out of bounds write in the asm_parse_directive function in tccasm.c.",
"evidence": "osv:UBUNTU-CVE-2018-20376",
"products": [
{
"name": {
"value": "tcc",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.9.27~git20140923.9d7fb33-3ubuntu1",
"evidence": "/affected/0/versions"
},
{
"value": "0.9.27~git20151227.933c223-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "tcc",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.9.27~git20161217.cd9514ab-3ubuntu1",
"evidence": "/affected/1/versions"
},
{
"value": "0.9.27-2",
"evidence": "/affected/1/versions"
},
{
"value": "0.9.27-4",
"evidence": "/affected/1/versions"
},
{
"value": "0.9.27-5",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "tcc",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.9.27-8",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "tcc",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.9.27+git20200814.62c30a4a-1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "tcc",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.9.27+git20200814.62c30a4a-1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "tcc",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.9.27+git20200814.62c30a4a-2",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "tcc",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.9.27+git20200814.62c30a4a-2build1",
"evidence": "/affected/6/versions"
}
]
},
{
"name": {
"value": "tcc",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.9.27+git20200814.62c30a4a-2",
"evidence": "/affected/7/versions"
},
{
"value": "0.9.27+git20200814.62c30a4a-2build1",
"evidence": "/affected/7/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "UBUNTU-CVE-2018-20376",
"aliases": [
"UBUNTU-CVE-2018-20376"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "tcc",
"purl": "pkg:deb/ubuntu/tcc?arch=source&distro=xenial",
"ecosystem": "Ubuntu:16.04:LTS"
},
"versions": [
"0.9.27~git20140923.9d7fb33-3ubuntu1",
"0.9.27~git20151227.933c223-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-20376.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "tcc",
"binary_version": "0.9.27~git20151227.933c223-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "tcc",
"purl": "pkg:deb/ubuntu/tcc?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"0.9.27~git20161217.cd9514ab-3ubuntu1",
"0.9.27-2",
"0.9.27-4",
"0.9.27-5"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-20376.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "tcc",
"binary_version": "0.9.27-5"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "tcc",
"purl": "pkg:deb/ubuntu/tcc?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"0.9.27-8"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-20376.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "tcc",
"binary_version": "0.9.27-8"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "tcc",
"purl": "pkg:deb/ubuntu/tcc?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"0.9.27+git20200814.62c30a4a-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-20376.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "tcc",
"binary_version": "0.9.27+git20200814.62c30a4a-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "tcc",
"purl": "pkg:deb/ubuntu/tcc?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"0.9.27+git20200814.62c30a4a-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-20376.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "tcc",
"binary_version": "0.9.27+git20200814.62c30a4a-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "tcc",
"purl": "pkg:deb/ubuntu/tcc?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"0.9.27+git20200814.62c30a4a-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-20376.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "tcc",
"binary_version": "0.9.27+git20200814.62c30a4a-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "tcc",
"purl": "pkg:deb/ubuntu/tcc?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"0.9.27+git20200814.62c30a4a-2build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-20376.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "tcc",
"binary_version": "0.9.27+git20200814.62c30a4a-2build1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "tcc",
"purl": "pkg:deb/ubuntu/tcc?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"0.9.27+git20200814.62c30a4a-2",
"0.9.27+git20200814.62c30a4a-2build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-20376.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "tcc",
"binary_version": "0.9.27+git20200814.62c30a4a-2build1"
}
]
}
}
],
"modified": "2026-10-17T12:55:23.892813571Z",
"provider": "osv",
"upstream": [
"CVE-2018-20376"
],
"references": [
"https://ubuntu.com/security/CVE-2018-20376",
"https://lists.nongnu.org/archive/html/tinycc-devel/2018-12/msg00013.html",
"https://www.cve.org/CVERecord?id=CVE-2018-20376"
]
},
"related_cves": [
{
"value": "CVE-2018-20376",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 353687,
"published_at": "2018-12-23T18:29:00+00:00"
}