CVE-2026-107161Cyrus-sasl: heap buffer overflow in cyrus-sasl add_to_challenge() allows malicious…
A heap-based buffer overflow flaw was found in Cyrus SASL. The add_to_challenge() function in the DIGEST-MD5 plugin computes the size of the buffer needed for a challenge/response field before DIGEST-MD5 quoting is applied, but does not recompute that size when quoting (escaping special characters) makes the value longer. The under-sized buffer is then passed to strcat(), causing a heap-based out-of-bounds write whose size depends on attacker-controlled input. A malicious or on-path DIGEST-MD5 (or HTTP Digest) server can trigger this flaw in a connecting client by supplying a crafted challenge field, such as realm or nonce, most likely resulting in a crash of the client application.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | cyrus-sasl2 | Fix pending | UBUNTU-CVE-2026-107161 | |
| Ubuntu 26.04 | cyrus-sasl2 | Under investigation | UBUNTU-CVE-2026-107161 | |
| Ubuntu 24.04 | cyrus-sasl2 | Under investigation | UBUNTU-CVE-2026-107161 | |
| Ubuntu 22.04 | cyrus-sasl2 | Under investigation | UBUNTU-CVE-2026-107161 | |
| Ubuntu 20.04 | cyrus-sasl2 | Fix pending | UBUNTU-CVE-2026-107161 | |
| Ubuntu 18.04 | cyrus-sasl2 | Fix pending | UBUNTU-CVE-2026-107161 | |
| Ubuntu 16.04 | cyrus-sasl2 | Fix pending | UBUNTU-CVE-2026-107161 | |
| Ubuntu 14.04 | cyrus-sasl2 | Fix pending | UBUNTU-CVE-2026-107161 | |
| Debian 14 | cyrus-sasl2 | Fixed | 2.1.28+dfsg1-12 | DEBIAN-CVE-2026-107161 |
| Debian 13 | cyrus-sasl2 | Fix pending | DEBIAN-CVE-2026-107161 | |
| Debian 12 | cyrus-sasl2 | Fixed | 2.1.28+dfsg-10+deb12u1 | DEBIAN-CVE-2026-107161 |
| Red Hat Enterprise Linux 10 | cyrus-sasl | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | cyrus-sasl-devel | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | cyrus-sasl-gs2 | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | cyrus-sasl-gssapi | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | cyrus-sasl-ldap | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | cyrus-sasl-lib | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | cyrus-sasl-md5 | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | cyrus-sasl-plain | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | cyrus-sasl-scram | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | cyrus-sasl-sql | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | cyrus-sasl | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | cyrus-sasl-devel | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | cyrus-sasl-gs2 | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | cyrus-sasl-gssapi | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | cyrus-sasl-ldap | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | cyrus-sasl-lib | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | cyrus-sasl-md5 | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | cyrus-sasl-ntlm | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | cyrus-sasl-plain | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | cyrus-sasl-scram | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | cyrus-sasl-sql | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | cyrus-sasl | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | cyrus-sasl-devel | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | cyrus-sasl-gs2 | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | cyrus-sasl-gssapi | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | cyrus-sasl-ldap | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | cyrus-sasl-lib | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | cyrus-sasl-md5 | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | cyrus-sasl-ntlm | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | cyrus-sasl-plain | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | cyrus-sasl-scram | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | cyrus-sasl-sql | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | cyrus-sasl | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | cyrus-sasl-devel | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | cyrus-sasl-gs2 | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | cyrus-sasl-gssapi | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | cyrus-sasl-ldap | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | cyrus-sasl-lib | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | cyrus-sasl-md5 | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | cyrus-sasl-ntlm | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | cyrus-sasl-plain | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | cyrus-sasl-scram | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | cyrus-sasl-sql | Fix pending Affected | ||
| Red Hat Enterprise Linux 6 | cyrus-sasl | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | cyrus-sasl-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | cyrus-sasl-gssapi | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | cyrus-sasl-ldap | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | cyrus-sasl-lib | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | cyrus-sasl-md5 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | cyrus-sasl-ntlm | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | cyrus-sasl-plain | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | cyrus-sasl-sql | Will not fix Out of support scope |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat Hardened Images
- Red Hat OpenShift AI (RHOAI)
Workaround: If DIGEST-MD5 authentication is not strictly required, remove the optional cyrus-sasl-md5 package to eliminate the vulnerable plugin: # dnf remove cyrus-sasl-md5 Alternatively, configure client applications to disable DIGEST-MD5 and HTTP Digest authentication methods, prioritizing stronger mechanisms such as GSSAPI or SCRAM. Caveat: Removing cyrus-sasl-md5 removes support for both DIGEST-MD5 and CRAM-MD5 mechanisms. Any client or server process depending on these algorithms will fail to negotiate authentication. Active services utilizing SASL may need to be restarted to unload the plugin from memory.
References
- https://access.redhat.com/security/cve/CVE-2026-107161
- https://bugzilla.redhat.com/show_bug.cgi?id=2460420
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.