製品・ソフトウェアに関する情報
PJSIPのpjsipにおけるスタックベースのバッファオーバーフローの脆弱性
Title PJSIPのpjsipにおけるスタックベースのバッファオーバーフローの脆弱性
Summary

PJSIPはC言語で書かれた無料かつオープンソースのマルチメディア通信ライブラリです。バージョン2.16およびそれ以前のPJSIPには、事前計算されたダイジェスト認証情報(PJSIP_CRED_DATA_DIGEST)を使用した際に、pjsip_auth_create_digest2()関数でスタックバッファオーバーフローの脆弱性があります。この関数はcred_info-data.slenを長さとして認証情報データをコピーしますが、上限チェックを行わないため、data.slenが想定されるダイジェスト文字列の長さを超えると、固定サイズのha1スタックバッファ(128バイト)をオーバーフローさせる可能性があります。

Possible impacts 当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 さらに、当該ソフトウェアが完全に停止する可能性があります。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 
Solution

正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

Publication Date April 21, 2026, midnight
Registration Date April 27, 2026, 11:20 a.m.
Last Update April 27, 2026, 11:20 a.m.
CVSS3.0 : 緊急
Score 9.8
Vector CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected System
PJSIP
pjsip 2.17 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
No Changed Details Date of change
1 [2026年04月27日]
  掲載
April 27, 2026, 11:20 a.m.

NVD Vulnerability Information
CVE-2026-40892
Summary

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.

Publication Date April 22, 2026, 6:16 a.m.
Registration Date April 25, 2026, 4:04 a.m.
Last Update April 24, 2026, 1:07 a.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:pjsip:pjsip:*:*:*:*:*:*:*:* 2.17
Related information, measures and tools
Common Vulnerabilities List