CVE-2023-36822 Uptime Kuma authenticated path traversal via plugin repository name may lead to unavailability or data loss

Medium 6.5 Published Updated

Authenticated attackers can delete arbitrary server files via path traversal in plugin installation, causing system unavailability or data loss.

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-36822?

CVE-2023-36822 is a medium-severity path traversal 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, has a path traversal vulnerability in versions prior to 1.22.1. 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. Before a plugin is downloaded, the plugin installation directory is checked for existence. If it exists, it's removed before the plugin installation. Because the plugin is not validated against the official list of plugins or sanitized, the check for existence and the removal of the plugin installation directory are prone to path traversal. This vulnerability allows an authenticated attacker to delete files from the server Uptime Kuma is running on. Depending on which files are deleted, Uptime Kuma or the whole system may become unavailable due to data loss.

Weakness: CWE-22

Which versions are affected by CVE-2023-36822?

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-36822?

Upgrade uptime-kuma to 1.22.1 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2023-36822 being exploited?

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

Sources

Also known as GHSA-vr8x-74pm-6vj7.

Is CVE-2023-36822 in your software?

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

Check your SBOMs for free