CVE-2026-57166
Received Received - Intake

Stack Buffer Overflow in PJSIP Telnet CLI

Vulnerability report for CVE-2026-57166, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-09-04

Last updated on: 2026-09-04

Assigner: GitHub, Inc.

Description

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. pj_cli_telnet_create() / --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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-04
Last Modified
2026-09-04
Generated
2026-09-05
AI Q&A
2026-09-05
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
pjsip pjlib-util to 4472a31 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-121 A stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function).

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a stack buffer overflow in PJSIP's telnet CLI front-end. When a long command line is entered, the system writes too much data into fixed-size buffers without proper checks, causing an overflow. This only affects applications that enable the telnet CLI front-end, which is an unauthenticated interactive administration interface.

Detection Guidance

Check if the telnet CLI front-end is enabled by searching for pj_cli_telnet_create() or --cli-telnet-port in application configurations or startup logs. If enabled, test with long command inputs to observe crashes or buffer overflow symptoms.

Impact Analysis

The impact is limited because accessing the vulnerable code requires prior access to the unauthenticated CLI. However, a successful overflow could terminate the application. Systems not using the telnet CLI front-end are unaffected.

Mitigation Strategies

Disable the telnet CLI front-end by removing pj_cli_telnet_create() calls or --cli-telnet-port arguments. Update to a patched version with commit 4472a31 applied. Ensure network access to the CLI is restricted if it must remain enabled.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-57166. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart