# CVE-2025-24375: MySQL K8s charm could leak credentials for root-level user `serverconfig`

- Severity: Medium 5.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2025-04-09T22:21:37.858Z
- Modified: 2026-06-17T08:58:55.693Z
- Weaknesses: CWE-256
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- canonical mysql-k8s-operator: < rev221

## References

- <https://github.com/canonical/mysql-k8s-operator/security/advisories/GHSA-g83v-7694-2hf7>
- <https://github.com/canonical/mysql-k8s-operator/pull/553>
- <https://github.com/canonical/mysql-operator/pull/579>
- <https://github.com/canonical/mysql-k8s-operator/commit/7c6b1206fcbc7324b72f413c5e63216e742a71a1>
- <https://github.com/canonical/mysql-operator/commit/1fb61c1ee3e396cdce13d5e8155f2f32a860f89e>

## Sources

- CVE List: [CVE-2025-24375](https://www.cve.org/CVERecord?id=CVE-2025-24375), CVE Terms of Use, modified 2025-04-10
- NVD: [CVE-2025-24375](https://nvd.nist.gov/vuln/detail/CVE-2025-24375), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-24375 · Whole record: https://cve.day/CVE-2025-24375.json · Rebuilt by cve.day 2026-11-25T22:58:56.355Z
