Incorrect Default PermissionsWeakness · CWE-276

CVE-2026-61828

HIGH · 8.5 CVSS v4.0 Published 2026-07-15
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
87/100
Remediation priority · High
Zero-click 5 weeks old

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

The NixOS MySQL module (services.mysql) initializes the MySQL database with a configuration flaw that allows any local user on the same host to authenticate as the MySQL root user without providing a password. This enables local privilege escalation from any unprivileged process (such as web applications or CGI scripts) to full MySQL root access.

MitigationUpgrade to NixOS channels 25.11 or 26.05 which contain the fixed NixOS module configuration for MySQL service initialization.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Local
Complexity
Low
Privileges
Low
Authentication
X
User interaction
None
Scope
X

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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Confirm NixOS MySQL module is in use
    Check if your system uses the NixOS MySQL module by examining /etc/nixos/configuration.nix for 'services.mysql' entries or checking if MySQL was deployed via NixOS
    Affected if MySQL was deployed using NixOS services.mysql module
  2. Verify MySQL service is running
    Run 'systemctl status mysql' or 'systemctl status mariadb' to confirm the MySQL/MariaDB service is active on the system
    Affected if MySQL or MariaDB service is running
  3. Test passwordless root authentication
    Execute 'mysql -u root' or 'mysql -u root -p' with an empty password to attempt unauthenticated access to MySQL as the root user
    Affected if You can connect to MySQL as root without providing any password
  4. Examine MySQL user authentication settings
    Run 'SELECT user,host,plugin FROM mysql.user WHERE user="root";' inside MySQL to check which authentication method the root user is configured to use
    Affected if The root user is configured with unix_socket, auth_socket, or no password authentication (empty password field)
  5. Check MySQL initialization scripts
    Review /var/lib/mysql or the MySQL data directory for any world-writable configuration files or initialization scripts that may allow passwordless access
    Affected if MySQL initialization was performed with insecure settings allowing universal root access

Your system is affected if it runs MySQL via the NixOS services.mysql module and allows unauthenticated root access (empty password or unix_socket authentication).

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Upgrade to NixOS channels 25.11 or 26.05 which contain the fixed NixOS module configuration for MySQL service initialization.

Recommended fix High confidence

Upgrade Nixpkgs channel to version 25.11 or 26.05 (e.g., nixos-25.11 or nixos-26.05)

  1. Identify your current Nixpkgs channel version using `nix-channel --list` or `nix-instantiate --eval -r '<nixpkgs>' -A lib.version`
  2. Upgrade the Nixpkgs channel to version 25.11 or 26.05 by running `nix-channel --add https://nixos.org/channels/nixos-25.11 nixpkgs` (or nixos-26.05)
  3. Update the channel with `nix-channel --update`
  4. For NixOS systems: run `sudo nixos-rebuild switch` to apply the updated packages and MySQL service fix
  5. For non-NixOS with Nix: run `nix-env -u` to upgrade installed packages
  6. Restart the MySQL service to ensure it uses the properly initialized database with correct permissions
Caveat Minor: Ensure any custom MySQL configurations are compatible with the updated package versions before rebuilding

Generated from the published advisory — verify against the referenced sources before acting.

Have this fixed Scoped from the published advisory
  • Consultation2.0 h
  • Implementation1.0 h
  • Testing2.0 h
  • Review / QA1.0 h
6.0 hours of engineering $1,060
Get help mitigating

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $1,696.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2026-61828 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2026-61828 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data