CVE-2023-45158 Command injection in web2py
Attackers can execute arbitrary OS commands on web2py servers if notifySendHandler logging is enabled, requiring an upgrade to mitigate.
- 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-2023-45158?
CVE-2023-45158 is a critical command injection vulnerability in web2py, published on 16 Oct 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An OS command injection vulnerability exists in web2py 2.24.1 and earlier. When the product is configured to use notifySendHandler for logging (not the default configuration), a crafted web request may execute an arbitrary OS command on the web server using the product.
Weakness: CWE-78
Which versions are affected by CVE-2023-45158?
It affects 1 product.
Products include Web2py Web2py.
How do I fix CVE-2023-45158?
No fix has been published for CVE-2023-45158 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2023-45158 being exploited?
There is no known exploitation of CVE-2023-45158 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in web2py
- CVE-2016-3953 web2py remote code execution via hardcoded encryption key in session.connect function
- CVE-2016-3957 Deserialization in n/a
- CVE-2016-10321 web2py is vulnerable to password brute-force attack
- CVE-2016-4808 Web2py Cross-Site Request Forgery vulnerability
- CVE-2016-3952 Information disclosure in n/a
Sources
Also known as GHSA-vx79-v9rq-vjp5, UBUNTU-CVE-2023-45158.