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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| pjsip | pjproject | <= 2.16 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | asterisk | 1:22.10.0+dfsg+~cs6.17.60671434-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | asterisk | No fix yet | — |
| Ubuntu 26.04 LTS | asterisk | No fix yet | — |
| Ubuntu 25.10 | asterisk | No fix yet | — |
| Ubuntu 22.04 LTS | asterisk | No fix yet | — |
| Ubuntu 20.04 LTS | asterisk | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | asterisk | No fix yet | — |
| Ubuntu Pro 18.04 LTS | pjproject | No fix yet | — |
| Ubuntu Pro 16.04 LTS | asterisk +1 | No fix yet | — |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | pjproject | 2.17-r0 | — |