# CVE-2025-24786: Path traversal opening Sqlite3 database in WhoDB

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

- **Severity:** CRITICAL 10.0
- **CVSS:** 10.0 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 2.92% (percentile 88, 2026-11-26)
- **CWE:** CWE-35, CWE-22
- **Aliases:** GHSA-9r4c-jwx3-3j76, GO-2025-3456
- **Published:** 2025-02-06T18:41:19.674Z
- **Modified:** 2026-06-17T08:59:36.413Z

## Who should check

- Projects that depend on Go package github.com/clidey/whodb/core (\< 0.0.0-20250127172032-547336ac73c8)
- Anyone running clidey whodb \< 0.45.0

## Description

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 and fixed versions

- Go `github.com/clidey/whodb/core`: affected \< 0.0.0-20250127172032-547336ac73c8; fixed 0.0.0-20250127172032-547336ac73c8 (osv)
- clidey whodb: \< 0.45.0 (cvelist)

## Mitigation

- Upgrade github.com/clidey/whodb/core to 0.0.0-20250127172032-547336ac73c8 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-24786.md
Affected: github.com/clidey/whodb/core < 0.0.0-20250127172032-547336ac73c8
Fixed in: 0.0.0-20250127172032-547336ac73c8

Steps:
1. Search this machine and project for github.com/clidey/whodb/core (Go), clidey whodb: 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-2025-24786 being exploited?

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

### How serious is CVE-2025-24786?

Critical: CVSS 10.0 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2025-24786?

github.com/clidey/whodb/core \< 0.0.0-20250127172032-547336ac73c8.

### Is there a fix for CVE-2025-24786?

Yes. Fixed in 0.0.0-20250127172032-547336ac73c8. Upgrade github.com/clidey/whodb/core to 0.0.0-20250127172032-547336ac73c8 or later.

### How do I check if I'm affected by CVE-2025-24786?

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/clidey/whodb/security/advisories/GHSA-9r4c-jwx3-3j76>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-24786>
- patch: <https://github.com/clidey/whodb/commit/547336ac73c8d17929c18c3941c0d5b0099753cc>
- other: <https://github.com/clidey/whodb/blob/ba6eb81d0ca40baead74bca58b2567166999d6a6/core/src/plugins/sqlite3/db.go#L14-L20>
- other: <https://github.com/clidey/whodb/blob/ba6eb81d0ca40baead74bca58b2567166999d6a6/core/src/plugins/sqlite3/db.go#L26>
- other: <https://github.com/clidey/whodb>

## 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-2025-24786>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-9r4c-jwx3-3j76> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2025-3456> (license: <https://creativecommons.org/licenses/by/4.0/>)

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