Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAccess exposed telnet CLI port
-
DeliveryConnect unauthenticated
-
ExploitSend up/down arrow history-recall sequences
-
ExecutionOverflow PJ_CLI_MAX_CMDBUF stack buffer in handle_up_down()
-
ImpactApplication process terminates
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The telnet CLI front-end must be explicitly enabled by the application - this is not a default PJSIP configuration and must be opted into at the application layer. The telnet port must be network-accessible to the attacker. The attacker must send history-recall sequences (up/down arrow keys via telnet protocol); a single connection with no credentials is sufficient since the telnet CLI is already unauthenticated. Applications not enabling the telnet CLI front-end are fully unaffected. The overflow only triggers during history-recall redraw, not on initial command entry. The incremental risk over the baseline unauthenticated CLI access is limited to DoS (crash); no new privilege or data access is gained. |
| Impact | Real-world risk is low-to-moderate despite the network attack vector. The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L) captures the key limiting factor via AT:P: the telnet CLI front-end must be explicitly enabled - a non-default, operator-chosen configuration. The CVSS 4.0 score of 6.3 is consistent with a remotely triggerable but configuration-gated DoS with no confidentiality or integrity impact. EPSS data is absent from the input, but the niche deployment gate (telnet CLI enabled) and purely availability-limited impact suggest low exploitation probability in practice. There is no KEV listing and no public exploit identified, meaning no confirmed active exploitation. Compounding factors: the telnet CLI is already unauthenticated and permits arbitrary CLI commands, so this overflow adds no new access path - its incremental risk is limited to crashing an already-trusted channel. The primary concern is for embedded or network appliance applications that ship with the telnet CLI enabled and exposed. |
| Exploit ScenarioDerived | An attacker with network access to the telnet CLI port of a PJSIP-based application (e.g., a VoIP gateway with diagnostics CLI enabled) connects without credentials and repeatedly sends up-arrow key sequences to trigger history recall. Each recall cycle causes |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 04, 2026
Stack-based buffer overflow in PJSIP pjproject's telnet CLI front-end allows remote, unauthenticated attackers to crash the affected application by sending history-recall input sequences (arrow keys) to the handle_up_down() function in cli_telnet.c. The accumulated redraw data - comprising cursor position, current buffer length, and recalled history entry length - can exceed the fixed-size PJ_CLI_MAX_CMDBUF stack buffer, leading to application termination. Exploitation requires the telnet CLI front-end to be explicitly enabled; applications that do not enable this feature are entirely unaffected, and no public exploit or KEV listing has been identified at time of analysis.
RemediationAI
Apply commit 628b716 from the pjproject repository (https://github.com/pjsip/pjproject/commit/628b71638465bacf66e767959e6acbab822eccd6), which quadruples the stack buffer in handle_up_down() and adds per-term clamping. No tagged release version incorporating this fix has been confirmed from available data - monitor the upstream repository for a tagged release and upgrade when available. As a compensating control, disable the telnet CLI front-end entirely if it is not operationally required; this eliminates the attack surface completely with no functional impact on core SIP/RTP functionality. If the telnet CLI must remain enabled, restrict network access to the telnet port via firewall or host-based access controls to trusted administrative hosts only, reducing exposure to the unauthenticated interface.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
PJSIP (pjproject) is a widely-used open-source C library for multimedia communications, implementing SIP, SDP, RTP, STUN, and related protocols. It includes PJLIB-UTIL, a utility library that offers an optional telnet-based CLI front-end for runtime diagnostics and administration. CWE-121 (Stack-based Buffer Overflow) manifests in handle_up_down() within pjlib-util/src/pjlib-util/cli_telnet.c: when a user navigates command history, the line-redraw sequence accumulates up to cur_pos + 2 * rcmd->len + history->slen bytes into a single char str[PJ_CLI_MAX_CMDBUF] stack buffer. Because each contributing term can itself reach PJ_CLI_MAX_CMDBUF, the total can be up to four times the buffer's capacity. The fix in commit 628b716 quadruples the stack buffer to PJ_CLI_MAX_CMDBUF * 4 and clamps each term individually before use, eliminating the overflow. CPE cpe:2.3:a:pjsip:pjproject:*:*:*:*:*:*:*:* covers all versions prior to the patched commit.
Know when Pjsip gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
AC:H reflects the non-default telnet CLI enable requirement; no C/I impact - only application crash (A:L).
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.
PJSIP is a free and open source multimedia communication library. Rated critical severity (CVSS 9.1), this vulnerability
PJSIP is a free and open source multimedia communication library written in C language implementing standard based proto
An issue was discovered in Teluu pjproject (pjlib and pjlib-util) in PJSIP before 2.7.1. Rated critical severity (CVSS 9
Buffer overflow in PJSIP multimedia library version 2.16 and earlier in PJNATH ICE implementation. Patch available. Affe
Heap overflow in PJSIP 2.16 and earlier DNS parser allows unauthenticated remote attackers to achieve code execution wit
PJSIP is a free and open source multimedia communication library written in C with high level API in C, C++, Java, C#, a
PJSIP is a free and open source multimedia communication library written in C language implementing standard based proto
PJSIP is a free and open source multimedia communication library written in C language implementing standard based proto
PJSIP is a free and open source multimedia communication library written in C. Rated critical severity (CVSS 9.8), this
PJSIP is a free and open source multimedia communication library written in C language implementing standard based proto
PJSIP is a free and open source multimedia communication library written in C. Rated critical severity (CVSS 9.8), this
PJSIP is a free and open source multimedia communication library written in C language. Rated critical severity (CVSS 9.
EUVD-2026-71659
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB