A heap buffer overflow flaw was found in the SASL I/O layer of 389 Directory Server (389-ds-base). (CVE-2026-18355)
Description
A heap buffer overflow flaw was found in the SASL I/O layer of 389 Directory Server (389-ds-base). In sasl_io_start_packet(), the wrapped-record length read from the wire is validated only against an upper bound. A small wire length (0, 1, or 2) produces an encrypted_buffer_count below the already-consumed encrypted_buffer_offset, causing an unsigned subtraction underflow in sasl_io_read_packet(). PR_Recv is then requested to read approximately 4 GiB into a 1024-byte heap buffer, resulting in a heap buffer overflow with attacker-controlled content. After a successful SASL bind with integrity protection (SSF > 0), a remote authenticated attacker can cause a denial of service or potentially achieve remote code execution. This flaw is distinct from CVE-2026-11774, whose fix only guards against upper-bound overflow.
CVSS v3.1
Score 7.5high
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-18355 is a heap buffer overflow vulnerability in the SASL I/O layer of 389 Directory Server (389-ds-base). The flaw arises in sasl_io_start_packet() where the wrapped-record length read from the network is only validated against an upper bound. When a small length (0, 1, or 2) is received, it causes an unsigned subtraction underflow in sasl_io_read_packet(), leading to a request to read approximately 4 GiB into a 1024-byte heap buffer. This results in a heap buffer overflow with attacker-controlled data. After a successful SASL bind with integrity protection (SSF > 0), a remote authenticated attacker can exploit this to cause denial of service or potentially execute arbitrary code. This vulnerability is independent of CVE-2026-11774, which only addressed upper-bound overflow. Red Hat has issued a critical security advisory with patches for affected versions of 389-ds-base on Red Hat Enterprise Linux 7 Extended Lifecycle Support.
Potential Impact
The vulnerability allows a remote authenticated attacker, after successful SASL bind with integrity protection, to cause a heap buffer overflow by sending a specially crafted SASL wrapped record with a small length prefix. This can lead to denial of service (crash or resource exhaustion) or potentially remote code execution, impacting confidentiality, integrity, and availability of the affected system. The CVSS v3.1 base score is 7.5 (high severity) with network attack vector, high attack complexity, low privileges required, no user interaction, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Red Hat has released an official security update for 389-ds-base that addresses this vulnerability. Users should apply the update as soon as possible to remediate the issue. No practical mitigations other than applying the patch have been identified. Deployments that do not negotiate a SASL security layer after bind are not exposed on this path.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-r5vv-79fp-2427
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-18355"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
- State
- PUBLISHED
Patch Information
Threat ID: 6a9f9109acd9273b49ff266d
Added to database: 09/08/2026, 04:37:29 UTC
Last enriched: 09/08/2026, 05:23:08 UTC
Last updated: 10/23/2026, 01:15:22 UTC
Views: 49
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.