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-03-15T22:05:36.611871Z
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
Last affected
Introduced
Fixed
Introduced
Last affected
Introduced
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Fixed
Database specific
{
    "versions": [
        {
            "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"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "7.0"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "8.0"
        }
    ]
}

Affected versions

php-7.*
php-7.0.0

Database specific

unresolved_ranges
[
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "12.04"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "14.04"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "16.04"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "17.10"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "9.0"
            }
        ]
    }
]
vanir_signatures
[
    {
        "deprecated": false,
        "id": "CVE-2018-7584-541194b9",
        "target": {
            "file": "ext/standard/http_fopen_wrapper.c",
            "function": "php_stream_url_wrap_http_ex"
        },
        "digest": {
            "function_hash": "235742458703237748127320784434867975092",
            "length": 20763.0
        },
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/php/php-src/commit/523f230c831d7b33353203fa34aee4e92ac12bba"
    },
    {
        "deprecated": false,
        "id": "CVE-2018-7584-7c6044be",
        "target": {
            "file": "ext/standard/http_fopen_wrapper.c"
        },
        "digest": {
            "line_hashes": [
                "302318251668703795837139744017837865352",
                "333173997746499205889019872887678987232",
                "118657766010197903785616399644239149972",
                "335074228026685228301729749727312645254",
                "307651456529529732890967808800659929599",
                "18705976883196675039183171683314468822"
            ],
            "threshold": 0.9
        },
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/php/php-src/commit/523f230c831d7b33353203fa34aee4e92ac12bba"
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-7584.json"