CVE-2026-142651: WhoDB Unauthenticated Host File Read Through Vulnerability

HIGH
Advisory Identifier: GHSA-2mwr-p8j5-rm33
CVSS 8.6
CWE-73 CWE-863
Published
Advisory Summary

CVE-2026-142651 is a HIGH (CVSS 8.6) unauthenticated host file read through vulnerability (CWE-73: External Control of File Name or Path) affecting WhoDB libraries in the Go ecosystem. The issue involves unauthenticated host file read through forged profile trust. Remediation is available by upgrading affected packages to version 0.0.0-20260929145727-cf6828f1a57f.

CVE-2026-142651 at a Glance

CVE Identifier CVE-2026-142651
GHSA Identifier GHSA-2mwr-p8j5-rm33
Severity HIGH
CVSS v3.1 Base Score 8.6
CWE Classification CWE-73: External Control of File Name or Path
Affected Product WhoDB
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 8.6

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2026-142651

To remediate this vulnerability, upgrade all affected WhoDB dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/clidey/whodb/core fixed: 0.0.0-20260929145727-cf6828f1a57f
Upgrade github.com/clidey/whodb/core to 0.0.0-20260929145727-cf6828f1a57f
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/clidey/whodb/core

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-142651, inspect your project dependencies for WhoDB:

inspect dependencies for github.com/clidey/whodb/core

Analyze the terminal output to locate any version of WhoDB in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.0-20260929145727-cf6828f1a57f), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-73: External Control of File Name or Path, where the product allows user input to control or influence paths or file names that are used in filesystem operations. In WhoDB, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## Summary WhoDB accepted a client-controlled `IsProfile` flag from legacy Bearer and `Token` cookie credentials. Setting this flag to `true` allowed an unauthenticated requester to pass arbitrary advanced MySQL connection options, including `allowAllFiles=true`, to `go-sql-driver/mysql`. An attacker who can reach WhoDB and operate a MySQL server reachable from the WhoDB host can make the driver answer a `LOAD DATA LOCAL INFILE` request with a file from the WhoDB host. Files are limited to those readable by the WhoDB process, and their contents are sent to the attacker-controlled MySQL server. This is a bypass of the trust boundary introduced while remediating CVE-2025-24787 / GHSA-c7w4-9wv8-7x7c. It has a distinct root cause and affected-version range, so it is tracked separately. ## Affected path The legacy credential middleware decoded attacker-supplied JSON directly into `Credentials`, including `IsProfile`. Inline credentials skipped server-side profile resolution, so the attacker-supplied trust flag survived. When `IsProfile` was true, the shared GORM connection parser copied otherwise-unrecognized advanced options into the MySQL DSN. This allowed `allowAllFiles=true` to enable unrestricted handling of MySQL `LOCAL INFILE` requests. The attack does not require a WhoDB account, an existing session, a CSRF token, or user interaction. ## Maintainer validation The maintainers reproduced the complete data path against the vulnerable code: 1. An unauthenticated Bearer credential containing `IsProfile: true` and `allowAllFiles: true` was accepted. 2. `allowAllFiles` reached the MySQL driver configuration. 3. A controlled MySQL server requested a chosen local file and received its contents byte-for-byte. The issue is confirmed in releases through `0.131.0`. The vulnerable profile-option path first appears in `0.47.0`. ## Impact This permits unauthenticated disclosure of files readable by the WhoDB process. Depending on deployment configuration, those files may include application configuration, environment-backed secrets, database credentials, API keys, or other host data. ## Remediation Commit `06d0670caeffee82bef5b1c9721ae1ccc39cbbcd` fixes the reported route by: - clearing client-supplied `IsProfile` before any credential processing; - restoring profile trust only through server-side saved-profile resolution; and - restricting client overrides of stored profiles to supported database selection, preventing connection targets, secrets, TLS paths, and advanced DSN options from being replaced. Focused authentication and MySQL tests pass on the fixed code. ## Credit Reported by Lee Zhi Yang ([Xeraaaaaaa](https://github.com/Xeraaaaaaa)).

CVE-2026-142651 Affected WhoDB Versions

1 component(s)
Fixed Versions:
0.0.0-20260929145727-cf6828f1a57f
Product / Package Ecosystem Affected Versions Fixed Version
github.com/clidey/whodb/core
Go
≥ 0.0.0-20250216100606-65ab5cd3ca8f
< 0.0.0-20260929145727-cf6828f1a57f
0.0.0-20260929145727-cf6828f1a57f

References

Frequently Asked Questions

What is CVE-2026-142651?
CVE-2026-142651 is a security vulnerability in WhoDB involving Unauthenticated host file read through forged profile trust under CWE-73: External Control of File Name or Path.
Which WhoDB versions are affected?
Affected versions include releases prior to 0.0.0-20260929145727-cf6828f1a57f across affected packages: github.com/clidey/whodb/core.
What version fixes CVE-2026-142651?
Upgrading to 0.0.0-20260929145727-cf6828f1a57f (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/clidey/whodb/core affected?
Yes, github.com/clidey/whodb/core is affected in releases prior to 0.0.0-20260929145727-cf6828f1a57f. Upgrade your dependency to 0.0.0-20260929145727-cf6828f1a57f or later.
What is the CVSS score of CVE-2026-142651?
CVE-2026-142651 has a CVSS v3.1 base score of 8.6 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N.
What CWE is associated with CVE-2026-142651?
CVE-2026-142651 is classified under CWE-73: External Control of File Name or Path (The product allows user input to control or influence paths or file names that are used in filesystem operations.).
How can I check Go dependencies for CVE-2026-142651?
Run the dependency tree command: 'inspect dependencies for github.com/clidey/whodb/core'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-2mwr-p8j5-rm33",
  "modified" : "2026-12-03T17:52:26Z",
  "published" : "2026-12-03T17:52:26Z",
  "aliases" : [ "CVE-2026-142651" ],
  "summary" : "WhoDB: Unauthenticated host file read through forged profile trust",
  "details" : "## Summary\n\nWhoDB accepted a client-controlled `IsProfile` flag from legacy Bearer and `Token` cookie credentials. Setting this flag to `true` allowed an unauthenticated requester to pass arbitrary advanced MySQL connection options, including `allowAllFiles=true`, to `go-sql-driver/mysql`.\n\nAn attacker who can reach WhoDB and operate a MySQL server reachable from the WhoDB host can make the driver answer a `LOAD DATA LOCAL INFILE` request with a file from the WhoDB host. Files are limited to those readable by the WhoDB process, and their contents are sent to the attacker-controlled MySQL server.\n\nThis is a bypass of the trust boundary introduced while remediating CVE-2025-24787 / GHSA-c7w4-9wv8-7x7c. It has a distinct root cause and affected-version range, so it is tracked separately.\n\n## Affected path\n\nThe legacy credential middleware decoded attacker-supplied JSON directly into `Credentials`, including `IsProfile`. Inline credentials skipped server-side profile resolution, so the attacker-supplied trust flag survived.\n\nWhen `IsProfile` was true, the shared GORM connection parser copied otherwise-unrecognized advanced options into the MySQL DSN. This allowed `allowAllFiles=true` to enable unrestricted handling of MySQL `LOCAL INFILE` requests.\n\nThe attack does not require a WhoDB account, an existing session, a CSRF token, or user interaction.\n\n## Maintainer validation\n\nThe maintainers reproduced the complete data path against the vulnerable code:\n\n1. An unauthenticated Bearer credential containing `IsProfile: true` and `allowAllFiles: true` was accepted.\n2. `allowAllFiles` reached the MySQL driver configuration.\n3. A controlled MySQL server requested a chosen local file and received its contents byte-for-byte.\n\nThe issue is confirmed in releases through `0.131.0`. The vulnerable profile-option path first appears in `0.47.0`.\n\n## Impact\n\nThis permits unauthenticated disclosure of files readable by the WhoDB process. Depending on deployment configuration, those files may include application configuration, environment-backed secrets, database credentials, API keys, or other host data.\n\n## Remediation\n\nCommit `06d0670caeffee82bef5b1c9721ae1ccc39cbbcd` fixes the reported route by:\n\n- clearing client-supplied `IsProfile` before any credential processing;\n- restoring profile trust only through server-side saved-profile resolution; and\n- restricting client overrides of stored profiles to supported database selection, preventing connection targets, secrets, TLS paths, and advanced DSN options from being replaced.\n\nFocused authentication and MySQL tests pass on the fixed code.\n\n## Credit\n\nReported by Lee Zhi Yang ([Xeraaaaaaa](https://github.com/Xeraaaaaaa)).",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/clidey/whodb/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.0.0-20250216100606-65ab5cd3ca8f"
      }, {
        "fixed" : "0.0.0-20260929145727-cf6828f1a57f"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/clidey/whodb/security/advisories/GHSA-2mwr-p8j5-rm33"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/clidey/whodb/commit/06d0670caeffee82bef5b1c9721ae1ccc39cbbcd"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/clidey/whodb/commit/cf6828f1a57fda2ef7889a9e755cc2dffc4b3516"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/clidey/whodb"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/clidey/whodb/releases/tag/0.134.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-73", "CWE-863" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-12-03T17:52:26Z",
    "nvd_published_at" : null
  }
}