Buffer Overflow Affecting lua package, versions [5.4.0,5.4.5)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.13% (33rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-LUA-2443174
  • published8 Apr 2022
  • disclosed8 Apr 2022
  • creditUnknown

Introduced: 8 Apr 2022

CVE-2022-28805  (opens in a new tab)
CWE-121  (opens in a new tab)

How to fix?

Upgrade lua to version 5.4.5 or higher.

Overview

Affected versions of this package are vulnerable to Buffer Overflow in lparser.c. It lacks a certain luaK_exp2anyregup call, leading to a heap-based buffer over-read that might affect a system that compiles untrusted Lua code.

CVSS Base Scores

version 3.1