CVE-2026-116200: Php Ldap Starttls Unchecked Return

The result of ldap_start_tls() is discarded. If the StartTLS upgrade of the LDAP connection fails (e.g. an on-path attacker answers the StartTLS extended request with a protocol error), execution continues on the still-cleartext connection and a subsequent ldap_bind() sends the bind DN and password in plaintext. Fail closed instead, e.g. if (!ldap_start_tls(

Provally CuratedPublic repositoryHighHigh confidenceVerifiedApache-2.0PHP
greprules fetch cve-2026-116200-php-ldap-starttls-unchecked-return --engine opengrep

Description

The result of ldap_start_tls() is discarded. If the StartTLS upgrade of the LDAP connection fails (e.g. an on-path attacker answers the StartTLS extended request with a protocol error), execution continues on the still-cleartext connection and a subsequent ldap_bind() sends the bind DN and password in plaintext. Fail closed instead, e.g. if (!ldap_start_tls(