# CVE-2026-40892: PJSIP: Stack buffer overflow in pjsip_auth_create_digest2()

- Severity: High 8.1 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U`
- 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.43%, higher than 39% of CVEs (2026-12-01)
- Published: 2026-04-21T19:55:26.876Z
- Modified: 2026-10-26T21:10:00.170Z
- Weaknesses: CWE-121
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

PJSIP is a free and open source multimedia communication library written in C. In 2.16 and earlier, a stack buffer overflow exists in pjsip_auth_create_digest2() in PJSIP when using pre-computed digest credentials (PJSIP_CRED_DATA_DIGEST). The function copies credential data using cred_info->data.slen as the length without an upper-bound check, which can overflow the fixed-size ha1 stack buffer (128 bytes) if data.slen exceeds the expected digest string length.

(As written by CVE List.)

## Affected

- pjsip pjproject: <= 2.16
- pjsip pjsip: before 2.17

## Every score

- GitHub_M: CVSS:4.0 8.1 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/pjsip/pjproject/security/advisories/GHSA-2wcg-w3c4-48r7> (mitigation, patch, vendor-advisory)
- <https://github.com/pjsip/pjproject/commit/c82123ea6f3c3652bbc9ebd5e9e658c301451687> (patch)

## Sources

- CVE List: [CVE-2026-40892](https://www.cve.org/CVERecord?id=CVE-2026-40892), CVE Terms of Use, modified 2026-04-21
- NVD: [CVE-2026-40892](https://nvd.nist.gov/vuln/detail/CVE-2026-40892), Public domain, modified 2026-10-26

---

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