CVE-2026-61828 Details
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.
A vulnerability exists in the Nixpkgs MySQL module for NixOS versions prior to 25.11 and 26.05. The issue allows local users, including unprivileged web or CGI processes, to log in as the root user without a password when using MySQL or Percona Server. This vulnerability arises because the MySQL database is initialized with insecure authentication by default, permitting unauthorized access to the root account. The problem is exacerbated by the fact that existing deployments will not be automatically fixed, potentially leaving systems vulnerable.
Users can manually secure the root user by logging into MySQL as the root user and executing the command 'ALTER USER root@localhost IDENTIFIED WITH auth_socket;'. This command configures the root user to use socket-based authentication, which requires no password for local connections. Alternatively, if non-root users need to access MySQL as root, a password can be set for the root account. For new deployments, the MySQL module will use socket authentication by default, but this change does not apply to existing deployments on NixOS versions prior to 26.11.
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 Jul 15, 2026CISA-ADP
Assessed Jul 15, 2026References 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/NixOS/nixpkgs/commit/3f68d7ad2a6865ff8b4910d89f173d7258bad8dd | [email protected] | Source CodeVendor |
| https://github.com/NixOS/nixpkgs/commit/4aed47116a8734922763cd8f477467b0a0bcd6d7 | [email protected] | Source CodeVendor |
| https://github.com/NixOS/nixpkgs/commit/f8ee41468a7a8f9ed3a8cc7d017151c2ca6f90b5 | [email protected] | Source CodeVendor |
| https://github.com/NixOS/nixpkgs/pull/534254 | [email protected] | Issue TrackingVendor |
| https://github.com/NixOS/nixpkgs/pull/534482 | [email protected] | Issue TrackingVendor |
| https://github.com/NixOS/nixpkgs/pull/534484 | [email protected] | Issue TrackingVendor |
| https://github.com/NixOS/nixpkgs/security/advisories/GHSA-6qxx-6rg8-c4p8 | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-276 | Incorrect Default Permissions | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| NixOS | < 26.11 |
CPE
Remediation
| |
| MySQL | All versions |
CPE
Remediation
| |
| Percona-Server | All versions |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 15, 2026 | CVE Modified | CISA-ADP |
| Jul 15, 2026 | New CVE Received | [email protected] |
Volerion