Medium
lua5.2, lua5.3 and 1 more products — security advisory
Use after free in garbage collector and finalizer of lgc.c in Lua interpreter 5.4.0~5.4.3 allows attackers to perform Sandbox Escape via a crafted script file.
- Products
- lua5.2, lua5.3, lua50
- Affected versions
- 5.0.3-7, 5.0.3-8, 5.0.3-8build1, 5.2.2-1, 5.2.2-2, 5.2.2-3, 5.2.3-1, 5.2.4-1, 5.2.4-1ubuntu1, 5.3.1-1, 5.3.1-1ubuntu2, 5.3.1-1ubuntu2.1
- Fixed versions
- Not specified
- CVEs
- CVE-2021-44964
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 28 Oct 2026, 09:08 UTC · Revision 1
Source evidence
Use after free in garbage collector and finalizer of lgc.c in Lua interpreter 5.4.0~5.4.3 allows attackers to perform Sandbox Escape via a crafted script file.
osv:UBUNTU-CVE-2021-44964
lua5.2
Fixed versions: Not specified
lua5.2
Fixed versions: Not specified
lua5.3
Fixed versions: Not specified
lua50
Fixed versions: Not specified
lua50
Fixed versions: Not specified
lua50
Fixed versions: Not specified
Complete source record
{
"id": "776e6704c16cd00d4fdebf5a1d5103a78812da04b4277d0ef24d30ea700f2c87",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-44964",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2021-44964",
"summary": "Use after free in garbage collector and finalizer of lgc.c in Lua interpreter 5.4.0~5.4.3 allows attackers to perform Sandbox Escape via a crafted script file.",
"evidence": "osv:UBUNTU-CVE-2021-44964",
"products": [
{
"name": {
"value": "lua5.2",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "5.2.2-1",
"evidence": "/affected/0/versions"
},
{
"value": "5.2.2-2",
"evidence": "/affected/0/versions"
},
{
"value": "5.2.2-3",
"evidence": "/affected/0/versions"
},
{
"value": "5.2.3-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "lua5.2",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "5.2.4-1",
"evidence": "/affected/1/versions"
},
{
"value": "5.2.4-1ubuntu1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "lua5.3",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "5.3.1-1",
"evidence": "/affected/2/versions"
},
{
"value": "5.3.1-1ubuntu2",
"evidence": "/affected/2/versions"
},
{
"value": "5.3.1-1ubuntu2.1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "lua50",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "5.0.3-7",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "lua50",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "5.0.3-8",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "lua50",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "5.0.3-8build1",
"evidence": "/affected/5/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "UBUNTU-CVE-2021-44964",
"aliases": [
"UBUNTU-CVE-2021-44964"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "lua5.2",
"purl": "pkg:deb/ubuntu/lua5.2?arch=source&distro=trusty",
"ecosystem": "Ubuntu:14.04:LTS"
},
"versions": [
"5.2.2-1",
"5.2.2-2",
"5.2.2-3",
"5.2.3-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-44964.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "liblua5.2-0",
"binary_version": "5.2.3-1"
},
{
"binary_name": "lua5.2",
"binary_version": "5.2.3-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "lua5.2",
"purl": "pkg:deb/ubuntu/lua5.2?arch=source&distro=xenial",
"ecosystem": "Ubuntu:16.04:LTS"
},
"versions": [
"5.2.4-1",
"5.2.4-1ubuntu1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-44964.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "liblua5.2-0",
"binary_version": "5.2.4-1ubuntu1"
},
{
"binary_name": "lua5.2",
"binary_version": "5.2.4-1ubuntu1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "lua5.3",
"purl": "pkg:deb/ubuntu/lua5.3?arch=source&distro=xenial",
"ecosystem": "Ubuntu:16.04:LTS"
},
"versions": [
"5.3.1-1",
"5.3.1-1ubuntu2",
"5.3.1-1ubuntu2.1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-44964.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "liblua5.3-0",
"binary_version": "5.3.1-1ubuntu2.1"
},
{
"binary_name": "lua5.3",
"binary_version": "5.3.1-1ubuntu2.1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "lua50",
"purl": "pkg:deb/ubuntu/lua50?arch=source&distro=xenial",
"ecosystem": "Ubuntu:16.04:LTS"
},
"versions": [
"5.0.3-7"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-44964.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "liblua50",
"binary_version": "5.0.3-7"
},
{
"binary_name": "liblualib50",
"binary_version": "5.0.3-7"
},
{
"binary_name": "lua50",
"binary_version": "5.0.3-7"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "lua50",
"purl": "pkg:deb/ubuntu/lua50?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"5.0.3-8"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-44964.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "liblua50",
"binary_version": "5.0.3-8"
},
{
"binary_name": "liblualib50",
"binary_version": "5.0.3-8"
},
{
"binary_name": "lua50",
"binary_version": "5.0.3-8"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "lua50",
"purl": "pkg:deb/ubuntu/lua50?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"5.0.3-8build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-44964.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "liblua50",
"binary_version": "5.0.3-8build1"
},
{
"binary_name": "liblualib50",
"binary_version": "5.0.3-8build1"
},
{
"binary_name": "lua50",
"binary_version": "5.0.3-8build1"
}
]
}
}
],
"modified": "2026-10-08T12:50:14.268921022Z",
"provider": "osv",
"upstream": [
"CVE-2021-44964"
],
"references": [
"https://ubuntu.com/security/CVE-2021-44964",
"https://github.com/Lua-Project/lua-5.4.4-sandbox-escape-with-new-vulnerability",
"https://www.cve.org/CVERecord?id=CVE-2021-44964"
]
},
"related_cves": [
{
"value": "CVE-2021-44964",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 99525,
"published_at": "2022-03-14T15:15:00+00:00"
}