CVE-2026-57165: CWE-121: Stack-based Buffer Overflow in pjsip pjproject
Description
A stack-based buffer overflow vulnerability (CWE-121) exists in the PJLIB-UTIL telnet CLI front-end of the pjsip pjproject prior to commit 628b716. The flaw occurs during command line redraw when recalling history entries, potentially causing application termination. Exploitation requires access to the unauthenticated telnet CLI, which already allows arbitrary CLI commands, limiting additional impact. Applications not enabling the telnet CLI front-end are unaffected. This issue has been patched.
CVSS v4.0
Score 6.3medium
Affected software
pjsip
pjproject
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
PJSIP's pjproject contained a stack buffer overflow in the PJLIB-UTIL telnet CLI front-end, specifically in the handle_up_down() function in cli_telnet.c. When recalling command history, the line redraw sequence could accumulate more data than the fixed-size stack buffer can hold, leading to a buffer overflow and possible application termination. This vulnerability affects only applications that enable the telnet CLI front-end. Since the telnet CLI is unauthenticated and already allows arbitrary CLI commands, the incremental impact of this overflow is limited. The issue was fixed by commit 628b716.
Potential Impact
The vulnerability can cause application termination due to a stack-based buffer overflow when recalling command history via the telnet CLI front-end. However, exploitation requires access to the unauthenticated telnet CLI, which already permits arbitrary commands, so the additional impact is limited. Applications without the telnet CLI front-end are not affected.
Mitigation Recommendations
This vulnerability has been patched in pjproject via commit 628b716. Users should update to a version including this commit to remediate the issue. Applications that do not enable the telnet CLI front-end are not affected and require no action.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-24T01:47:55.285Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a9afe70acd9273b49f0e677
Added to database: 09/04/2026, 17:22:56 UTC
Last enriched: 10/18/2026, 00:34:59 UTC
Last updated: 10/18/2026, 06:48:18 UTC
Views: 85
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.