{"id":"CVE-2026-40892","published":"2026-04-21T19:55:26Z","modified":"2026-04-21T20:27:29Z","title":"PJSIP: Stack buffer overflow in pjsip_auth_create_digest2()","vendor":"pjsip","product":"pjproject","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00435,"percentile":0.38691,"provenance":"source"},"cwes":[{"id":"CWE-121","name":"Stack-based Buffer Overflow"}],"references":[{"url":"https://github.com/pjsip/pjproject/security/advisories/GHSA-2wcg-w3c4-48r7","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pjsip/pjproject/commit/c82123ea6f3c3652bbc9ebd5e9e658c301451687","tags":["x_refsource_MISC"]}],"priority":{"score":13.4,"factors":[{"name":"EPSS percentile","points":7.74},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"pjsip","affectedVersions":[{"vendor":"pjsip","product":"pjproject","versions":["<= 2.16"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-04-21T20:27:23.382242Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-24469","exploited":false,"provenance":"source"}}