Buffer Over-read Affecting lua-libs package, versions <0:5.4.4-3.amzn2023.0.2


Severity

Recommended
medium

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
1.42% (70th 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-AMZN2023-LUALIBS-6253517
  • published20 Feb 2024
  • disclosed10 Apr 2023

Introduced: 10 Apr 2023

CVE-2021-45985  (opens in a new tab)
CWE-126  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2023 lua-libs to version 0:5.4.4-3.amzn2023.0.2 or higher.
This issue was patched in ALAS2023-2024-533.

NVD Description

Note: Versions mentioned in the description apply only to the upstream lua-libs package and not the lua-libs package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2023 relevant fixed versions and status.

In Lua 5.4.3, an erroneous finalizer called during a tail call leads to a heap-based buffer over-read.

CVSS Base Scores

version 3.1