CVE-2025-24375
published medium CVSS 3.1 · 5.0MySQL K8s charm could leak credentials for root-level user `serverconfig`
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| canonical | — | mysql-k8s-operator< rev221 | Affected | Not stated | GitHub_M |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.0 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| canonical | mysql-k8s-operator | < rev221 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-256 CWE-256: Plaintext Storage of a Password
References
5- https://github.com/canonical/mysql-k8s-operator/commit/7c6b1206fcbc7324b72f413c5e63216e742a71a1
- https://github.com/canonical/mysql-k8s-operator/pull/553
- https://github.com/canonical/mysql-k8s-operator/security/advisories/GHSA-g83v-7694-2hf7
- https://github.com/canonical/mysql-operator/commit/1fb61c1ee3e396cdce13d5e8155f2f32a860f89e
- https://github.com/canonical/mysql-operator/pull/579
Provider assertions
2GitHub_M · cna
MySQL K8s charm could leak credentials for root-level user `serverconfig`
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 36b908a641b40a6df187e9d01f6fdb7537cb4cd320fa8b3a950e4ce67491ae2d
- Ingested
- 23 Sep 2026, 08:41:20 UTC
- Source record
- Official CVE record