CVE-2024-45416 Code injection in n/a
An attacker with write access to the session directory can execute arbitrary code as root via malicious Lua files in ZTE routers.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-45416?
CVE-2024-45416 is a high-severity code injection vulnerability in n/a, published on 16 Sep 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The HTTPD binary in multiple ZTE routers has a local file inclusion vulnerability in session_init function. The session -LUA- files are stored in the directory /var/lua_session, the function iterates on all files in this directory and executes them using the function dofile without any validation if it is a valid session file or not. An attacker who is able to write a malicious file in the sessions directory can get RCE as root.
Weakness: CWE-829
Which versions are affected by CVE-2024-45416?
How do I fix CVE-2024-45416?
No fix has been published for CVE-2024-45416 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2024-45416 being exploited?
There is no known exploitation of CVE-2024-45416 in the wild and no public exploit code.
Sources
Also known as GHSA-5qfp-r7q3-257g.