CVE-2023-45158 Command injection in web2py

Critical 9.8 Published Updated

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.

Sources

Also known as GHSA-vx79-v9rq-vjp5, UBUNTU-CVE-2023-45158.

Is CVE-2023-45158 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free