CVE-2026-57166: PJSIP: Pre-authentication overflow in the telnet CLI error

Published Sep 4, 2026
·
Updated

PJSIP is a free and open source multimedia communication library written in C. Prior to commit 4472a31, a stack buffer overflow exists in the PJLIB-UTIL telnet CLI front-end when rendering feedback for an entered command line. Several command-line handling paths write an attacker-influenced amount of data into fixed-size buffers without sufficient bounds checking, so a long command line can overflow them. This affects only applications that enable the telnet CLI front-end (e.g. pjclitelnetcreate() / --cli-telnet-port). The telnet CLI is an interactive administration interface with no authentication, so any client able to reach it can already issue arbitrary CLI commands. A malformed or overly long command line can overflow a fixed-size stack buffer while rendering command-line feedback, which may lead to application termination. Because reaching this code already requires access to the unauthenticated CLI, the impact beyond that existing access is limited. Applications that do not enable the telnet CLI front-end are not affected. This issue has been patched via commit 4472a31.

Affected Software

1 affected component
PJSIP PJLIB-UTIL telnet CLI front-end (PJLIB-UTIL telnet CLI)<4472a31

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade PJSIP to a version that resolves this vulnerability.

    Patch commit 4472a31

Event History

Sep 4, 2026
CVE Published
via MITRE·05:12 PM
Data Sourced
via MITRE·05:12 PM
DescriptionWeakness

Frequently Asked Questions

1

Which deployments are affected?

Only applications that enable the PJLIB-UTIL telnet CLI front-end, such as through pj_cli_telnet_create() or --cli-telnet-port, are affected. Applications that do not enable this front-end are not affected.

2

What access does an attacker need?

An attacker must be able to connect to the telnet CLI. This interface has no authentication, so any reachable client can issue CLI commands and submit a malformed or overly long command line.

3

What is the likely impact of exploitation?

The overflow occurs while rendering command-line feedback and may terminate the application. Impact beyond the access already provided by the unauthenticated CLI is described as limited.

4

How can this be remediated or mitigated?

Apply the patch in commit 4472a31. If patching cannot happen immediately, disable the telnet CLI front-end or restrict network reachability to it.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203