# JLSEC-2026-560: singlevar in lparser.c in Lua from (including) 5.4.0 up to (excluding) 5.4.4 lacks a certain luaKexp2anyregup call, leading to a heap-based…

- Severity: Critical 9.1 (CVSS:3.1, scored by Julia Security Advisories) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-05-26T19:45:06.761Z
- Modified: 2026-07-25T18:24:38.218Z
- Related: CVE-2022-28805

## Description

singlevar in lparser.c in Lua from (including) 5.4.0 up to (excluding) 5.4.4 lacks a certain `luaK_exp2anyregup` call, leading to a heap-based buffer over-read that might affect a system that compiles untrusted Lua code.

(As written by Julia Security Advisories.)

## Affected

- Lua_jll (Julia): from 5.4.3+0 before 5.4.6+0

## Every score

- Julia Security Advisories: CVSS:2.0 `AV:N/AC:L/Au:N/C:P/I:N/A:P`
- Julia Security Advisories: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H`

## References

- <https://github.com/lua/lua/commit/1f3c6f4534c6411313361697d98d1145a1f030fa> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RJNJ66IFDUKWJJZXHGOLRGIA3HWWC36R/> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UHYZOEFDVLVAD6EEP4CDW6DNONIVVHPA/> (web)
- <https://lua-users.org/lists/lua-l/2022-02/msg00001.html> (web)
- <https://lua-users.org/lists/lua-l/2022-02/msg00070.html> (web)
- <https://lua-users.org/lists/lua-l/2022-04/msg00009.html> (web)
- <https://security.gentoo.org/glsa/202305-23> (web)

## Sources

- Julia Security Advisories: [JLSEC-2026-560](https://osv.dev/vulnerability/JLSEC-2026-560), CC-BY-4.0, modified 2026-07-25

---

Page: https://cve.day/JLSEC-2026-560 · Whole record: https://cve.day/JLSEC-2026-560.json · Rebuilt by cve.day 2026-11-25T22:56:26.159Z
