CVE-2025-24375 Details
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.
A vulnerability exists in the Charmed MySQL K8s operator, specifically in versions prior to 221, that can lead to the unintentional exposure of database user credentials. This issue arises from the operator's method of executing SQL Data Definition Language (DDL) or Python-based MySQL Shell scripts. The current approach involves writing a temporary script file that includes the full URI, along with the username and password. This file, created with read permissions, can be accessed by an unprivileged user while the operator is running. Additionally, when the MySQL command-line interface (CLI) is used to create operator users, the DDL can inadvertently include sensitive credentials, which may also be leaked through a similar temporary file mechanism.
Users are advised to update to version 221 or later, where this vulnerability has been addressed. For those using the MySQL K8s operator, follow the upgrade guide available on Charmhub.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Apr 9, 2025CISA-ADP
Assessed Apr 10, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/canonical/mysql-k8s-operator/commit/7c6b1206fcbc7324b72f413c5e63216e742a71a1 | [email protected] | Source CodeVendor |
| https://github.com/canonical/mysql-k8s-operator/pull/553 | [email protected] | Issue TrackingVendor |
| https://github.com/canonical/mysql-k8s-operator/security/advisories/GHSA-g83v-7694-2hf7 | [email protected] | AdvisoryRemedyVendor |
| https://github.com/canonical/mysql-operator/commit/1fb61c1ee3e396cdce13d5e8155f2f32a860f89e | [email protected] | Source CodeVendor |
| https://github.com/canonical/mysql-operator/pull/579 | [email protected] | Issue TrackingTechnical DescriptionVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-256 | Plaintext Storage of a Password | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Canonical Charmed MySQL K8s operator | All versions |
CPE
Remediation
| |
| Canonical MySQL operator | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 9, 2025 | New CVE Received | [email protected] |
Volerion