CVEfocus › CVE database › CVE-2026-107161

CVE-2026-107161Cyrus-sasl: heap buffer overflow in cyrus-sasl add_to_challenge() allows malicious…

CVSS 7.5 HighEPSS 0.5% (higher than 35% of CVEs)Published 2026-10-07Updated 2026-11-24Assigner: redhat

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.

CWE-122

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

2Fixed
49Fix pending
3Under investigation
9Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10cyrus-sasl2Fix pendingUBUNTU-CVE-2026-107161
Ubuntu 26.04cyrus-sasl2Under investigationUBUNTU-CVE-2026-107161
Ubuntu 24.04cyrus-sasl2Under investigationUBUNTU-CVE-2026-107161
Ubuntu 22.04cyrus-sasl2Under investigationUBUNTU-CVE-2026-107161
Ubuntu 20.04cyrus-sasl2Fix pendingUBUNTU-CVE-2026-107161
Ubuntu 18.04cyrus-sasl2Fix pendingUBUNTU-CVE-2026-107161
Ubuntu 16.04cyrus-sasl2Fix pendingUBUNTU-CVE-2026-107161
Ubuntu 14.04cyrus-sasl2Fix pendingUBUNTU-CVE-2026-107161
Debian 14cyrus-sasl2Fixed2.1.28+dfsg1-12DEBIAN-CVE-2026-107161
Debian 13cyrus-sasl2Fix pendingDEBIAN-CVE-2026-107161
Debian 12cyrus-sasl2Fixed2.1.28+dfsg-10+deb12u1DEBIAN-CVE-2026-107161
Red Hat Enterprise Linux 10cyrus-saslFix pending
Affected
Red Hat Enterprise Linux 10cyrus-sasl-develFix pending
Affected
Red Hat Enterprise Linux 10cyrus-sasl-gs2Fix pending
Affected
Red Hat Enterprise Linux 10cyrus-sasl-gssapiFix pending
Affected
Red Hat Enterprise Linux 10cyrus-sasl-ldapFix pending
Affected
Red Hat Enterprise Linux 10cyrus-sasl-libFix pending
Affected
Red Hat Enterprise Linux 10cyrus-sasl-md5Fix pending
Affected
Red Hat Enterprise Linux 10cyrus-sasl-plainFix pending
Affected
Red Hat Enterprise Linux 10cyrus-sasl-scramFix pending
Affected
Red Hat Enterprise Linux 10cyrus-sasl-sqlFix pending
Affected
Red Hat Enterprise Linux 9cyrus-saslFix pending
Affected
Red Hat Enterprise Linux 9cyrus-sasl-develFix pending
Affected
Red Hat Enterprise Linux 9cyrus-sasl-gs2Fix pending
Affected
Red Hat Enterprise Linux 9cyrus-sasl-gssapiFix pending
Affected
Red Hat Enterprise Linux 9cyrus-sasl-ldapFix pending
Affected
Red Hat Enterprise Linux 9cyrus-sasl-libFix pending
Affected
Red Hat Enterprise Linux 9cyrus-sasl-md5Fix pending
Affected
Red Hat Enterprise Linux 9cyrus-sasl-ntlmFix pending
Affected
Red Hat Enterprise Linux 9cyrus-sasl-plainFix pending
Affected
Red Hat Enterprise Linux 9cyrus-sasl-scramFix pending
Affected
Red Hat Enterprise Linux 9cyrus-sasl-sqlFix pending
Affected
Red Hat Enterprise Linux 8cyrus-saslFix pending
Affected
Red Hat Enterprise Linux 8cyrus-sasl-develFix pending
Affected
Red Hat Enterprise Linux 8cyrus-sasl-gs2Fix pending
Affected
Red Hat Enterprise Linux 8cyrus-sasl-gssapiFix pending
Affected
Red Hat Enterprise Linux 8cyrus-sasl-ldapFix pending
Affected
Red Hat Enterprise Linux 8cyrus-sasl-libFix pending
Affected
Red Hat Enterprise Linux 8cyrus-sasl-md5Fix pending
Affected
Red Hat Enterprise Linux 8cyrus-sasl-ntlmFix pending
Affected
Red Hat Enterprise Linux 8cyrus-sasl-plainFix pending
Affected
Red Hat Enterprise Linux 8cyrus-sasl-scramFix pending
Affected
Red Hat Enterprise Linux 8cyrus-sasl-sqlFix pending
Affected
Red Hat Enterprise Linux 7cyrus-saslFix pending
Affected
Red Hat Enterprise Linux 7cyrus-sasl-develFix pending
Affected
Red Hat Enterprise Linux 7cyrus-sasl-gs2Fix pending
Affected
Red Hat Enterprise Linux 7cyrus-sasl-gssapiFix pending
Affected
Red Hat Enterprise Linux 7cyrus-sasl-ldapFix pending
Affected
Red Hat Enterprise Linux 7cyrus-sasl-libFix pending
Affected
Red Hat Enterprise Linux 7cyrus-sasl-md5Fix pending
Affected
Red Hat Enterprise Linux 7cyrus-sasl-ntlmFix pending
Affected
Red Hat Enterprise Linux 7cyrus-sasl-plainFix pending
Affected
Red Hat Enterprise Linux 7cyrus-sasl-scramFix pending
Affected
Red Hat Enterprise Linux 7cyrus-sasl-sqlFix pending
Affected
Red Hat Enterprise Linux 6cyrus-saslWill not fix
Out of support scope
Red Hat Enterprise Linux 6cyrus-sasl-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6cyrus-sasl-gssapiWill not fix
Out of support scope
Red Hat Enterprise Linux 6cyrus-sasl-ldapWill not fix
Out of support scope
Red Hat Enterprise Linux 6cyrus-sasl-libWill not fix
Out of support scope
Red Hat Enterprise Linux 6cyrus-sasl-md5Will not fix
Out of support scope
Red Hat Enterprise Linux 6cyrus-sasl-ntlmWill not fix
Out of support scope
Red Hat Enterprise Linux 6cyrus-sasl-plainWill not fix
Out of support scope
Red Hat Enterprise Linux 6cyrus-sasl-sqlWill 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.

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

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.