Skip to main content
Mallory
MediumPublic exploitVulnerability

CVE-2024-56331: Local File Read in Uptime Kuma Real-Browser Monitor via file:// URL Handling

Published Dec 20, 2024 · Updated 2 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS6.8Medium · v3.1
EPSS1.8%80th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
IdentifiersCVE-2024-56331CWE-73

CVE-2024-56331 affects Uptime Kuma, an open-source self-hosted monitoring tool. The vulnerability is an improper URL handling issue in the Real-Browser monitor/request type. User-supplied URL input is not adequately validated server-side, allowing an authenticated user to provide a file:// URI such as file:///etc/passwd despite the client-side pattern intending to restrict input to HTTP(S). The backend passes the attacker-controlled URL to a browser instance used to render the target and capture a screenshot. When a local file URI is supplied, the browser loads local server files and the application captures their contents in the resulting screenshot. This enables local file disclosure from the host running Uptime Kuma, including potentially sensitive operating system and application files such as /etc/passwd, /etc/shadow, kuma.db, or config.json. The issue is fixed in version 1.23.16.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation allows an authenticated attacker to read sensitive local files accessible to the browser/process context on the Uptime Kuma server by causing those files to be rendered and captured in screenshots. Exposed data may include system account information, application configuration, database contents, credentials, secrets, and other sensitive local data. This is an information disclosure issue that can facilitate further compromise depending on the contents of the exposed files.

Mitigation

If you can’t patch tonight, do this now.

If immediate patching is not possible, restrict access to trusted authenticated users only and disable or avoid using the Real-Browser monitor/request type. Implement compensating controls to block submission of file:// and related local-resource URL forms such as view-source:file:// through application-layer validation, reverse-proxy filtering, or custom input sanitization where feasible.

Remediation

Patch, then assume compromise.

Upgrade Uptime Kuma to version 1.23.16 or later in the 1.x branch, or to 2.0.0-beta.1 or later in the 2.x beta branch, as referenced in the advisory. The fix should include proper server-side validation and sanitization of submitted URLs so that only intended schemes such as http:// and https:// are accepted by the Real-Browser feature.

FAQ

Frequently asked questions

Is CVE-2024-56331 exploited in the wild?
As of Sep 25, 2026, Mallory has no reports of CVE-2024-56331 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2024-56331?
Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2024-56331, the earliest disclosed Nov 25, 2024.
Is there a patch for CVE-2024-56331?
Upgrade Uptime Kuma to version 1.23.16 or later in the 1.x branch, or to 2.0.0-beta.1 or later in the 2.x beta branch, as referenced in the advisory. The fix should include proper server-side validation and sanitization of submitted URLs so that only intended schemes such as http:// and https:// are accepted by the Real-Browser feature.
How severe is CVE-2024-56331?
CVE-2024-56331 has a CVSS v3.1 score of 6.8 (Medium) and an EPSS score of 1.8% (80th percentile) as of Sep 25, 2026.
Activity feed

Recent activity

No public activity tracked yet. Mallory keeps watching.

View more in app →

No public activity observed for this vulnerability.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.