CVE-2026-57166: CWE-121: Stack-based Buffer Overflow in pjsip pjproject
Description
A stack-based buffer overflow vulnerability exists in the PJLIB-UTIL telnet CLI front-end of the PJSIP pjproject library prior to commit 4472a31. This occurs when rendering feedback for an entered command line, where insufficient bounds checking allows a long command line to overflow fixed-size buffers. The vulnerability affects only applications that enable the telnet CLI front-end, which is an unauthenticated interactive administration interface. Exploitation requires access to this CLI, limiting impact beyond existing access. The issue has been patched in commit 4472a31.
CVSS v4.0
Score 6.3medium
Affected software
pjsip
pjproject
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
PJSIP's pjproject library contained a stack-based buffer overflow (CWE-121) in its PJLIB-UTIL telnet CLI front-end before commit 4472a31. Multiple command-line handling paths write attacker-controlled data into fixed-size stack buffers without proper bounds checking, allowing a long command line to overflow these buffers during command-line feedback rendering. This vulnerability affects only applications that enable the telnet CLI front-end (e.g., via pj_cli_telnet_create() or --cli-telnet-port). The telnet CLI is unauthenticated, so any client able to connect can issue arbitrary CLI commands. The overflow may cause application termination. The vulnerability has been fixed by the referenced commit.
Potential Impact
The vulnerability can cause application termination due to stack buffer overflow when processing a malformed or overly long command line in the telnet CLI front-end. Since the telnet CLI is unauthenticated, any client with network access to this interface can trigger the overflow. However, because exploitation requires prior access to the unauthenticated CLI, the impact is limited to denial of service or potential application crash within that context. No further privilege escalation or remote code execution is indicated.
Mitigation Recommendations
This vulnerability has been patched in pjproject via commit 4472a31. 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. If the telnet CLI is enabled, disabling it can mitigate exposure. No additional mitigation is required beyond applying the official fix.
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: 6a9afe70acd9273b49f0e679
Added to database: 09/04/2026, 17:22:56 UTC
Last enriched: 10/18/2026, 00:34:56 UTC
Last updated: 10/18/2026, 18:48:22 UTC
Views: 83
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.