{"id":"CVE-2018-7584","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 php_stream_url_wrap_http_ex function in ext/standard/http_fopen_wrapper.c. This subsequently results in copying a large string.","modified":"2026-04-16T06:15:29.002320666Z","published":"2018-03-01T19:29:00.293Z","related":["SUSE-SU-2018:0646-1","SUSE-SU-2018:0717-1","SUSE-SU-2018:0806-1"],"references":[{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2018/06/msg00005.html"},{"type":"ADVISORY","url":"https://usn.ubuntu.com/3600-1/"},{"type":"ADVISORY","url":"http://www.securitytracker.com/id/1041607"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2019:2519"},{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2018/03/msg00030.html"},{"type":"ADVISORY","url":"https://usn.ubuntu.com/3600-2/"},{"type":"ADVISORY","url":"https://www.debian.org/security/2018/dsa-4240"},{"type":"ADVISORY","url":"https://www.tenable.com/security/tns-2018-03"},{"type":"ADVISORY","url":"https://www.tenable.com/security/tns-2018-12"},{"type":"ADVISORY","url":"http://php.net/ChangeLog-7.php"},{"type":"ADVISORY","url":"http://www.securityfocus.com/bid/103204"},{"type":"REPORT","url":"https://bugs.php.net/bug.php?id=75981"},{"type":"FIX","url":"https://github.com/php/php-src/commit/523f230c831d7b33353203fa34aee4e92ac12bba"},{"type":"EVIDENCE","url":"https://www.exploit-db.com/exploits/44846/"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/php/php-src","events":[{"introduced":"0"},{"last_affected":"3a3e6f7100373fe00650c82a4cc0605a31abd71e"},{"introduced":"60fffd296abce5fc071f3c173c25a2696cf683c6"},{"fixed":"4d2e469821a6daccea55e7b35caf875ce15e1be8"},{"introduced":"0221e9f827632942225586687a33cfd554860d5e"},{"last_affected":"ebe3bfb9ea0c0c4e54ad2cbef62d411b5bb7220b"},{"introduced":"8148cbb78841c8ec0759c0836e7f35dec799d300"},{"last_affected":"d4876e269113d3f6241a58614b6e144ab286cd78"},{"introduced":"0"},{"last_affected":"60fffd296abce5fc071f3c173c25a2696cf683c6"},{"introduced":"0"},{"last_affected":"5dc92c2117cafc61daaaaa240fd46c3ac33872a4"},{"fixed":"523f230c831d7b33353203fa34aee4e92ac12bba"}],"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"}]}}],"versions":["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.6.33","php-7.0.0","php-7.1.14","php-7.1.14RC1","php-7.2.2","php-8.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":[{"target":{"function":"php_stream_url_wrap_http_ex","file":"ext/standard/http_fopen_wrapper.c"},"signature_type":"Function","source":"https://github.com/php/php-src/commit/523f230c831d7b33353203fa34aee4e92ac12bba","signature_version":"v1","digest":{"function_hash":"235742458703237748127320784434867975092","length":20763},"deprecated":false,"id":"CVE-2018-7584-541194b9"},{"signature_version":"v1","signature_type":"Line","source":"https://github.com/php/php-src/commit/523f230c831d7b33353203fa34aee4e92ac12bba","deprecated":false,"target":{"file":"ext/standard/http_fopen_wrapper.c"},"digest":{"line_hashes":["302318251668703795837139744017837865352","333173997746499205889019872887678987232","118657766010197903785616399644239149972","335074228026685228301729749727312645254","307651456529529732890967808800659929599","18705976883196675039183171683314468822"],"threshold":0.9},"id":"CVE-2018-7584-7c6044be"}],"vanir_signatures_modified":"2026-04-11T11:39:55Z","source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-7584.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}