Vulnerability DatabaseCVE-2026-107161

CVE-2026-107161: 
Cyrus SASL vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Exploitability

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).

Exploitation steps

  1. Reconnaissance: Identify client applications that use Cyrus SASL for DIGEST-MD5 or HTTP Digest authentication (e.g., LDAP clients, IMAP clients, or HTTP clients using SASL) on Red Hat-based systems running cyrus-sasl-md5.
  2. Establish malicious server or on-path position: Set up a rogue DIGEST-MD5 or HTTP Digest server (e.g., a fake LDAP or IMAP server), or perform a network-level man-in-the-middle attack to intercept and modify server challenge responses.
  3. Craft malicious challenge: Construct a DIGEST-MD5 challenge response containing a field (e.g., 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.
  4. Deliver challenge to client: Send the crafted challenge to the connecting Cyrus SASL client during the authentication handshake.
  5. Trigger overflow: The client's 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).

Indicators of compromise

  • Network: Unexpected or anomalous DIGEST-MD5 or HTTP Digest authentication challenge packets from unknown or untrusted servers; unusual LDAP, IMAP, or HTTP traffic with oversized or malformed nonce/realm/opaque fields containing high densities of quote or backslash characters.
  • Logs: Application crash logs or core dumps from processes using Cyrus SASL (e.g., 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.
  • Process: Unexpected termination (segfault/SIGABRT) of client applications that use SASL authentication; child processes of mail or directory clients crashing during authentication negotiation.
  • File System: Unexpected core dump files (core.*) in application working directories following authentication attempts against external servers (Red Hat Bugzilla).

Mitigation and workarounds

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).

Community reactions

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.

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

cyrus-sasl2: 2.1.28+dfsg-10+deb12u1

Fixed

sid

cyrus-sasl2: 2.1.28+dfsg1-12

Fixed

trixie

cyrus-sasl2

Affected

Ubuntu

Unknown

bionic (esm-infra)

cyrus-sasl2

Deferred

devel

cyrus-sasl2

Deferred

focal (esm-infra)

cyrus-sasl2

Deferred

jammy

cyrus-sasl2

Deferred

noble

cyrus-sasl2

Deferred

resolute

cyrus-sasl2

Deferred

trusty (esm-infra-legacy)

cyrus-sasl2

Deferred

xenial (esm-infra-legacy)

cyrus-sasl2

Deferred

RHEL / CentOS

Affected

OpenShift

Not Affected

RHEL 8

cyrus-sasl.src

Affected

RHEL 9

cyrus-sasl.src

Affected

RHEL 10

cyrus-sasl.src

Affected

Source: This report was generated using AI

Related Cyrus SASL vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-129483CRITICAL9.3
  • Cyrus SASL logoCyrus SASL
  • cyrus-sasl-ldap
NoYesNov 15, 2026
CVE-2022-24407HIGH8.8
  • NixOS logoNixOS
  • cyrus-sasl-gs2
NoYesFeb 24, 2022
CVE-2026-107161HIGH7.5
  • Cyrus SASL logoCyrus SASL
  • cyrus-sasl-lib
NoYesOct 07, 2026
CVE-2020-8032HIGH7
  • NixOS logoNixOS
  • cyrus-sasl
NoYesFeb 25, 2021
CVE-2026-132138MEDIUM5.3
  • Cyrus SASL logoCyrus SASL
  • cyrus-sasl-lib
NoYesNov 18, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management