Skip to main content

PJSIP pjproject EUVDEUVD-2026-71660

| CVE-2026-57166 MEDIUM
Stack-based Buffer Overflow (CWE-121)
2026-09-04 GitHub_M
6.3
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify exposed telnet CLI port
  2. Delivery
    Connect without credentials
  3. Exploit
    Submit command line exceeding 256-byte stack buffer
  4. Execution
    Overflow send_err_arg/send_ambi_arg during error rendering
  5. Impact
    Application 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

pjproject < 4472a31d77a7506ff175dad5abef490f4e31bed1

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

Vendor (GitHub_M) PRIMARY 6.3 MEDIUM
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
vuln.today AI 5.3 MEDIUM

Network-reachable unauthenticated telnet CLI; no confidentiality or integrity impact; availability limited to application crash requiring non-default CLI configuration.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Red Hat 7.5 HIGH

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Sep 04, 2026 - 19:18 EUVD

DescriptionCVE.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

EPSS Score
0.4%
Top 63% exploitable
Prevalence
Medium
widely used VoIP/SIP library in telephony and conferencing applications
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

More in Pjsip

View all
CVE-2021-43845 CRITICAL POC
9.1 Dec 27

PJSIP is a free and open source multimedia communication library. Rated critical severity (CVSS 9.1), this vulnerability

CVE-2021-21375 MEDIUM POC
6.5 Mar 10

PJSIP is a free and open source multimedia communication library written in C language implementing standard based proto

CVE-2017-16872 CRITICAL
9.8 Nov 17

An issue was discovered in Teluu pjproject (pjlib and pjlib-util) in PJSIP before 2.7.1. Rated critical severity (CVSS 9

CVE-2026-25994 CRITICAL POC
9.8 Feb 11

Buffer overflow in PJSIP multimedia library version 2.16 and earlier in PJNATH ICE implementation. Patch available. Affe

CVE-2026-32945 CRITICAL
9.8 Mar 20

Heap overflow in PJSIP 2.16 and earlier DNS parser allows unauthenticated remote attackers to achieve code execution wit

CVE-2023-38703 CRITICAL
9.8 Oct 06

PJSIP is a free and open source multimedia communication library written in C with high level API in C, C++, Java, C#, a

CVE-2022-23547 CRITICAL
9.8 Dec 23

PJSIP is a free and open source multimedia communication library written in C language implementing standard based proto

CVE-2022-23537 CRITICAL
9.8 Dec 20

PJSIP is a free and open source multimedia communication library written in C language implementing standard based proto

CVE-2022-39244 CRITICAL
9.8 Oct 06

PJSIP is a free and open source multimedia communication library written in C. Rated critical severity (CVSS 9.8), this

CVE-2022-31031 CRITICAL
9.8 Jun 09

PJSIP is a free and open source multimedia communication library written in C language implementing standard based proto

CVE-2022-24786 CRITICAL
9.8 Apr 06

PJSIP is a free and open source multimedia communication library written in C. Rated critical severity (CVSS 9.8), this

CVE-2022-24754 CRITICAL
9.8 Mar 11

PJSIP is a free and open source multimedia communication library written in C language. Rated critical severity (CVSS 9.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy