Synced 17 Jun 2026 22:27 UTC Account
← All products

CVE-2022-28805

CRITICAL severity · CVSS 9.1 · Out-of-bounds read
9.1CVSS CRITICAL

Summary

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.

Impact & exploitability

Attack vectorNetwork
Attack complexityLow
Privileges requiredNone
User interactionNone
Confidentiality impactHigh
Integrity impactNone
Availability impactHigh
Exploit probability (EPSS)3%

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

Affected products we track (1)

Lua

Recommendation

Apply the vendor fix promptly. Open any affected product above for its exact safe version.

Official patch: https://github.com/lua/lua/commit/1f3c6f4534c6411313361697d98d1145a1f030fa ↗