NVD Vulnerability Detail
Search Exploit, PoC
CVE-2016-7126
Summary

The imagetruecolortopalette function in ext/gd/gd.c in PHP before 5.6.25 and 7.x before 7.0.10 does not properly validate the number of colors, which allows remote attackers to cause a denial of service (select_colors allocation error and out-of-bounds write) or possibly have unspecified other impact via a large value in the third argument.

Publication Date Sept. 12, 2016, 10:59 a.m.
Registration Date Jan. 26, 2021, 2:16 p.m.
Last Update Nov. 21, 2024, 11:57 a.m.
CVSS3.1 : CRITICAL
スコア 9.8
Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
攻撃元区分(AV) ネットワーク
攻撃条件の複雑さ(AC)
攻撃に必要な特権レベル(PR) 不要
利用者の関与(UI) 不要
影響の想定範囲(S) 変更なし
機密性への影響(C)
完全性への影響(I)
可用性への影響(A)
CVSS2.0 : HIGH
Score 7.5
Vector AV:N/AC:L/Au:N/C:P/I:P/A:P
攻撃元区分(AV) ネットワーク
攻撃条件の複雑さ(AC)
攻撃前の認証要否(Au) 不要
機密性への影響(C)
完全性への影響(I)
可用性への影響(A)
Get all privileges. いいえ
Get user privileges いいえ
Get other privileges いいえ
User operation required いいえ
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:php:php:7.0.4:*:*:*:*:*:*:*
cpe:2.3:a:php:php:7.0.3:*:*:*:*:*:*:*
cpe:2.3:a:php:php:7.0.1:*:*:*:*:*:*:*
cpe:2.3:a:php:php:7.0.7:*:*:*:*:*:*:*
cpe:2.3:a:php:php:7.0.2:*:*:*:*:*:*:*
cpe:2.3:a:php:php:7.0.9:*:*:*:*:*:*:*
cpe:2.3:a:php:php:7.0.8:*:*:*:*:*:*:*
cpe:2.3:a:php:php:7.0.5:*:*:*:*:*:*:*
cpe:2.3:a:php:php:7.0.0:*:*:*:*:*:*:*
cpe:2.3:a:php:php:7.0.6:*:*:*:*:*:*:*
Configuration2 or higher or less more than less than
cpe:2.3:a:php:php:*:*:*:*:*:*:*:* 5.6.24
Related information, measures and tools
Common Vulnerabilities List

JVN Vulnerability Information
PHP の ext/gd/gd.c の imagetruecolortopalette 関数におけるサービス運用妨害 (DoS) の脆弱性
Title PHP の ext/gd/gd.c の imagetruecolortopalette 関数におけるサービス運用妨害 (DoS) の脆弱性
Summary

PHP の ext/gd/gd.c の imagetruecolortopalette 関数は、色の数を適切に検証しないため、サービス運用妨害 (select_colors の割り当てエラーおよび境界外書き込み) 状態にされるなど、不特定の影響を受ける脆弱性が存在します。 補足情報 : CWE による脆弱性タイプは、CWE-787: Out-of-bounds Write (境界外書き込み) と識別されています。 http://cwe.mitre.org/data/definitions/787.html

Possible impacts 第三者により、第三引数の過度に大きな値を介して、サービス運用妨害 (select_colors の割り当てエラーおよび境界外書き込み) 状態にされるなど、不特定の影響を受ける可能性があります。
Solution

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

Publication Date Aug. 18, 2016, midnight
Registration Date Sept. 13, 2016, 3:39 p.m.
Last Update Sept. 13, 2016, 3:39 p.m.
Affected System
The PHP Group
PHP 5.6.25 未満
PHP 7.0.10 未満の 7.x
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
No Changed Details Date of change
0 [2016年09月13日]
  掲載
Feb. 17, 2018, 10:37 a.m.