CVE-2018-7584

Source
https://cve.org/CVERecord?id=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:00.293Z
Modified
2026-07-08T16:07:18.469760Z
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.

Database specific
{
    "unresolved_ranges": [
        {
            "extracted_events": [
                {
                    "introduced": "12.04"
                },
                {
                    "last_affected": "12.04"
                },
                {
                    "introduced": "14.04"
                },
                {
                    "last_affected": "14.04"
                },
                {
                    "introduced": "16.04"
                },
                {
                    "last_affected": "16.04"
                },
                {
                    "introduced": "17.10"
                },
                {
                    "last_affected": "17.10"
                }
            ],
            "source": "CPE_STRING",
            "vendor_product": "canonical:ubuntu_linux",
            "cpes": [
                "cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:esm:*:*:*",
                "cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*",
                "cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*",
                "cpe:2.3:o:canonical:ubuntu_linux:17.10:*:*:*:*:*:*:*"
            ]
        },
        {
            "extracted_events": [
                {
                    "introduced": "7.0"
                },
                {
                    "last_affected": "7.0"
                },
                {
                    "introduced": "8.0"
                },
                {
                    "last_affected": "8.0"
                },
                {
                    "introduced": "9.0"
                },
                {
                    "last_affected": "9.0"
                }
            ],
            "source": "CPE_STRING",
            "vendor_product": "debian:debian_linux",
            "cpes": [
                "cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:*",
                "cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*",
                "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
            ]
        }
    ]
}
References

Affected packages

Git / github.com/php/php-src

Affected ranges

Type
GIT
Repo
https://github.com/php/php-src
Events
Database specific
{
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.33"
        },
        {
            "introduced": "7.0.0"
        },
        {
            "fixed": "7.0.28"
        },
        {
            "introduced": "7.1.0"
        },
        {
            "last_affected": "7.1.14"
        },
        {
            "introduced": "7.2.0"
        },
        {
            "last_affected": "7.2.2"
        }
    ],
    "source": [
        "CPE_RANGE",
        "REFERENCES"
    ],
    "cpe": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*"
}

Affected versions

Other
POST_64BIT_BRANCH_MERGE
POST_AST_MERGE
POST_PHP7_NSAPI_REMOVAL
POST_PHP7_REMOVALS
POST_PHPNG_MERGE
PRE_64BIT_BRANCH_MERGE
PRE_AST_MERGE
PRE_PHP7_EREG_MYSQL_REMOVALS
PRE_PHP7_NSAPI_REMOVAL
PRE_PHP7_REMOVALS
php-5.*
php-5.6.33
php-7.*
php-7.1.14
php-7.1.14RC1
php-7.2.2

Database specific

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