CVE-2024-56331 json
Local File Inclusion (LFI) via Improper URL Handling in uptime-kuma's `Real-Browser` monitor
published 2024-12-20 22 mo ago modified 2026-06-17 4 mo ago also EUVD-2024-3546 , GHSA-2qgm-m29m-cj2h
- cvss
- 6.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.8%
- EPSS 1.8% chance of exploitation in 30 days, percentile 79%
- public exploits
- 0
- none known
Summary
Uptime Kuma is an open source, self-hosted monitoring tool. An **Improper URL Handling Vulnerability** allows an attacker to access sensitive local files on the server by exploiting the `file:///` protocol. This vulnerability is triggered via the **"real-browser"** request type, which takes a screenshot of the URL provided by the attacker. By supplying local file paths, such as `file:///etc/passwd`, an attacker can read sensitive data from the server. This vulnerability arises because the system does not properly validate or sanitize the user input for the URL field. Specifically: 1. The URL input (`<input data-v-5f5c86d7="" id="url" type="url" class="form-control" pattern="https?://.+" required="">`) allows users to input arbitrary file paths, including those using the `file:///` protocol, without server-side validation. 2. The server then uses the user-provided URL to make a request, passing it to a browser instance that performs the "real-browser" request, which takes a screenshot of the content at the given URL. If a local file path is entered (e.g., `file:///etc/passwd`), the browser fetches and captures the file’s content. Since the user input is not validated, an attacker can manipulate the URL to request local files (e.g., `file:///etc/passwd`), and the system will capture a screenshot of the file's content, potentially exposing sensitive data. Any **authenticated user** who can submit a URL in "real-browser" mode is at risk of exposing sensitive data through screenshots of these files. This issue has been addressed in version 1.23.16 and all users are advised to upgrade. There are no known workarounds for this vulnerability.
Patch / fix
- npm uptime-kuma 1.23.16, 2.0.0-beta.1
- dockge.kuma dockge 1.23.16, 2.0.0-beta.1
- uptime-kuma_project uptime-kuma 1.23.16, 2.0.0-beta.1
- uptime.kuma uptime_kuma 1.23.16, 2.0.0-beta.1
- uptime_kuma_project uptime_kuma 1.23.16, 2.0.0-beta.1
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 22 mo ago
Exploit prediction
1.85% chance of exploitation in the next 30 days, higher than 79% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N |
| GitHub | 3.1 | 6.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | uptime-kuma | >=1.23.0, <1.23.16 >=2.0.0-beta.0, <2.0.0-beta.1 |
1.23.16 2.0.0-beta.1 |
Affected products
- louislam uptime-kuma
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/louislam/uptime-kuma/commit/6cfae01a0d3727c517afe512fc8fec1d99acf875
web
-
github.com
/louislam/uptime-kuma/security/advisories/GHSA-2qgm-m29m-cj2h
web
-
nvd.nist.gov
/vuln/detail/CVE-2024-56331
advisory
-
github.com
/louislam/uptime-kuma
package
-
github.com
/louislam/uptime-kuma/releases/tag/1.23.16
web
Sources
- CVE List CVE-2024-56331
- GitHub Advisory GHSA-2qgm-m29m-cj2h
- NVD CVE-2024-56331
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.