CVE-2026-57193

Asterisk: LDAP Filter Injection in res_config_ldap via SIP Username (Unauthenticated Information Disclosure)

Published Oct 26, 2026 CVSS 4.0 · 6.9 Medium EPSS 2.0% KEV · Not listed
Description
Asterisk is an open source private branch exchange and telephony toolkit. Prior to Asterisk 20.20.1, 21.12.3, 22.10.1, 23.4.1 and Certified Asterisk 20.7-cert11, 22.8-cert3, the LDAP realtime driver `res_config_ldap` may permit `LDAP filter injection` through a `SIP username`, allowing an unauthenticated attacker to make arbitrary LDAP queries using carefully crafted SIP packets and disclose information. The `res_config_ldap` module must be loaded and configured to access an LDAP server, which is not the default. This issue is fixed in Asterisk 20.20.1, 21.12.3, 22.10.1, 23.4.1 and Certified Asterisk 20.7-cert11, 22.8-cert3.

Analysis

AI-generated

Technical impact

The vulnerability resides in the res_config_ldap module of Asterisk, where an LDAP filter can be injected through the SIP username field. When a SIP packet containing a crafted username reaches the server, the filter is incorporated into an LDAP query executed against the configured directory. This allows an unauthenticated sender to retrieve arbitrary LDAP directory attributes accessible to the Asterisk service, leading to confidential information disclosure. The flaw is an LDAP injection (CWE‑90) that exploits improper input handling (CWE‑943). The flaw does not modify data or crash the system, so integrity and availability remain unaffected.

Affected Systems

Versions prior to 20.20.1, 21.12.3, 22.10.1, 23.4.1, and their Certified counterparts 20.7‑cert11 and 22.8‑cert3 of Asterisk and Certified Asterisk are vulnerable when the res_config_ldap driver is loaded and configured to contact an LDAP server. All other releases and configurations lacking the driver are not affected.

Risk and Exploitability

The CVSS base score of 6.9 indicates medium severity. The EPSS score of 2% and the fact that the vulnerability is not in the CISA KEV list suggest it is not actively exploited. Deployment can be exposed to remote attackers through SIP traffic; because SIP commonly uses ports 5060/5061, this attribution is inferred although the CVE description does not specify ports. An unauthenticated user who can reach the Asterisk instance may send the crafted packet. No prior authentication or elevated privileges are required, making this a notable remote information disclosure vector.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Asterisk to a fixed release (20.20.1, 21.12.3, 22.10.1, 23.4.1 or Certified 20.7‑cert11/22.8‑cert3).
  • If the LDAP driver is unnecessary, unload or disable res_config_ldap to eliminate the flaw.
  • Validate SIP username input and sanitize before incorporating it into LDAP query filters (addressing CWE‑943).
  • Restrict inbound SIP traffic to trusted networks, or use a firewall or ACL to limit who can send SIP requests to the server.

Generated by OpenCVE AI on November 2, 2026 at 14:32 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-90
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N'}

threat_severity

Moderate

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Asterisk
Asterisk asterisk
Asterisk certified Asterisk
Vendors & Products Asterisk
Asterisk asterisk
Asterisk certified Asterisk
Type Values Removed Values Added
Description Asterisk is an open source private branch exchange and telephony toolkit. Prior to Asterisk 20.20.1, 21.12.3, 22.10.1, 23.4.1 and Certified Asterisk 20.7-cert11, 22.8-cert3, the LDAP realtime driver `res_config_ldap` may permit `LDAP filter injection` through a `SIP username`, allowing an unauthenticated attacker to make arbitrary LDAP queries using carefully crafted SIP packets and disclose information. The `res_config_ldap` module must be loaded and configured to access an LDAP server, which is not the default. This issue is fixed in Asterisk 20.20.1, 21.12.3, 22.10.1, 23.4.1 and Certified Asterisk 20.7-cert11, 22.8-cert3.
Title Asterisk: LDAP Filter Injection in res_config_ldap via SIP Username (Unauthenticated Information Disclosure)
Weaknesses CWE-943
References
Metrics cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-90

    Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection')

  • CWE-943

    Improper Neutralization of Special Elements in Data Query Logic

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 31, 2026, 1:46 AM
Reserved
Jun 24, 2026, 2:00 AM
Status
Undergoing Analysis
Published
Oct 26, 2026, 8:17 PM
Modified
Oct 31, 2026, 2:17 AM
Severity
Moderate
Public date
Oct 26, 2026, 7:46 PM