CVE-2025-24375
MySQL K8s charm could leak credentials for root-level user `serverconfig`
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
0Exploited in Wild
-Decision
Descriptions
Charmed MySQL K8s operator is a Charmed Operator for running MySQL on Kubernetes. Before revision 221, the method for calling a SQL DDL or python based mysql-shell scripts can leak database users credentials. The method mysql-operator calls mysql-shell application rely on writing to a temporary script file containing the full URI, with user and password. The file can be read by a unprivileged user during the operator runtime, due it being created with read permissions (0x644). On other cases, when calling mysql cli, for one specific case when creating the operator users, the DDL contains said users credentials, which can be leak through the same mechanism of a temporary file. All versions prior to revision 221 for kubernetes and revision 338 for machine operators.
CVSS Scores
SSVC
- Decision:Track
Timeline
- 2025-01-20 CVE Reserved
- 2025-04-09 CVE Published
- 2025-04-10 CVE Updated
- 2025-05-11 EPSS Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
- ---------- First Exploit
CWE
- CWE-256: Plaintext Storage of a Password
CAPEC
References (5)
URL | Tag | Source |
---|---|---|
https://github.com/canonical/mysql-k8s-operator/commit/7c6b1206fcbc7324b72f413c5e63216e742a71a1 | X_refsource_misc | |
https://github.com/canonical/mysql-k8s-operator/pull/553 | X_refsource_misc | |
https://github.com/canonical/mysql-k8s-operator/security/advisories/GHSA-g83v-7694-2hf7 | X_refsource_confirm | |
https://github.com/canonical/mysql-operator/commit/1fb61c1ee3e396cdce13d5e8155f2f32a860f89e | X_refsource_misc | |
https://github.com/canonical/mysql-operator/pull/579 | X_refsource_misc |
URL | Date | SRC |
---|
URL | Date | SRC |
---|
URL | Date | SRC |
---|
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Canonical Search vendor "Canonical" | Mysql-k8s-operator Search vendor "Canonical" for product "Mysql-k8s-operator" | < 221 Search vendor "Canonical" for product "Mysql-k8s-operator" and version " < 221" | en |
Affected
|