Description
Nixpkgs is a collection of software packages that can be installed with the Nix package manager. Prior to the 25.11 and 26.05 channel fixes, the NixOS module for MySQL services.mysql initializes the MySQL database in a way that allows local users, such as unprivileged web or CGI processes on the same host, to log in as the root user without a password when the service is used with mysql or percona-server. This issue is fixed in the 25.11 and 26.05.
Published: 2026-07-15
Score: 8.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The NixOS module for MySQL services initializes the database so that the root MySQL account has no password by default. This insecure configuration, a CWE‑276 vulnerability, allows any system process with local execution rights—such as a web or CGI application—to authenticate as root through the database socket without credentials, giving full control over every database on the host.

Affected Systems

Vulnerable systems are NixOS deployments that use the nixpkgs NixOS module for MySQL services in releases prior to the 25.11 and 26.05 channel fixes. The module supports mysql and percona‑server; both configurations are affected when the root account is left passwordless.

Risk and Exploitability

The CVSS score of 8.5 indicates high severity, yet the EPSS score is below 1%, implying exploitation is expected to be rare but still feasible. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires local access; an attacker who can spawn an unprivileged process on the host can immediately authenticate as root and manipulate all data stored in MySQL instances. The likely attack vector is local execution by an unprivileged user process on the same host.

Generated by OpenCVE AI on August 1, 2026 at 08:55 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to NixOS 25.11, 26.05 or later, which enforce a password for the root MySQL account.
  • If an immediate upgrade is not feasible, configure the MySQL service to require a non‑empty password for the root account or disable root access via the SQL socket from untrusted processes by applying file system permissions, firewall rules or mandatory access control policies to prevent local connections from arbitrary users.
  • Audit existing MySQL installations to identify any remaining passwordless root accounts and apply strong passwords; additionally, configure the MySQL socket or TCP port to be accessible only by trusted users or enforce Mandatory Access Control (e.g., SELinux, AppArmor) to limit local connections.

Generated by OpenCVE AI on August 1, 2026 at 08:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 28 Jul 2026 20:45:00 +0000

Type Values Removed Values Added
First Time appeared Nixos
Nixos nixos
Vendors & Products Nixos
Nixos nixos

Wed, 15 Jul 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 15 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Description Nixpkgs is a collection of software packages that can be installed with the Nix package manager. Prior to the 25.11 and 26.05 channel fixes, the NixOS module for MySQL services.mysql initializes the MySQL database in a way that allows local users, such as unprivileged web or CGI processes on the same host, to log in as the root user without a password when the service is used with mysql or percona-server. This issue is fixed in the 25.11 and 26.05.
Title nixos/mysql : `services.mysql` is configured with insecure authentication by default when used with `mysql` or `percona-server`
Weaknesses CWE-276
References
Metrics cvssV4_0

{'score': 8.5, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-15T16:32:36.992Z

Reserved: 2026-07-10T20:17:57.993Z

Link: CVE-2026-61828

cve-icon Vulnrichment

Updated: 2026-07-15T16:29:42.417Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-01T09:00:04Z

Weaknesses
  • CWE-276

    Incorrect Default Permissions