CVE-2026-107161 Details
Description
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.
A heap-based buffer overflow vulnerability has been identified in Cyrus SASL, specifically within the DIGEST-MD5 plugin. The issue arises in the add_to_challenge() function, which calculates the buffer size needed for challenge/response fields before applying DIGEST-MD5 quoting. However, it fails to adjust the size after quoting increases the length of the value. This oversight allows an under-sized buffer to be passed to strcat(), leading to a heap-based out-of-bounds write. The vulnerability can be exploited by a malicious or on-path DIGEST-MD5 server that sends a crafted challenge field, such as realm or nonce, potentially causing the client application to crash.
If DIGEST-MD5 authentication is not needed, remove the cyrus-sasl-md5 package. Alternatively, configure applications to disable DIGEST-MD5 and HTTP Digest authentication, opting for stronger methods like GSSAPI or SCRAM. Note that removing cyrus-sasl-md5 will also disable CRAM-MD5 support.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Oct 10, 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.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-122 | Heap-based Buffer Overflow | [email protected] |
Affected Products
No affected product data is available for this CVE.
Change History
8 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 6, 2026 | CVE Modified | [email protected] |
| Nov 5, 2026 | CVE Modified | [email protected] |
| Oct 30, 2026 | CVE Modified | [email protected] |
| Oct 30, 2026 | CVE Modified | CVE |
| Oct 10, 2026 | CVE Modified | CISA-ADP |
| Oct 9, 2026 | CVE Modified | CVE |
| Oct 9, 2026 | CVE Modified | [email protected] |
| Oct 7, 2026 | New CVE Received | [email protected] |