CriticalFix available
luajit — security advisory
LuaJIT through 2.1 and OpenRusty luajit2 before v2.1-20240314 have an out-of-bounds read in the stack-overflow handler in lj_state.c.
- Products
- luajit
- Affected versions
- 2.0.2+dfsg-1, 2.0.4+dfsg-1, 2.0.4+dfsg-1+deb9u1build0.16.04.1, 2.1.0+git20231223.c525bcb+dfsg-1, 2.1.0+git20231223.c525bcb+dfsg-1~build1, 2.1.0+openresty20250117-2, 2.1.0+openresty20250117-2ubuntu1, 2.1.0+openresty20251030-1, 2.1.0~beta3+dfsg-5, 2.1.0~beta3+dfsg-5.1, 2.1.0~beta3+dfsg-5.1build1, 2.1.0~beta3+dfsg-6, 2.1.0~beta3+git20220320+dfsg-4.1
- Fixed versions
- 2.0.2+dfsg-1ubuntu0.1~esm1, 2.0.4+dfsg-1+deb9u1ubuntu0.1~esm1, 2.1.0+git20231223.c525bcb+dfsg-1ubuntu0.1, 2.1.0~beta3+dfsg-5.1ubuntu0.18.04.1~esm1, 2.1.0~beta3+dfsg-5.1ubuntu0.20.04.1~esm1, 2.1.0~beta3+dfsg-6ubuntu0.1
- CVEs
- CVE-2024-25178
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 01:07 UTC · Revision 1
Source evidence
LuaJIT through 2.1 and OpenRusty luajit2 before v2.1-20240314 have an out-of-bounds read in the stack-overflow handler in lj_state.c.
osv:UBUNTU-CVE-2024-25178
luajit
Fixed versions: 2.0.2+dfsg-1ubuntu0.1~esm1
luajit
Fixed versions: 2.0.4+dfsg-1+deb9u1ubuntu0.1~esm1
luajit
Fixed versions: 2.1.0~beta3+dfsg-5.1ubuntu0.18.04.1~esm1
luajit
Fixed versions: 2.1.0~beta3+dfsg-5.1ubuntu0.20.04.1~esm1
luajit
Fixed versions: 2.1.0~beta3+dfsg-6ubuntu0.1
luajit
Fixed versions: 2.1.0+git20231223.c525bcb+dfsg-1ubuntu0.1
luajit
Fixed versions: Not specified
luajit
Fixed versions: Not specified
luajit
Fixed versions: Not specified
Complete source record
{
"id": "eb33200d2337d205b6eec36d6d879caed4df52bad59b7499c42a06e52fe530c8",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2024-25178",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2024-25178",
"summary": "LuaJIT through 2.1 and OpenRusty luajit2 before v2.1-20240314 have an out-of-bounds read in the stack-overflow handler in lj_state.c.",
"evidence": "osv:UBUNTU-CVE-2024-25178",
"products": [
{
"name": {
"value": "luajit",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2.0.2+dfsg-1ubuntu0.1~esm1",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": [
{
"value": "2.0.2+dfsg-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "luajit",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2.0.4+dfsg-1+deb9u1ubuntu0.1~esm1",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": [
{
"value": "2.0.4+dfsg-1",
"evidence": "/affected/1/versions"
},
{
"value": "2.0.4+dfsg-1+deb9u1build0.16.04.1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "luajit",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2.1.0~beta3+dfsg-5.1ubuntu0.18.04.1~esm1",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": [
{
"value": "2.0.4+dfsg-1",
"evidence": "/affected/2/versions"
},
{
"value": "2.1.0~beta3+dfsg-5",
"evidence": "/affected/2/versions"
},
{
"value": "2.1.0~beta3+dfsg-5.1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "luajit",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2.1.0~beta3+dfsg-5.1ubuntu0.20.04.1~esm1",
"evidence": "/affected/3/ranges"
}
],
"affected_versions": [
{
"value": "2.1.0~beta3+dfsg-5.1",
"evidence": "/affected/3/versions"
},
{
"value": "2.1.0~beta3+dfsg-5.1build1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "luajit",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2.1.0~beta3+dfsg-6ubuntu0.1",
"evidence": "/affected/4/ranges"
}
],
"affected_versions": [
{
"value": "2.1.0~beta3+dfsg-6",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "luajit",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2.1.0+git20231223.c525bcb+dfsg-1ubuntu0.1",
"evidence": "/affected/5/ranges"
}
],
"affected_versions": [
{
"value": "2.1.0~beta3+git20220320+dfsg-4.1",
"evidence": "/affected/5/versions"
},
{
"value": "2.1.0+git20231223.c525bcb+dfsg-1~build1",
"evidence": "/affected/5/versions"
},
{
"value": "2.1.0+git20231223.c525bcb+dfsg-1",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "luajit",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.1.0+openresty20250117-2",
"evidence": "/affected/6/versions"
},
{
"value": "2.1.0+openresty20250117-2ubuntu1",
"evidence": "/affected/6/versions"
}
]
},
{
"name": {
"value": "luajit",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.1.0+openresty20251030-1",
"evidence": "/affected/7/versions"
}
]
},
{
"name": {
"value": "luajit",
"evidence": "/affected/8/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.1.0+openresty20250117-2ubuntu1",
"evidence": "/affected/8/versions"
},
{
"value": "2.1.0+openresty20251030-1",
"evidence": "/affected/8/versions"
}
]
}
],
"severity": "critical",
"structured": {
"id": "UBUNTU-CVE-2024-25178",
"aliases": [
"UBUNTU-CVE-2024-25178"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.0.2+dfsg-1ubuntu0.1~esm1"
}
]
}
],
"package": {
"name": "luajit",
"purl": "pkg:deb/ubuntu/luajit?arch=source&distro=esm-infra-legacy%2Ftrusty",
"ecosystem": "Ubuntu:Pro:14.04:LTS"
},
"versions": [
"2.0.2+dfsg-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-25178.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libluajit-5.1-2",
"binary_version": "2.0.2+dfsg-1ubuntu0.1~esm1"
},
{
"binary_name": "libluajit-5.1-common",
"binary_version": "2.0.2+dfsg-1ubuntu0.1~esm1"
},
{
"binary_name": "luajit",
"binary_version": "2.0.2+dfsg-1ubuntu0.1~esm1"
}
],
"availability": "Available with Ubuntu Pro with Legacy support add-on: https://ubuntu.com/pro"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.0.4+dfsg-1+deb9u1ubuntu0.1~esm1"
}
]
}
],
"package": {
"name": "luajit",
"purl": "pkg:deb/ubuntu/luajit?arch=source&distro=esm-apps-legacy%2Fxenial",
"ecosystem": "Ubuntu:Pro:16.04:LTS"
},
"versions": [
"2.0.4+dfsg-1",
"2.0.4+dfsg-1+deb9u1build0.16.04.1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-25178.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libluajit-5.1-2",
"binary_version": "2.0.4+dfsg-1+deb9u1ubuntu0.1~esm1"
},
{
"binary_name": "libluajit-5.1-common",
"binary_version": "2.0.4+dfsg-1+deb9u1ubuntu0.1~esm1"
},
{
"binary_name": "luajit",
"binary_version": "2.0.4+dfsg-1+deb9u1ubuntu0.1~esm1"
}
],
"availability": "Available with Ubuntu Pro with Legacy support add-on: https://ubuntu.com/pro"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.1.0~beta3+dfsg-5.1ubuntu0.18.04.1~esm1"
}
]
}
],
"package": {
"name": "luajit",
"purl": "pkg:deb/ubuntu/luajit?arch=source&distro=esm-apps%2Fbionic",
"ecosystem": "Ubuntu:Pro:18.04:LTS"
},
"versions": [
"2.0.4+dfsg-1",
"2.1.0~beta3+dfsg-5",
"2.1.0~beta3+dfsg-5.1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-25178.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libluajit-5.1-2",
"binary_version": "2.1.0~beta3+dfsg-5.1ubuntu0.18.04.1~esm1"
},
{
"binary_name": "libluajit-5.1-common",
"binary_version": "2.1.0~beta3+dfsg-5.1ubuntu0.18.04.1~esm1"
},
{
"binary_name": "luajit",
"binary_version": "2.1.0~beta3+dfsg-5.1ubuntu0.18.04.1~esm1"
}
],
"availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.1.0~beta3+dfsg-5.1ubuntu0.20.04.1~esm1"
}
]
}
],
"package": {
"name": "luajit",
"purl": "pkg:deb/ubuntu/luajit?arch=source&distro=esm-apps%2Ffocal",
"ecosystem": "Ubuntu:Pro:20.04:LTS"
},
"versions": [
"2.1.0~beta3+dfsg-5.1",
"2.1.0~beta3+dfsg-5.1build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-25178.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libluajit-5.1-2",
"binary_version": "2.1.0~beta3+dfsg-5.1ubuntu0.20.04.1~esm1"
},
{
"binary_name": "libluajit-5.1-common",
"binary_version": "2.1.0~beta3+dfsg-5.1ubuntu0.20.04.1~esm1"
},
{
"binary_name": "luajit",
"binary_version": "2.1.0~beta3+dfsg-5.1ubuntu0.20.04.1~esm1"
}
],
"availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.1.0~beta3+dfsg-6ubuntu0.1"
}
]
}
],
"package": {
"name": "luajit",
"purl": "pkg:deb/ubuntu/luajit?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"2.1.0~beta3+dfsg-6"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-25178.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libluajit-5.1-2",
"binary_version": "2.1.0~beta3+dfsg-6ubuntu0.1"
},
{
"binary_name": "libluajit-5.1-common",
"binary_version": "2.1.0~beta3+dfsg-6ubuntu0.1"
},
{
"binary_name": "luajit",
"binary_version": "2.1.0~beta3+dfsg-6ubuntu0.1"
}
],
"availability": "No subscription required"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.1.0+git20231223.c525bcb+dfsg-1ubuntu0.1"
}
]
}
],
"package": {
"name": "luajit",
"purl": "pkg:deb/ubuntu/luajit?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"2.1.0~beta3+git20220320+dfsg-4.1",
"2.1.0+git20231223.c525bcb+dfsg-1~build1",
"2.1.0+git20231223.c525bcb+dfsg-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-25178.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libluajit-5.1-2",
"binary_version": "2.1.0+git20231223.c525bcb+dfsg-1ubuntu0.1"
},
{
"binary_name": "libluajit-5.1-common",
"binary_version": "2.1.0+git20231223.c525bcb+dfsg-1ubuntu0.1"
},
{
"binary_name": "luajit",
"binary_version": "2.1.0+git20231223.c525bcb+dfsg-1ubuntu0.1"
}
],
"availability": "No subscription required"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "luajit",
"purl": "pkg:deb/ubuntu/luajit?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"2.1.0+openresty20250117-2",
"2.1.0+openresty20250117-2ubuntu1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-25178.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libluajit-5.1-2",
"binary_version": "2.1.0+openresty20250117-2ubuntu1"
},
{
"binary_name": "libluajit-5.1-common",
"binary_version": "2.1.0+openresty20250117-2ubuntu1"
},
{
"binary_name": "luajit",
"binary_version": "2.1.0+openresty20250117-2ubuntu1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "luajit",
"purl": "pkg:deb/ubuntu/luajit?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"2.1.0+openresty20251030-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-25178.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libluajit-5.1-2",
"binary_version": "2.1.0+openresty20251030-1"
},
{
"binary_name": "libluajit-5.1-common",
"binary_version": "2.1.0+openresty20251030-1"
},
{
"binary_name": "luajit",
"binary_version": "2.1.0+openresty20251030-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "luajit",
"purl": "pkg:deb/ubuntu/luajit?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"2.1.0+openresty20250117-2ubuntu1",
"2.1.0+openresty20251030-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-25178.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libluajit-5.1-2",
"binary_version": "2.1.0+openresty20251030-1"
},
{
"binary_name": "libluajit-5.1-common",
"binary_version": "2.1.0+openresty20251030-1"
},
{
"binary_name": "luajit",
"binary_version": "2.1.0+openresty20251030-1"
}
]
}
}
],
"modified": "2026-10-17T12:56:33.138139965Z",
"provider": "osv",
"upstream": [
"CVE-2024-25178"
],
"references": [
"https://ubuntu.com/security/CVE-2024-25178",
"https://www.cve.org/CVERecord?id=CVE-2024-25178",
"https://gist.github.com/pwnhacker0x18/423b4292f301ab274b42d5ed6e0b87d8",
"https://github.com/LuaJIT/LuaJIT/commit/defe61a56751a0db5f00ff3ab7b8f45436ba74c8",
"https://github.com/LuaJIT/LuaJIT/issues/1152",
"https://ubuntu.com/security/notices/USN-8544-1"
]
},
"related_cves": [
{
"value": "CVE-2024-25178",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 355786,
"published_at": "2025-07-07T17:15:00+00:00"
}