1. Archivio CVE
  2. 2025
  3. CVE-2025-24375

CVE-2025-24375

5 Gravità media CVSS v3.1 · fonte NVD CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N 5 – Media

Descrizione

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.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
canonical mysql-k8s-operator < rev221 –

Tipo di vulnerabilità

CWE-256 Plaintext Storage of a Password

The product stores a password in plaintext within resources such as memory or files.

Impatto sui sistemi

AmbitoImpatto
Controllo degli accessi Ottenere privilegi o assumere un’altra identità

Come si previene

Architettura e progettazione Avoid storing passwords in easily accessible locations.
Architettura e progettazione Consider storing cryptographic hashes of passwords as an alternative to storing in plaintext.
A programmer might attempt to remedy the password management problem by obscuring the password with an encoding function, such as base 64 encoding, but this effort does not adequately protect the password because the encoding can be detected and decoded easily.

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 149 CVE di tipo CWE-256, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org