# CVE-2026-57165: PJSIP: Pre-authentication overflow in the telnet CLI history

- Severity: Medium 6.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 28% of CVEs (2026-12-01)
- Published: 2026-09-04T17:12:01.043Z
- Modified: 2026-09-11T16:53:20.417Z
- Weaknesses: CWE-121
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- pjsip pjproject: < 628b71638465bacf66e767959e6acbab822eccd6
- teluu pjsip: up to 2.17

## Every score

- GitHub_M: CVSS:4.0 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`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/pjsip/pjproject/security/advisories/GHSA-rpq9-9fx7-95xw> (patch, vendor-advisory)
- <https://github.com/pjsip/pjproject/commit/628b71638465bacf66e767959e6acbab822eccd6> (patch)

## Sources

- CVE List: [CVE-2026-57165](https://www.cve.org/CVERecord?id=CVE-2026-57165), CVE Terms of Use, modified 2026-09-08
- NVD: [CVE-2026-57165](https://nvd.nist.gov/vuln/detail/CVE-2026-57165), Public domain, modified 2026-09-11

---

Page: https://cve.day/CVE-2026-57165 · Whole record: https://cve.day/CVE-2026-57165.json · Rebuilt by cve.day 2026-11-25T22:59:36.381Z
