CVE-2018-7584

Source
https://nvd.nist.gov/vuln/detail/CVE-2018-7584
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-7584.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2018-7584
Downstream
Related
Published
2018-03-01T19:29:00Z
Modified
2025-10-14T16:34:12.455221Z
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

In PHP through 5.6.33, 7.0.x before 7.0.28, 7.1.x through 7.1.14, and 7.2.x through 7.2.2, there is a stack-based buffer under-read while parsing an HTTP response in the phpstreamurlwraphttpex function in ext/standard/httpfopen_wrapper.c. This subsequently results in copying a large string.

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

{
    "vanir_signatures": [
        {
            "signature_version": "v1",
            "signature_type": "Function",
            "target": {
                "file": "ext/standard/http_fopen_wrapper.c",
                "function": "php_stream_url_wrap_http_ex"
            },
            "deprecated": false,
            "digest": {
                "length": 20763.0,
                "function_hash": "235742458703237748127320784434867975092"
            },
            "id": "CVE-2018-7584-541194b9",
            "source": "https://github.com/php/php-src/commit/523f230c831d7b33353203fa34aee4e92ac12bba"
        },
        {
            "signature_version": "v1",
            "signature_type": "Line",
            "target": {
                "file": "ext/standard/http_fopen_wrapper.c"
            },
            "deprecated": false,
            "digest": {
                "line_hashes": [
                    "302318251668703795837139744017837865352",
                    "333173997746499205889019872887678987232",
                    "118657766010197903785616399644239149972",
                    "335074228026685228301729749727312645254",
                    "307651456529529732890967808800659929599",
                    "18705976883196675039183171683314468822"
                ],
                "threshold": 0.9
            },
            "id": "CVE-2018-7584-7c6044be",
            "source": "https://github.com/php/php-src/commit/523f230c831d7b33353203fa34aee4e92ac12bba"
        }
    ]
}