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

Critical 10.0 Published Updated

Unauthenticated attackers can use path traversal to open arbitrary SQLite databases on the host, exposing sensitive data.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-24786?

CVE-2025-24786 is a critical path traversal vulnerability in clidey whodb, published on 6 Feb 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-35, CWE-22

Which versions are affected by CVE-2025-24786?

3 open source packages ship an affected version, including github.com/clidey/whodb/core. It affects 1 product.

PackageAffectedFixed in
github.com/clidey/whodb/core GoAll versions0.0.0-20250127172032-547336ac73c8
github.com/clidey/whodb/core GoAll versions0.0.0-20250127172032-547336ac73c8
github.com/clidey/whodb/core GoAll versions0.0.0-20250127172032-547336ac73c8

Products include Clidey Whodb.

How do I fix CVE-2025-24786?

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

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2025-24786 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-24786 exists.

Public exploit code: 1 Nuclei template.

Sources

Also known as GHSA-9r4c-jwx3-3j76, GO-2025-3456.

Is CVE-2025-24786 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free