CVE-2025-24375 json
MySQL K8s charm could leak credentials for root-level user `serverconfig`
published 2025-04-09 19 mo ago modified 2026-06-17 4 mo ago also EUVD-2025-10672
- cvss
- 5.0
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 6%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- github.com/canonical/mysql-k8s-operator@7c6b120 commit
- github.com/canonical/mysql-operator@1fb61c1 commit
- github.com/canonical/mysql-k8s-operator#553 pull request
- github.com/canonical/mysql-operator#579 pull request
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
0.17% chance of exploitation in the next 30 days, higher than 6% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.0 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N |
Affected products
- canonical mysql-k8s-operator
Classification
- Weakness
-
- CWE-256 Plaintext Storage of a Password
References
- github.com /canonical/mysql-k8s-operator/pull/553
- github.com /canonical/mysql-operator/pull/579
- github.com /canonical/mysql-k8s-operator/commit/7c6b1206fcbc7324b72f413c5e63216e742a71a1
- github.com /canonical/mysql-operator/commit/1fb61c1ee3e396cdce13d5e8155f2f32a860f89e
- github.com /canonical/mysql-k8s-operator/security/advisories/GHSA-g83v-7694-2hf7
Sources
- CVE List CVE-2025-24375
- NVD CVE-2025-24375
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.