# CVE-2025-24787: Parameter injection in DB connection URIs leading to local file inclusion in WhoDB

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

- **Severity:** HIGH 8.6
- **CVSS:** 8.6 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/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: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.77% (percentile 52, 2026-11-26)
- **CWE:** CWE-943
- **Aliases:** GHSA-c7w4-9wv8-7x7c, GO-2025-3457
- **Published:** 2025-02-06T18:41:17.518Z
- **Modified:** 2026-06-17T08:59:36.530Z

## Who should check

- Projects that depend on Go package github.com/clidey/whodb/core (\< 0.0.0-20250127202645-8d67b767e005)
- Anyone running clidey whodb \< 0.45.0

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

## Affected and fixed versions

- Go `github.com/clidey/whodb/core`: affected \< 0.0.0-20250127202645-8d67b767e005; fixed 0.0.0-20250127202645-8d67b767e005 (osv)
- clidey whodb: \< 0.45.0 (cvelist)

## Mitigation

- Upgrade github.com/clidey/whodb/core to 0.0.0-20250127202645-8d67b767e005 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-24787. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-24787.md
Affected: github.com/clidey/whodb/core < 0.0.0-20250127202645-8d67b767e005
Fixed in: 0.0.0-20250127202645-8d67b767e005

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-24787 being exploited?

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

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

High: CVSS 8.6 (v3.1, scored by CNA). Remote, no login needed.

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

github.com/clidey/whodb/core \< 0.0.0-20250127202645-8d67b767e005.

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

Yes. Fixed in 0.0.0-20250127202645-8d67b767e005. Upgrade github.com/clidey/whodb/core to 0.0.0-20250127202645-8d67b767e005 or later.

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

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-c7w4-9wv8-7x7c>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-24787>
- patch: <https://github.com/clidey/whodb/commit/8d67b767e00552e5eba2b1537179b74bfa662ee1>
- other: <https://github.com/go-sql-driver/mysql/blob/7403860363ca112af503b4612568c3096fecb466/infile.go#L128>
- 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-24787>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-c7w4-9wv8-7x7c> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2025-3457> (license: <https://creativecommons.org/licenses/by/4.0/>)

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