SecurityContext

CVE-2024-56331: Uptime Kuma - Path Traversal

  • Cve: CVE-2024-56331
  • Name: Uptime Kuma - Path Traversal
  • 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.
  • Impact: Attackers can access and capture local sensitive files, leading to information disclosure.
  • Remediation: Implement input validation to restrict URL protocols and sanitize user input to prevent file access.
  • Vulnerability type: path_traversal
  • Vulnerability impact: information_disclosure
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N
  • Epss score: 0.01845
  • Epss percentile: 0.79597
  • Assignee: [email protected]
  • Published at: 2024-12-20T20:15:24Z
  • Age in days: 704
  • Modified at: 2026-06-17T08:12:03Z
  • Public exploits total: 1
  • References total: 3
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-56331
  • Nvd status: deferred
  • Checked, none or zero: patch available, known exploited entries, public exploits capped, products total, products, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-22Improper Limitation of a Pathname to a Restricted Directory

Nuclei templates

IdUrl
CVE-2024-56331https://github.com/projectdiscovery/nuclei-templates/blob/main/code/cves/2024/CVE-2024-56331.yaml

Public exploits

UrlSourceAdded date
https://github.com/griisemine/CVE-2024-56331poc-in-github2024-11-25

References

UrlSourceTags
https://github.com/projectdiscovery/nuclei-templates/blob/main/code/cves/2024/CVE-2024-56331.yamlnuclei_templateNuclei Template
https://github.com/louislam/uptime-kuma/commit/6cfae01a0d3727c517afe512fc8fec1d99acf875nvd
https://github.com/louislam/uptime-kuma/security/advisories/GHSA-2qgm-m29m-cj2hnvd

Projects

RepositoryLink kindsIndexedUrl
louislam/uptime-kumacommit, fix, package, releases, security_advisoryyes/v1/repositories/louislam/uptime-kuma

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2024-11-25
  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
  • Not known: known exploited since, vulncheck known exploited since, initial access since, hackerone reports, exposed hosts

Nuclei template