CVE-2025-24787
Parameter injection in DB connection URIs leading to local file inclusion in WhoDB
Check your servers for CVE-2025-24787
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-24787 affects whodb, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
WhoDB is an open source database management tool. In affected versions the application is vulnerable to parameter injection in database connection strings, which allows an attacker to read local files on the machine the application is running on. The application uses string concatenation to build database connection URIs which are then passed to corresponding libraries responsible for setting up the database connections. This string concatenation is done unsafely and without escaping or encoding the user input. This allows an user, in many cases, to inject arbitrary parameters into the URI string. These parameters can be potentially dangerous depending on the libraries used. One of these dangerous parameters is `allowAllFiles` in the library `github.com/go-sql-driver/mysql`. Should this be set to `true`, the library enables running the `LOAD DATA LOCAL INFILE` query on any file on the host machine (in this case, the machine that WhoDB is running on). By injecting `&allowAllFiles=true` into the connection URI and connecting to any MySQL server (such as an attacker-controlled one), the attacker is able to read local files. 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.
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- changed: the damage reaches other components, such as the host of a container or other users
- Impact
- confidentiality high, integrity none, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.55%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 47.5% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 6 Feb 2025):
- Exploitation
- poc: a proof of concept is public
- Automatable
- yes: an attacker can automate the attack across many targets
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-943 Improper Neutralization of Special Elements in Data Query Logic
Affected products
As the CNA lists them.
Is my server affected?
Find the installed version of whodb and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i whodb
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2025-24787 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2025-24787RHEL, Rocky, Alma, Fedora
rpm -q whodb
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2025-24787Alpine
apk list --installed | grep -i whodbWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-24787
trivy image --scanners vuln IMAGE | grep CVE-2025-24787
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Exploits and proof of concept
- https://github.com/clidey/whodb/security/advisories/GHSA-c7w4-9wv8-7x7c github.com · exploit
Other references
- https://github.com/go-sql-driver/mysql/blob/7403860363ca112af503b4612568c3096fecb466/infile.go#L128 github.com
Source: the record CVE-2025-24787 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse