CVE-2026-40892PJSIP: Stack buffer overflow in pjsip_auth_create_digest2()
Updated under an hour ago ()
Does this affect you?
It affects pjsip pjproject and 1 other product. Add what you run to find out whether that includes you.
No exploitation reported and no EPSS estimate yet.
Do this next
Free account, 1 product
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.
- CVSS
- 8.1 HIGH (v4.0, CNA)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
- Weakness (CWE)
- CWE-121
- Known exploited
- Not in CISA's KEV catalog
- EPSS (exploitation in the next 30 days)
- Not loaded for this CVE
- Assigned by
- GitHub_M
- NVD analysis
- Analyzed
- Record last updated
- Apr 21, 2026
- First seen by InfoSec Signals
- Oct 9, 2026
Affected products
pjsip pjproject pjsip:pjproject (from the name) | through 2.16 | CNA record |
pjsip pjsip pjsip:pjsip | before 2.17 | NVD |
References
- https://github.com/pjsip/pjproject/security/advisories/GHSA-2wcg-w3c4-48r7x-refsource-confirm, mitigation, patch, vendor-advisory
- https://github.com/pjsip/pjproject/commit/c82123ea6f3c3652bbc9ebd5e9e658c301451687x-refsource-misc, patch
The CVE record on cve.org NVD's entry
The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.