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