PJSIP is a free and open source multimedia communication library written in C. In 2.16 and earlier, a stack buffer overflow exists in pjsipauthcreatedigest2() in PJSIP when using pre-computed digest credentials (PJSIPCREDDATADIGEST). 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.
{
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40892.json",
"cwe_ids": [
"CWE-121"
]
}{
"cpe": "cpe:2.3:a:pjsip:pjsip:*:*:*:*:*:*:*:*",
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "2.17"
}
],
"source": [
"CPE_RANGE",
"REFERENCES"
]
}"2026-07-15T22:54:09Z"
[
{
"target": {
"file": "pjsip/src/pjsip/sip_auth_client.c"
},
"id": "CVE-2026-40892-90d1ec2f",
"digest": {
"line_hashes": [
"271487805372020685281929672924788739023",
"143341940733911665328653855004538887896",
"39470024426347641986137587022818173795",
"143753489192855065967366424481963127456"
],
"threshold": 0.9
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"source": "https://github.com/pjsip/pjproject/commit/c82123ea6f3c3652bbc9ebd5e9e658c301451687"
},
{
"target": {
"function": "pjsip_auth_create_digest2",
"file": "pjsip/src/pjsip/sip_auth_client.c"
},
"id": "CVE-2026-40892-c123ba4b",
"digest": {
"function_hash": "94974654019773955036750536571538866115",
"length": 6507.0
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"source": "https://github.com/pjsip/pjproject/commit/c82123ea6f3c3652bbc9ebd5e9e658c301451687"
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-40892.json"