CVE-2026-24031
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 · uneditedDovecot SQL based authentication can be bypassed when auth_username_chars is cleared by admin. This vulnerability allows bypassing authentication for any user and user enumeration. Do not clear auth_username_chars. If this is not possible, install latest fixed version. No publicly available exploits are known.
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 confidenceDovecot's SQL-based authentication can be bypassed when the auth_username_chars configuration directive is cleared (emptied) by an administrator. This allows attackers to bypass authentication entirely for any user account and perform user enumeration to discover valid usernames in the system.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data< 2.4.3< 3.1.4CVSS 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
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- Low
- Integrity
- High
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N
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 checksWork through these to decide whether this CVE applies to you.
-
Check Dovecot versionRun 'doveadm version' or 'dovecot --version' to determine the installed versionAffected if Version is below 2.4.3 for Dovecot or below 3.1.4 for Open Xchange Dovecot
-
Locate Dovecot configurationCommon locations are /etc/dovecot.conf, /etc/dovecot/conf.d/, or /usr/local/etc/dovecot.conf. Check dovecot -n for the actual config pathAffected if Configuration file found with auth_username_chars setting present but empty
-
Verify auth_username_chars settingSearch config files for 'auth_username_chars' using grep. Check if it appears as 'auth_username_chars = ' with nothing after the equals sign, or is commented out (defaulting to empty in some contexts)Affected if auth_username_chars is set to empty string or not explicitly defined and relying on default behavior that allows empty value
-
Confirm SQL authentication is in useCheck for 'passdb sql' or 'userdb sql' in the Dovecot configuration to confirm SQL-based authentication is enabledAffected if SQL passdb or userdb is configured AND auth_username_chars is empty
If running an affected version of Dovecot with SQL authentication AND the auth_username_chars configuration option is set to empty or not properly defined, the environment is vulnerable to authentication bypass.
Generated from the published advisory. Verify against your own configuration.
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 · scoped2.4.33.1.4
Ensure auth_username_chars is properly configured with valid character sets and never left empty; if this cannot be done, upgrade to the latest Dovecot version containing the security fix.
Dovecot >= 2.4.3 or Dovecot >= 3.1.4
- 1. Locate the Dovecot configuration file (typically /etc/dovecot/conf.d/ or /etc/dovecot/dovecot.conf)
- 2. Search for the auth_username_chars setting in the configuration
- 3. Ensure auth_username_chars is NOT cleared or left empty - it should contain a valid character set (e.g., auth_username_chars = @abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_@)
- 4. If auth_username_chars was previously cleared, restore it to the default or a custom valid character set
- 5. Restart the Dovecot service to apply changes (e.g., systemctl restart dovecot)
- 6. Alternatively, if the configuration change is not feasible, upgrade Dovecot to version 2.4.3 or later for the 2.x branch, or 3.1.4 or later for the 3.x branch
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation3.0 h
- Testing2.0 h
- Review / QA1.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,272.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-24031 — 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 sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-24031 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
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.
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.
- 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