Vulnerability · Published Jul 30, 2026 · Assigned by GitHub_M
CVE-2026-62845Kamaji: SQL injection via unescaped datastore identifiers in PostgreSQL/MySQL drivers
Medium 4.7
In plain English
A medium-severity SQL injection in kamaji from clastix. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 26% of all known vulnerabilities).
Official description
Kamaji is the Hosted Control Plane Manager for Kubernetes. Prior to 26.7.4-edge, the PostgreSQL and MySQL datastore drivers build DDL statements by interpolating the user-supplied DataStoreUsername/DataStoreSchema directly into SQL via fmt.Sprintf, without escaping identifiers. These fields have no format validation, so a value containing a quote character breaks out of the quoted identifier — SQL injection executed over Kamaji's root connection to the shared datastore. etcd driver is not affected.This issue is fixed in version 26.7.4-edge.
Affected products (as reported)
Weakness: CWE-89 · Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L
References
- https://github.com/clastix/kamaji/security/advisories/GHSA-r47v-ppwp-fh4r x_refsource_CONFIRM
- https://github.com/clastix/kamaji/commit/6a9f3e10ae408e7948e2aca2db694791a299e79c x_refsource_MISC
- https://github.com/clastix/kamaji/releases/tag/26.7.4-edge x_refsource_MISC