{"id":"UBUNTU-CVE-2024-25178","details":"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.","modified":"2026-07-15T19:45:44.276196564Z","published":"2025-07-07T17:15:00Z","related":["USN-8544-1"],"upstream":["CVE-2024-25178"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-25178"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2024-25178"},{"type":"REPORT","url":"https://gist.github.com/pwnhacker0x18/423b4292f301ab274b42d5ed6e0b87d8"},{"type":"REPORT","url":"https://github.com/LuaJIT/LuaJIT/commit/defe61a56751a0db5f00ff3ab7b8f45436ba74c8"},{"type":"REPORT","url":"https://github.com/LuaJIT/LuaJIT/issues/1152"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-8544-1"}],"affected":[{"package":{"name":"luajit","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/luajit?arch=source&distro=esm-infra-legacy%2Ftrusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.2+dfsg-1ubuntu0.1~esm1"}]}],"versions":["2.0.2+dfsg-1"],"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"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-25178.json"}},{"package":{"name":"luajit","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/luajit?arch=source&distro=esm-apps-legacy%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.4+dfsg-1+deb9u1ubuntu0.1~esm1"}]}],"versions":["2.0.4+dfsg-1","2.0.4+dfsg-1+deb9u1build0.16.04.1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.0.4+dfsg-1+deb9u1ubuntu0.1~esm1","binary_name":"libluajit-5.1-2"},{"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"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-25178.json"}},{"package":{"name":"luajit","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/luajit?arch=source&distro=esm-apps%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0~beta3+dfsg-5.1ubuntu0.18.04.1~esm1"}]}],"versions":["2.0.4+dfsg-1","2.1.0~beta3+dfsg-5","2.1.0~beta3+dfsg-5.1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"libluajit-5.1-2","binary_version":"2.1.0~beta3+dfsg-5.1ubuntu0.18.04.1~esm1"},{"binary_version":"2.1.0~beta3+dfsg-5.1ubuntu0.18.04.1~esm1","binary_name":"libluajit-5.1-common"},{"binary_name":"luajit","binary_version":"2.1.0~beta3+dfsg-5.1ubuntu0.18.04.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-25178.json"}},{"package":{"name":"luajit","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/luajit?arch=source&distro=esm-apps%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0~beta3+dfsg-5.1ubuntu0.20.04.1~esm1"}]}],"versions":["2.1.0~beta3+dfsg-5.1","2.1.0~beta3+dfsg-5.1build1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","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"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-25178.json"}},{"package":{"name":"luajit","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/luajit?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0~beta3+dfsg-6ubuntu0.1"}]}],"versions":["2.1.0~beta3+dfsg-6"],"ecosystem_specific":{"availability":"No subscription required","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"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-25178.json"}},{"package":{"name":"luajit","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/luajit?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0+git20231223.c525bcb+dfsg-1ubuntu0.1"}]}],"versions":["2.1.0~beta3+git20220320+dfsg-4.1","2.1.0+git20231223.c525bcb+dfsg-1~build1","2.1.0+git20231223.c525bcb+dfsg-1"],"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_version":"2.1.0+git20231223.c525bcb+dfsg-1ubuntu0.1","binary_name":"luajit"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-25178.json"}},{"package":{"name":"luajit","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/luajit?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.1.0+openresty20250117-2","2.1.0+openresty20250117-2ubuntu1"],"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_version":"2.1.0+openresty20250117-2ubuntu1","binary_name":"luajit"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-25178.json"}},{"package":{"name":"luajit","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/luajit?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.1.0+openresty20250117-2ubuntu1","2.1.0+openresty20251030-1"],"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_version":"2.1.0+openresty20251030-1","binary_name":"luajit"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-25178.json"}}],"schema_version":"1.7.5","severity":[{"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"}]}