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

Published · last modified .

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.

EPSS exploit prediction

EPSS: 0.030 (86.9th percentile), scored .

Low probability of exploitation in the next 30 days, but still tracked. 87th percentile — 86.9% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2022-28805: held from 0.030 to 0.030.

EPSS over last 30 days · oldest: 0.030 · newest: 0.030 · change: 0.000

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.