cbcvebase.
CVE-2025-24786
published 2025-02-06

CVE-2025-24786: WhoDB is an open source database management tool. While the application only displays Sqlite3 databases present in the directory `/db`, there is no path…

PriorityP265critical9.1CVSS 3.1
AVNACLPRNUINSUCHIHAN
EXPLOIT
EPSS
2.68%
83.9th percentile
WhoDB is an open source database management tool. While the application only displays Sqlite3 databases present in the directory `/db`, there is no path traversal prevention in place. This allows an unauthenticated attacker to open any Sqlite3 database present on the host machine that the application is running on. Affected versions of WhoDB allow users to connect to Sqlite3 databases. By default, the databases must be present in `/db/` (or alternatively `./tmp/` if development mode is enabled). If no databases are present in the default directory, the UI indicates that the user is unable to open any databases. The database file is an user-controlled value. This value is used in `.Join()` with the default directory, in order to get the full path of the database file to open. No checks are performed whether the database file that is eventually opened actually resides in the default directory `/db`. This allows an attacker to use path traversal (`../../`) in order to open any Sqlite3 database present on the system. This issue has been addressed in version 0.45.0 and all users are advised to upgrade. There are no known workarounds for this vulnerability.

Affected

26 ranges· showing 25
VendorProductVersion rangeFixed in
clideywhodb< 0.45.00.45.0
github.comclidey_whodb_core>= 0 < 0.0.0-20250127172032-547336ac73c80.0.0-20250127172032-547336ac73c8
msrcazl3_azcopy_10.22.1-1
msrcazl3_azcopy_10.24.0-1
msrcazl3_blobfuse2_2.1.0-4
msrcazl3_blobfuse2_2.3.0-1
msrcazl3_cert-manager_1.11.2-8
msrcazl3_cert-manager_1.12.12-1
msrcazl3_cf-cli_8.7.3-3
msrcazl3_cf-cli_8.7.3-6
msrcazl3_cloud-provider-kubevirt_0.5.1-1
msrcazl3_containerd_1.7.13-5
msrcazl3_containerd_1.7.13-8
msrcazl3_containerized-data-importer_1.57.0-14
msrcazl3_containerized-data-importer_1.57.0-6
msrcazl3_coredns_1.11.1-3
msrcazl3_coredns_1.11.1-4
msrcazl3_cri-tools_1.29.0-1
msrcazl3_cri-tools_1.30.1-1
msrcazl3_docker-buildx_0.12.1-1
msrcazl3_docker-buildx_0.14.0-1
msrcazl3_docker-cli_25.0.3-2
msrcazure_linux_3.0_arm
msrcazure_linux_3.0_x64
msrccbl_mariner_2.0_arm

Detection & IOCsextracted from sources · hover to see the quote

url/api/query
path../etc/secret.db
command{"operationName":"Login","variables":{"credentials":{"Type":"Sqlite3","Hostname":"","Database":"../etc/secret.db","Username":"","Password":"","Advanced":[]}},"query":"mutation Login($credentials: LoginCredentials!) {\n Login(credentials: $credentials) {\n Status\n __typename\n }\n}"}
sigma
matchers: words: ['"Status":true', '"StatusResponse"'] condition: and; status: 200
  • Monitor POST requests to /api/query containing a 'Database' field with path traversal sequences (e.g., '../../') and Type 'Sqlite3', especially from unauthenticated sources.
  • A successful exploit returns HTTP 200 with both '"Status":true' and '"StatusResponse"' in the response body to the /api/query Login mutation.
  • The vulnerability is unauthenticated — no prior session or credentials are required to exploit the path traversal via the Login GraphQL mutation.
  • FOFA fingerprinting query for exposed WhoDB instances: body="whodb"
  • After successful exploitation, a session Token cookie is issued — monitor for Token cookie issuance following anomalous Login mutation requests with traversal paths.
  • ·The path traversal is only exploitable against Sqlite3 database files present on the host filesystem. The attacker cannot read arbitrary file types — only valid Sqlite3 databases can be opened.
  • ·Development mode changes the default database directory from /db/ to ./tmp/, which may affect path traversal depth calculations.
  • ·The vulnerability affects all WhoDB versions prior to 0.45.0; no workarounds exist — upgrade is the only remediation.

CVSS provenance

nvdv3.19.1CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
vendor_msrc7.5HIGH
vendor_oracle7.5HIGH
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.