CVE-2023-36821 Uptime Kuma vulnerable to authenticated remote code execution via malicious plugin installation

High 8.8 Published Updated

Authenticated attackers can achieve remote code execution by installing malicious plugins via exposed API endpoints that bypass validation and execute npm scripts.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-36821?

CVE-2023-36821 is a high-severity code injection vulnerability in louislam uptime-kuma, published on 5 Jul 2023. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Uptime Kuma, a self-hosted monitoring tool, allows an authenticated attacker to install a maliciously crafted plugin in versions prior to 1.22.1, which may lead to remote code execution. Uptime Kuma allows authenticated users to install plugins from an official list of plugins. This feature is currently disabled in the web interface, but the corresponding API endpoints are still available after login. After downloading a plugin, it's installed by calling `npm install` in the installation directory of the plugin. Because the plugin is not validated against the official list of plugins or installed with `npm install --ignore-scripts`, a maliciously crafted plugin taking advantage of npm scripts can gain remote code execution. Version 1.22.1 contains a patch for this issue.

Weakness: CWE-20

Which versions are affected by CVE-2023-36821?

2 open source packages ship an affected version, including uptime-kuma. It affects 1 product.

PackageAffectedFixed in
uptime-kuma npmAll versions1.22.1
uptime-kuma npmAll versions1.22.1

Products include Uptime-Kuma Project Uptime-Kuma.

How do I fix CVE-2023-36821?

Upgrade uptime-kuma to 1.22.1 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2023-36821 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-36821 exists.

Sources

Also known as GHSA-7grx-f945-mj96.

Is CVE-2023-36821 in your software?

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

Check your SBOMs for free