CVE-2016-7127

Source
https://cve.org/CVERecord?id=CVE-2016-7127
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2016-7127.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2016-7127
Downstream
Related
Published
2016-09-12T01:59:05.707Z
Modified
2026-02-11T06:35:47.768381Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

The imagegammacorrect function in ext/gd/gd.c in PHP before 5.6.25 and 7.x before 7.0.10 does not properly validate gamma values, which allows remote attackers to cause a denial of service (out-of-bounds write) or possibly have unspecified other impact by providing different signs for the second and third arguments.

References

Affected packages

Git / github.com/php/php-src

Affected ranges

Type
GIT
Repo
https://github.com/php/php-src
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

Other
NEWS
NEWS-cvs2svn
php-5.*
php-5.3.23RC1
php-5.3.29
php-5.3.29RC1
php-5.4.30RC1
php-5.4.32RC1
php-5.4.4RC2
php-5.5.24RC1
php-5.6.18RC1
php-5.6.19RC1
php-5.6.22RC1
php-5.6.23RC1
php-5.6.24RC1

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2016-7127.json"
vanir_signatures
[
    {
        "signature_type": "Line",
        "deprecated": false,
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "13061000410432496893915167939260265663",
                "16449094754789311592583499708074726003",
                "249040513906500853715332747983958150376"
            ]
        },
        "id": "CVE-2016-7127-b20a7f9e",
        "target": {
            "file": "ext/gd/gd.c"
        },
        "signature_version": "v1",
        "source": "https://github.com/php/php-src/commit/1bd103df00f49cf4d4ade2cfe3f456ac058a4eae"
    },
    {
        "signature_type": "Function",
        "deprecated": false,
        "digest": {
            "length": 1319.0,
            "function_hash": "182819258980180063651267922896273285635"
        },
        "id": "CVE-2016-7127-c5e74e49",
        "target": {
            "file": "ext/gd/gd.c",
            "function": "PHP_FUNCTION"
        },
        "signature_version": "v1",
        "source": "https://github.com/php/php-src/commit/1bd103df00f49cf4d4ade2cfe3f456ac058a4eae"
    }
]