Out-of-bounds Read in Lua

CVE-2022-28805

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.

Vulnerability class: Buffer Overflow

EPSS: 0.030 (86.0th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 9.1 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H.

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2022-28805?
CVE-2022-28805 is a critical-severity vulnerability in Lua, classified under Out-of-bounds Read. CVSS score: 9.1/10. Published 2022-04-08.
How severe is CVE-2022-28805?
Critical severity. CVSS v3 base score is 9.1 out of 10.
Is CVE-2022-28805 known to be exploited?
2 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.