# CVE-2024-56331: Local File Inclusion (LFI) via Improper URL Handling in uptime-kuma's \`Real-Browser\` monitor

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.8
- **CVSS:** 6.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: Required; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 2.25% (percentile 84, 2026-11-26)
- **CWE:** CWE-22
- **Aliases:** GHSA-2qgm-m29m-cj2h
- **Published:** 2024-12-20T15:10:46.000Z
- **Modified:** 2026-06-17T08:12:03.640Z

## Who should check

- Projects that depend on npm package uptime-kuma (\>= 1.23.0, \< 1.23.16)
- Anyone running louislam uptime-kuma \>= 1.23.0, \< 1.23.16; = 2.0.0-beta.0

## Description

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.

## Affected and fixed versions

- npm `uptime-kuma`: affected \>= 1.23.0, \< 1.23.16; fixed 1.23.16, 2.0.0-beta.1 (osv)
- louislam uptime-kuma: \>= 1.23.0, \< 1.23.16; = 2.0.0-beta.0 (cvelist)

## Mitigation

- Upgrade uptime-kuma to one of 1.23.16, 2.0.0-beta.1 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-56331. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-56331.md
Affected: uptime-kuma >= 1.23.0, < 1.23.16
Fixed in: 1.23.16, 2.0.0-beta.1

Steps:
1. Search this machine and project for uptime-kuma (npm), louislam uptime-kuma: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-56331 being exploited?

There is no confirmed exploitation: CVE-2024-56331 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 2.25% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-56331?

Medium: CVSS 6.8 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2024-56331?

uptime-kuma \>= 1.23.0, \< 1.23.16.

### Is there a fix for CVE-2024-56331?

Yes. Fixed in 1.23.16, 2.0.0-beta.1. Upgrade uptime-kuma to one of 1.23.16, 2.0.0-beta.1 (or later in the same release line).

### How do I check if I'm affected by CVE-2024-56331?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/louislam/uptime-kuma/security/advisories/GHSA-2qgm-m29m-cj2h>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-56331>
- patch: <https://github.com/louislam/uptime-kuma/commit/6cfae01a0d3727c517afe512fc8fec1d99acf875>
- other: <https://github.com/louislam/uptime-kuma>
- other: <https://github.com/louislam/uptime-kuma/releases/tag/1.23.16>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-56331>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-2qgm-m29m-cj2h> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-56331> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-56331>
