Skip to main content

PJSIP pjproject EUVDEUVD-2026-71659

| CVE-2026-57165 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
    Access exposed telnet CLI port
  2. Delivery
    Connect unauthenticated
  3. Exploit
    Send up/down arrow history-recall sequences
  4. Execution
    Overflow PJ_CLI_MAX_CMDBUF stack buffer in handle_up_down()
  5. Impact
    Application 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 handle_up_down() to write more data than the original PJ_CLI_MAX_CMDBUF stack buffer can hold, eventually overflowing the stack and crashing the application process. No public exploit code has been identified, but the trigger mechanism is straightforward and requires only standard telnet interaction.

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

pjproject < 628b71638465bacf66e767959e6acbab822eccd6

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

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 3.7 LOW

AC:H reflects the non-default telnet CLI enable requirement; no C/I impact - only application crash (A:L).

3.1 AV:N/AC:H/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 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

EPSS Score
0.4%
Top 71% exploitable
Prevalence
Medium
popular VoIP/multimedia C library, broad but not universal deployment
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