BreachSpiderVerified, not vibes

CVE-2020-24370 in Debian Linux and 2 more products

Medium 5.3 Fix available

ldebug.c in Lua 5.4.0 allows a negation overflow and segmentation fault in getlocal and setlocal, as demonstrated by getlocal(3,2^31).

Affects 3 products from 3 vendors. Facts below cite their sources.

CVSS 3.15.3
EPSS3.8%
EPSS percentile91th
FixAvailable

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, no integrity impact.

Affected products and versions

VendorProductAffected versions
Debian Debian Linux 9.0
Fedoraproject Fedora 31 32
Lua Lua 5.2.0 5.2.1 5.2.2 5.2.3 5.3.0 5.3.1
+5 more5.3.2 5.3.3 5.3.4 5.3.5 5.4.0

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

ldebug.c in Lua 5.4.0 allows a negation overflow and segmentation fault in getlocal and setlocal, as demonstrated by getlocal(3,2^31).

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2020-24370
BreachSpider IDBS-2020-GLOBAL-242451-M
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Published2020-08-17
Last modified2025-05-05
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-191: CWE-191

Analysis AI-written, not human-reviewed

A negation overflow and segmentation fault vulnerability exists in the ldebug.c file of Lua 5.4.0, affecting the getlocal and setlocal functions. This can be exploited by calling getlocal with specific parameters, leading to potential code execution or denial of service.

The vulnerability is triggered by calling the getlocal function with a negative index value that causes a negation overflow, leading to a segmentation fault. This can be achieved by passing a large positive index value that, when negated, results in an invalid memory address access.

Questions

What is CVE-2020-24370?

A negation overflow and segmentation fault vulnerability exists in the ldebug.c file of Lua 5.4.0, affecting the getlocal and setlocal functions. This can be exploited by calling getlocal with specific parameters, leading to potential code execution or denial of service.

What is the CVSS score for CVE-2020-24370?

CVE-2020-24370 has CVSS 5.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L. EPSS: 3.8%.

Is CVE-2020-24370 actively exploited?

No confirmed active exploitation of CVE-2020-24370 as of 2026-05-30.

How do I remediate CVE-2020-24370?

Priority: MEDIUM. PSIRT: [email protected]

What systems are affected by CVE-2020-24370?

CVE-2020-24370 affects Debian Debian Linux; Fedoraproject Fedora; Lua Lua.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Debian","product":"Debian Linux","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2025-05-05.