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

- Severity: Critical 10.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.67%, higher than 86% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-02-06T18:41:19.674Z
- Modified: 2026-06-17T08:59:36.413Z
- Also known as: GHSA-9r4c-jwx3-3j76, GO-2025-3456
- Weaknesses: CWE-22, CWE-35
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- clidey whodb: < 0.45.0; before 0.45.0
- github.com/clidey/whodb/core (Go): before 0.0.0-20250127172032-547336ac73c8

## Every score

- GitHub_M: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N`
- GitHub: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N`
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/clidey/whodb/security/advisories/GHSA-9r4c-jwx3-3j76> (exploit, advisory, vendor-advisory, web)
- <https://github.com/clidey/whodb/blob/ba6eb81d0ca40baead74bca58b2567166999d6a6/core/src/plugins/sqlite3/db.go#L14-L20> (product, web)
- <https://github.com/clidey/whodb/blob/ba6eb81d0ca40baead74bca58b2567166999d6a6/core/src/plugins/sqlite3/db.go#L26> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-24786> (advisory)
- <https://github.com/clidey/whodb/commit/547336ac73c8d17929c18c3941c0d5b0099753cc> (web)
- <https://github.com/clidey/whodb> (package)

## Sources

- CVE List: [CVE-2025-24786](https://www.cve.org/CVERecord?id=CVE-2025-24786), CVE Terms of Use, modified 2025-02-06
- GitHub Advisory Database: [GHSA-9r4c-jwx3-3j76](https://github.com/advisories/GHSA-9r4c-jwx3-3j76), CC-BY-4.0, modified 2025-02-07
- Go Vulnerability Database: [GO-2025-3456](https://pkg.go.dev/vuln/GO-2025-3456), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2025-24786](https://nvd.nist.gov/vuln/detail/CVE-2025-24786), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-24786 · Whole record: https://cve.day/CVE-2025-24786.json · Rebuilt by cve.day 2026-11-25T22:58:53.883Z
