製品・ソフトウェアに関する情報
PCRE の pcre_compile.c および PCRE2 の pcre2_compile.c の compile_branch 関数における任意のコードを実行される脆弱性
Title PCRE の pcre_compile.c および PCRE2 の pcre2_compile.c の compile_branch 関数における任意のコードを実行される脆弱性
Summary

PCRE の pcre_compile.c および PCRE2 の pcre2_compile.c の compile_branch 関数は、ネストされた括弧と併用して、(*ACCEPT) サブストリングを含むパターンを誤って処理するため、任意のコードを実行される、またはサービス運用妨害 (スタックベースのバッファオーバーフロー) 状態にされる脆弱性が存在します。 Zero Day Initiative は、本脆弱性に ZDI-CAN-3542 を採番していました。

Possible impacts 第三者により、巧妙に細工された正規表現を介して、任意のコードを実行される、またはサービス運用妨害 (スタックベースのバッファオーバーフロー) 状態にされる可能性があります。
Solution

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

Publication Date Feb. 10, 2016, midnight
Registration Date March 23, 2016, 11:08 a.m.
Last Update March 23, 2016, 11:08 a.m.
CVSS2.0 : 危険
Score 7.5
Vector AV:N/AC:L/Au:N/C:P/I:P/A:P
Affected System
pcre.org
PCRE 8.39 未満の 8.x
PCRE2 10.22 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
No Changed Details Date of change
0 [2016年03月23日]
  掲載
Feb. 17, 2018, 10:37 a.m.

NVD Vulnerability Information
CVE-2016-3191
Summary

The compile_branch function in pcre_compile.c in PCRE 8.x before 8.39 and pcre2_compile.c in PCRE2 before 10.22 mishandles patterns containing an (*ACCEPT) substring in conjunction with nested parentheses, which allows remote attackers to execute arbitrary code or cause a denial of service (stack-based buffer overflow) via a crafted regular expression, as demonstrated by a JavaScript RegExp object encountered by Konqueror, aka ZDI-CAN-3542.

Publication Date March 18, 2016, 8:59 a.m.
Registration Date Jan. 26, 2021, 2:10 p.m.
Last Update Nov. 21, 2024, 11:49 a.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:pcre:pcre:8.34:*:*:*:*:*:*:*
cpe:2.3:a:pcre:pcre:8.36:*:*:*:*:*:*:*
cpe:2.3:a:pcre:pcre:8.33:*:*:*:*:*:*:*
cpe:2.3:a:pcre:pcre:8.00:*:*:*:*:*:*:*
cpe:2.3:a:pcre:pcre:8.30:*:*:*:*:*:*:*
cpe:2.3:a:pcre:pcre:8.01:*:*:*:*:*:*:*
cpe:2.3:a:pcre:pcre:8.10:*:*:*:*:*:*:*
cpe:2.3:a:pcre:pcre:8.31:*:*:*:*:*:*:*
cpe:2.3:a:pcre:pcre:8.21:*:*:*:*:*:*:*
cpe:2.3:a:pcre:pcre:8.20:*:*:*:*:*:*:*
cpe:2.3:a:pcre:pcre:8.37:*:*:*:*:*:*:*
cpe:2.3:a:pcre:pcre:8.13:*:*:*:*:*:*:*
cpe:2.3:a:pcre:pcre:8.35:*:*:*:*:*:*:*
cpe:2.3:a:pcre:pcre:8.11:*:*:*:*:*:*:*
cpe:2.3:a:pcre:pcre2:*:*:*:*:*:*:*:* 10.21
cpe:2.3:a:pcre:pcre:8.02:*:*:*:*:*:*:*
cpe:2.3:a:pcre:pcre:8.38:*:*:*:*:*:*:*
cpe:2.3:a:pcre:pcre:8.32:*:*:*:*:*:*:*
cpe:2.3:a:pcre:pcre:8.12:*:*:*:*:*:*:*
Related information, measures and tools
Common Vulnerabilities List