Introducing Wiz for Exposure Management: Unify, prioritize, and remediate exposures everywhere.

CVE-2022-33099
NixOS vulnerability analysis and mitigation

Overview

CVE-2022-33099 affects Lua version 5.4.4 and below, specifically in the luaG_runerror component. The vulnerability was discovered in May 2022 and involves a heap-buffer overflow condition that occurs when a recursive error takes place (NVD, Ubuntu).

Technical details

The vulnerability exists in the error handling mechanism of Lua, specifically in the luaGerrormsg() component which uses slots from EXTRASTACK. When recursive errors occur, such as string overflow while creating an error message in 'luaG_runerror', or a C-stack overflow before calling the message handler, the code fails to use stack slots with parsimony, leading to a heap-buffer overflow (Lua Bugs, GitHub Commit). The vulnerability has been assigned a CVSS v3.1 base score of 7.5 (High), with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

The vulnerability primarily affects the availability of systems running the affected versions of Lua. When exploited, it can lead to a heap-buffer overflow condition, which could potentially cause program crashes or denial of service (NVD).

Mitigation and workarounds

A fix has been implemented and is available in newer versions of Lua. The patch involves modifying the code to save stack space while handling errors, ensuring proper management of stack slots during error handling (GitHub Commit). For Fedora users, fixed packages were released for both Fedora 35 and 36 (Fedora Update).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management