
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-107161 is a heap-based buffer overflow vulnerability in the Cyrus SASL library's DIGEST-MD5 plugin, specifically in the add_to_challenge() function. The flaw allows a malicious or on-path DIGEST-MD5 (or HTTP Digest) server to crash or potentially compromise a connecting client by supplying crafted challenge fields (e.g., realm or nonce) containing special characters that require escaping. It was discovered by Bruno Fournier and AISLE Research in partnership with Red Hat, reported internally on 2026-04-21, and publicly disclosed on 2026-10-07. Affected software includes cyrus-sasl as shipped by Red Hat (confirmed in version 2.1.28-29.el10 and related RHEL releases); the DIGEST-MD5 mechanism has been removed from upstream Cyrus SASL but remains in Red Hat-distributed packages. The CVSS v3.1 base score is 7.5 (High) (Red Hat CVE, Github Advisory).
The root cause is an incorrect buffer size calculation (CWE-122: Heap-based Buffer Overflow) in add_to_challenge() within plugins/digestmd5.c. The function computes newlen based on the unquoted length of a challenge field value before DIGEST-MD5 quoting (escaping of " and \ characters) is applied; when quoting expands the value, the stale pre-quote newlen is passed to _plug_buf_alloc(), resulting in an undersized heap buffer. The expanded quoted string is then appended via strcat(), causing a heap out-of-bounds write whose magnitude is controlled by the attacker-supplied input. Exploitation requires a client to initiate DIGEST-MD5 or HTTP Digest authentication against a malicious or on-path server that sends a crafted challenge field with many escapable characters (e.g., repeated \" sequences in the nonce or opaque fields), triggering the overflow during response generation (Red Hat Bugzilla, Openwall oss-security).
The directly demonstrated impact is a client-side crash (denial of service) when a vulnerable Cyrus SASL client authenticates using DIGEST-MD5 or HTTP Digest against a malicious or on-path server. In a worst-case scenario, the heap corruption could be leveraged for arbitrary code execution within the client process context, potentially exposing sensitive data (confidentiality) or enabling unauthorized modification (integrity), though code execution has not been publicly demonstrated and depends on allocator state and heap layout. Red Hat rates the practical impact as Moderate given the deprecated status of DIGEST-MD5, the requirement for a malicious or on-path server, and that only denial-of-service has been confirmed (Red Hat CVE).
No public proof-of-concept exploit code or in-the-wild exploitation has been reported as of the available data. The EPSS score is approximately 0.238% (Feedly data), indicating a low near-term exploitation probability. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires high attack complexity — specifically, the attacker must control or be positioned on-path to a server that the victim client authenticates to using DIGEST-MD5 or HTTP Digest, and user interaction (initiating authentication) is required. The NVD SSVC assessment notes exploitation as "none" at time of analysis (Red Hat CVE, Github Advisory).
cyrus-sasl-md5.nonce or opaque) populated with many characters requiring escaping (e.g., repeated \" or \\ sequences), so that the quoted value is significantly longer than the unquoted value.add_to_challenge() function allocates a buffer sized for the unquoted value, then appends the longer quoted value via strcat(), causing a heap out-of-bounds write — most likely resulting in a crash (DoS) or, under favorable heap conditions, potential code execution (Red Hat Bugzilla, Openwall oss-security).nonce/realm/opaque fields containing high densities of quote or backslash characters.cyrus-imapd, openldap clients, curl); SASL authentication failure messages immediately preceding a process crash; AddressSanitizer or memory sanitizer reports referencing add_to_challenge() or strcat in plugins/digestmd5.c.core.*) in application working directories following authentication attempts against external servers (Red Hat Bugzilla).Red Hat recommends removing the cyrus-sasl-md5 package if DIGEST-MD5 authentication is not required, using: dnf remove cyrus-sasl-md5. This eliminates the vulnerable plugin but also removes support for CRAM-MD5; services relying on these mechanisms must be reconfigured. Alternatively, configure client applications to disable DIGEST-MD5 and HTTP Digest authentication, preferring stronger mechanisms such as GSSAPI or SCRAM. Active services using SASL may need to be restarted to unload the plugin from memory after removal. SUSE has released a fix (SUSE-SU-2026:4836-1) and openSUSE security announcements have been issued; users on those platforms should apply available updates (Red Hat CVE, SUSE Advisory).
Alan Coopersmith of Oracle Solaris Engineering posted to the oss-security mailing list on 2026-10-09, highlighting that Cyrus SASL has multiple unresolved security issues with no upstream maintainer response and no new release since 2022, drawing broader community attention to the project's maintenance status (Openwall oss-security). The vulnerability was also noted in the context of Microsoft's October 2026 Patch Tuesday, which addressed over 1,400 flaws, though CVE-2026-107161 itself is a Cyrus SASL/Linux ecosystem issue (BleepingComputer). Red Hat explicitly noted that the DIGEST-MD5 mechanism was declared Historic by RFC 6331 and has been removed from upstream Cyrus SASL, contextualizing the risk as limited to legacy deployments.
Fix availability across major Linux distributions and their releases.
bookworm
cyrus-sasl2: 2.1.28+dfsg-10+deb12u1
sid
cyrus-sasl2: 2.1.28+dfsg1-12
trixie
cyrus-sasl2
bionic (esm-infra)
cyrus-sasl2
devel
cyrus-sasl2
focal (esm-infra)
cyrus-sasl2
jammy
cyrus-sasl2
noble
cyrus-sasl2
resolute
cyrus-sasl2
trusty (esm-infra-legacy)
cyrus-sasl2
xenial (esm-infra-legacy)
cyrus-sasl2
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."