CVE-2023-32700: Command Injection
An arbitrary code execution vulnerability in LuaTeX (TeX Live) that allows any document compiled with older versions of LuaTeX to execute arbitrary shell commands, even with shell escape disabled. This affects LuaTeX versions 1.04-1.16.1, which were included in TeX Live 2017-2023. This issue was fixed in LuaTeX 1.17.0, which is included in recent updates to TeX Live 2023.
References: https://tug.org/~mseven/luatex.html
Other sources
LuaTeX before 1.17.0 allows execution of arbitrary shell commands when compiling a TeX file obtained from an untrusted source. This occurs because luatex-core.lua lets the original io.popen be accessed. This also affects TeX Live before 2023 r66984 and MiKTeX before 23.5.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 11:11:20230311-95.azl4.2 - Upgrade
Upgrade
alpine/texliveto a version that resolves this vulnerability.Fixed in 20230506.66984-r0 - Upgrade
Upgrade
LuaTeXto a version that resolves this vulnerability.Fixed in 1.17.0 - Upgrade
Upgrade
TeX Liveto a version that resolves this vulnerability.Patch 2023 r66984 - Upgrade
Upgrade
MiKTeXto a version that resolves this vulnerability.Fixed in 23.5
Event History
Frequently Asked Questions
What is CVE-2023-32700?
CVE-2023-32700 is a vulnerability in LuaTeX before version 1.17.0 that allows execution of arbitrary shell commands when compiling a TeX file obtained from an untrusted source.
How does CVE-2023-32700 occur?
CVE-2023-32700 occurs because the luatex-core.lua file in LuaTeX lets the original io.popen be accessed, which allows execution of arbitrary shell commands.
Which software is affected by CVE-2023-32700?
The software affected by CVE-2023-32700 includes LuaTeX, TeX Live before 2023 r66984, and MiKTeX before 23.5.
What is the severity of CVE-2023-32700?
The severity of CVE-2023-32700 is high, with a severity score of 7.8.
How do I fix CVE-2023-32700?
To fix CVE-2023-32700, update LuaTeX to version 1.17.0 or later, TeX Live to version 2023 r66984 or later, or MiKTeX to version 23.5 or later.