Description
PJSIP is a free and open source multimedia communication library written in C. In 2.17 and earlier, the OpenSSL and GnuTLS backends in pjlib/src/pj/ssl_sock_ossl.c and pjlib/src/pj/ssl_sock_gtls.c copy DNS SubjectAltName values with string functions that recalculate their length and truncate an embedded NUL byte. With server verification enabled through --tls-verify-server for the PJSIP TLS/SIPS transport, a certificate containing a DNS SubjectAltName formed from the target hostname prefix followed by an embedded NUL and an attacker-controlled suffix can therefore be accepted for the prefix hostname. An attacker who possesses such a certificate from a trusted issuer and can intercept the connection can impersonate the target server, complete the SIP session, and receive REGISTER credentials. The mbedTLS backend is not affected because it preserves the explicit string length. No fixed version is available as of this review.
Published: 2026-09-18
Score: 7.4 High
EPSS: < 1% Very Low
KEV: No
Impact: Impersonation and Credential Theft
Action: Assess Impact
AI Analysis

Impact

In 2.17 and earlier of the PJSIP library, the OpenSSL and GnuTLS backends copy DNS SubjectAltName values using string functions that truncate at an embedded NUL byte; a certificate that contains the target hostname prefix followed by an embedded NUL and a malicious suffix can therefore be accepted as a match for the prefix hostname when TLS server identity checking is enabled, allowing an attacker who can supply such a certificate to impersonate the intended server, intercept the SIP session, and steal REGISTER credentials without requiring code execution on the server.

Affected Systems

The vulnerability affects the PJSIP multimedia communication library (pjproject) in versions 2.17 and earlier when using the OpenSSL or GnuTLS backends; the mbedTLS backend is not affected and the flaw is located in pjlib/src/pj/ssl_sock_ossl.c and pjlib/src/pj/ssl_sock_gtls.c.

Risk and Exploitability

The CVSS score of 7.4 indicates high severity; EPSS is not available and the issue is not listed in the CISA KEV catalog. An attacker must control the network path to perform a man-in-the-middle attack and obtain a trusted certificate that includes a forged SubjectAltName; with those conditions met, the flaw can be exploited by supplying the custom certificate, enabling impersonation of the SIP server and capture of authentication credentials. The absence of a public patch increases the risk for all deployments using the affected backends until a fix is released.

Generated by OpenCVE AI on September 19, 2026 at 14:00 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Use the mbedTLS backend for TLS connections instead of OpenSSL or GnuTLS to avoid the SubjectAltName truncation flaw.
  • Disable the --tls-verify-server option until an official patch is released or block the affected TLS versions at the network perimeter.
  • Monitor certificate validation logs and network traffic for suspicious SIP sessions or unauthorized REGISTER requests, and revoke any compromised certificates immediately.

Generated by OpenCVE AI on September 19, 2026 at 14:00 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 18 Sep 2026 21:30:00 +0000

Type Values Removed Values Added
Description PJSIP is a free and open source multimedia communication library written in C. In 2.17 and earlier, the OpenSSL and GnuTLS backends in pjlib/src/pj/ssl_sock_ossl.c and pjlib/src/pj/ssl_sock_gtls.c copy DNS SubjectAltName values with string functions that recalculate their length and truncate an embedded NUL byte. With server verification enabled through --tls-verify-server for the PJSIP TLS/SIPS transport, a certificate containing a DNS SubjectAltName formed from the target hostname prefix followed by an embedded NUL and an attacker-controlled suffix can therefore be accepted for the prefix hostname. An attacker who possesses such a certificate from a trusted issuer and can intercept the connection can impersonate the target server, complete the SIP session, and receive REGISTER credentials. The mbedTLS backend is not affected because it preserves the explicit string length. No fixed version is available as of this review.
Title PJSIP: TLS server identity (hostname) verification bypass via embedded NUL in certificate SubjectAltName (OpenSSL and GnuTLS backends)
Weaknesses CWE-295
CWE-297
References
Metrics cvssV3_1

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


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-09-18T17:08:33.140Z

Reserved: 2026-09-02T18:12:13.533Z

Link: CVE-2026-84975

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-18T18:17:17.127

Modified: 2026-09-18T18:17:17.127

Link: CVE-2026-84975

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-19T14:00:15Z

Weaknesses
  • CWE-295

    Improper Certificate Validation

  • CWE-297

    Improper Validation of Certificate with Host Mismatch