Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify exposed telnet CLI port
-
DeliveryConnect without credentials
-
ExploitSubmit command line exceeding 256-byte stack buffer
-
ExecutionOverflow send_err_arg/send_ambi_arg during error rendering
-
ImpactApplication crash (DoS)
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 | Exploitation requires two explicit prerequisites: (1) the target application must have opted into the PJSIP telnet CLI front-end by calling pj_cli_telnet_create() or using the --cli-telnet-port launch argument - this is a non-default feature absent from typical VoIP or SIP library deployments; (2) the attacker must have network-level connectivity to the telnet port. The telnet CLI is unauthenticated (PR:N per CVSS vector), so no credential theft or session hijack is needed once the port is reachable. Limiting factors: the non-default opt-in requirement means most pjproject deployments are entirely unaffected; the impact is bounded to application crash (VA:L in CVSS 4.0), not arbitrary code execution; and the attacker reaching an unauthenticated management CLI already has full command access, so the overflow provides no escalation of privilege beyond that existing foothold. |
| Impact | The CVSS 4.0 score of 6.3 (Medium) is well-calibrated: the AT:P metric correctly captures that the telnet CLI is a non-default opt-in feature, and VA:L reflects that the confirmed worst-case outcome is application termination rather than arbitrary code execution or data compromise. No EPSS score, KEV listing, or public exploit code was identified, consistent with the narrow exposure surface. The practical risk is bounded by three converging factors: the non-default prerequisite (administrator must call pj_cli_telnet_create() or pass --cli-telnet-port), the expectation that network-level access to an unauthenticated telnet management port already represents a significant security boundary failure, and the description's explicit characterization of the impact as crash-only with no privilege escalation beyond existing CLI access. Defenders running PJSIP-based infrastructure - SIP proxies, conferencing servers, embedded telephony devices - should audit whether the telnet CLI is active and prioritize patching those instances; deployments where the telnet CLI is disabled are entirely unaffected and need not treat this as urgent. |
| Exploit ScenarioDerived | An attacker with network connectivity to the telnet CLI port - which requires no authentication - submits a command line exceeding the 256-byte stack buffer threshold (achievable with a string approaching PJ_CLI_MAX_CMDBUF in length), triggering an overflow in send_err_arg() or send_ambi_arg() during error-feedback rendering and crashing the host PJSIP application. The commit diff confirms the overflow condition is mechanically straightforward once the attacker can reach the telnet port; no public proof-of-concept exploit has been identified. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 04, 2026
Stack buffer overflow in PJSIP's (pjproject) telnet CLI front-end allows unauthenticated network attackers to crash applications that have explicitly enabled the telnet administration interface. The functions send_err_arg() and send_ambi_arg() in cli_telnet.c wrote an attacker-influenced number of bytes into a fixed 256-byte stack buffer without bounds checking, with the error-position offset derived directly from parsed command input. The vulnerability is limited to application termination (DoS); no public exploit code has been identified at time of analysis, and the upstream fix is available as commit 4472a31.
RemediationAI
Apply the upstream fix by updating to a pjproject build that incorporates commit 4472a31 (https://github.com/pjsip/pjproject/commit/4472a31d77a7506ff175dad5abef490f4e31bed1); a specific tagged release version containing this fix was not confirmed at time of analysis, so consult the vendor advisory GHSA-9c8q-h38q-p85j for the authoritative patched release. If an immediate upgrade is not feasible, the most effective compensating control is to disable the telnet CLI entirely by removing calls to pj_cli_telnet_create() and the --cli-telnet-port option from application configuration - this eliminates the vulnerable code path with no impact on non-CLI application functionality. If the telnet CLI is operationally required, restrict network access to the telnet port via firewall or host-based ACLs to explicitly trusted administrative source addresses, accepting that this is a perimeter control rather than a code fix and that the unauthenticated CLI itself remains a risk.
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, CPE: cpe:2.3:a:pjsip:pjproject:*) is a widely used open-source C multimedia communications library underpinning SIP, VoIP, and WebRTC applications. The affected component is PJLIB-UTIL's optional telnet CLI front-end (cli_telnet.c), which provides an interactive administration interface. The root cause is CWE-121 (Stack-based Buffer Overflow): functions send_err_arg() and send_ambi_arg() maintained a fixed char data_str[256] stack buffer and used attacker-influenced info->err_pos (bounded only by PJ_CLI_MAX_CMDBUF, which can reach ~500 bytes) to drive space-writing loops directly into that buffer. Similarly, handle_tab() performed an unchecked pj_memcpy into rbuf without verifying remaining capacity. The commit diff confirms all three sites: the fix replaces the monolithic stack buffer with a static SPACES[64] array streamed in bounded chunks, adds PJ_CLI_MAX_CMDBUF clamping before any space-emission loop, and guards the pj_memcpy in handle_tab() with an explicit available-space check.
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
Network-reachable unauthenticated telnet CLI; no confidentiality or integrity impact; availability limited to application crash requiring non-default CLI configuration.
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 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.
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-71660
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB