CVE-2026-57165

PJSIP: Pre-authentication overflow in the telnet CLI history

Published Sep 4, 2026 CVSS 4.0 · 6.3 Medium EPSS < 1% KEV · Not listed
Description
PJSIP is a free and open source multimedia communication library written in C. Prior to commit 628b716, a stack buffer overflow exists in the PJLIB-UTIL telnet CLI front-end when redrawing the command line during history recall (handle_up_down() in cli_telnet.c). This affects only applications that enable the telnet CLI front-end (same gating as the related CLI issue). The line-redraw sequence for a recalled history entry can accumulate more data than a fixed-size stack buffer holds, which may lead to application termination. Exploitation requires access to the unauthenticated telnet CLI, which already permits arbitrary CLI commands, so the additional impact is limited. Applications that do not enable the telnet CLI front-end are not affected. This issue has been patched via commit 628b716.

Analysis

AI-generated

Technical impact

PJSIP's telnet command line interface contains a stack-based buffer overflow that is triggered when a command history entry is recalled and the line is redrawn. When the recalled entry is longer than the fixed-size buffer used for the redraw, the overflow can corrupt the stack and cause the application to terminate. The overflow does not grant execution of arbitrary code, so the primary consequence is a denial‑of‑service to the running application.

Affected Systems

The vulnerability exists in the PJLIB-UTIL telnet CLI module that ships with pjproject from pjsip. Only installations that enable the telnet CLI front‑end are affected; applications that have disabled this front‑end are unaffected.

Risk and Exploitability

The CVSS score of 6.3 indicates a moderate severity, and the lack of an EPSS score or KEV listing means no public exploitation data is currently available. Exploitation requires access to the unauthenticated telnet CLI, which already allows arbitrary CLI commands. The additional impact of the overflow is limited to application termination, providing a denial‑of‑service vector rather than remote code execution.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the patch introduced by commit 628b716 to update pjproject to the fixed version
  • If a patch cannot be applied immediately, disable the telnet CLI front‑end in the application configuration to prevent the overflow from being reachable
  • Verify that the undeployed application does not respond to telnet connections and monitor for any telnet activity that could indicate an exploit attempt

Generated by OpenCVE AI on September 4, 2026 at 18:59 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Teluu
Teluu pjsip
CPEs cpe:2.3:a:teluu:pjsip:*:*:*:*:*:*:*:*
Vendors & Products Teluu
Teluu pjsip
Metrics cvssV3_1

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

Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Pjsip
Pjsip pjproject
Vendors & Products Pjsip
Pjsip pjproject
Type Values Removed Values Added
Description PJSIP is a free and open source multimedia communication library written in C. Prior to commit 628b716, a stack buffer overflow exists in the PJLIB-UTIL telnet CLI front-end when redrawing the command line during history recall (handle_up_down() in cli_telnet.c). This affects only applications that enable the telnet CLI front-end (same gating as the related CLI issue). The line-redraw sequence for a recalled history entry can accumulate more data than a fixed-size stack buffer holds, which may lead to application termination. Exploitation requires access to the unauthenticated telnet CLI, which already permits arbitrary CLI commands, so the additional impact is limited. Applications that do not enable the telnet CLI front-end are not affected. This issue has been patched via commit 628b716.
Title PJSIP: Pre-authentication overflow in the telnet CLI history
Weaknesses CWE-121
References
Metrics cvssV4_0

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

Weaknesses
  • CWE-121

    Stack-based Buffer Overflow

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 8, 2026, 5:33 PM
Reserved
Jun 24, 2026, 1:47 AM
Status
Analyzed
Published
Sep 4, 2026, 6:17 PM
Modified
Sep 11, 2026, 4:53 PM