{"vuln_id":"CVE-2018-1000007","aliases":[],"description":null,"published_at":null,"modified_at":null,"first_seen_at":"2026-11-21T19:15:06.076930Z","severity":"unknown","severity_source":null,"cvss_score":null,"cvss_vector":null,"cwe":[],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.09906,"epss_percentile":0.95696,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2018-1000007"},"matched_alias":null,"items":[{"id":11911,"source":{"id":"debian13-php","name":"Debian 13 php8.4 (package vulnerabilities)"},"title":"php8.4 (Debian:13): DEBIAN-CVE-2026-91766 / CVE-2026-91766 - When the http:// stream wrapper follows a redirect it forwards the user-supplied Authorization, Cookie and Proxy-Authorization headers unchanged, even when the…","summary":"When the http:// stream wrapper follows a redirect it forwards the user-supplied Authorization, Cookie and Proxy-Authorization headers unchanged, even when the redirect target is a different host, a different port, or a downgrade from HTTPS to HTTP. A server that can steer a redirect therefore receives credentials that were only meant for the original origin. This is the same class of issue that libcurl fixed in 7.58.0 ( CVE-2018-1000007 https://github.com/advisories/GHSA-g7x2-hrfp-pv5f ).\n\nAffected: Debian:12:php8.2, Debian:13:php8.4, Debian:14:php8.4\n\nFixed in: 8.4.26-1~deb13u1, 8.4.26-1\n\nReferences:\nhttps://security-tracker.debian.org/tracker/CVE-2026-91766","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2026-91766","published_at":"2026-09-25T21:17:24.673000Z","updated_at":"2026-10-24T09:47:25.671711Z","fetched_at":"2026-11-22T13:39:48.366386Z","severity":"medium","cvss_score":5.9,"epss":0.09906,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"php8.4","vuln_id":"CVE-2026-91766","vuln_ids":["CVE-2018-1000007","CVE-2025-1218","CVE-2025-14181","CVE-2026-6103","CVE-2026-91765","CVE-2026-91766","CVE-2026-91767","CVE-2026-91768","CVE-2026-91769","CVE-2026-92842","CVE-2026-93682","DEBIAN-CVE-2026-91766","GHSA-FPWC-W8RQ-CR92","GHSA-G7X2-HRFP-PV5F"],"tags":["package-watch","pkg:php8.4","stack","debian13","fix-available"],"cluster_id":353,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/11911","html":"https://vulnwatch.ve1ve2.com/item/11911"}},{"id":517,"source":{"id":"debian-php","name":"Debian 12 php8.2 (package vulnerabilities)"},"title":"php8.2 (Debian:12): DEBIAN-CVE-2026-91766 / CVE-2026-91766 - When the http:// stream wrapper follows a redirect it forwards the user-supplied Authorization, Cookie and Proxy-Authorization headers unchanged, even when the…","summary":"When the http:// stream wrapper follows a redirect it forwards the user-supplied Authorization, Cookie and Proxy-Authorization headers unchanged, even when the redirect target is a different host, a different port, or a downgrade from HTTPS to HTTP. A server that can steer a redirect therefore receives credentials that were only meant for the original origin. This is the same class of issue that libcurl fixed in 7.58.0 ( CVE-2018-1000007 https://github.com/advisories/GHSA-g7x2-hrfp-pv5f ).\n\nAffected: Debian:12:php8.2, Debian:13:php8.4, Debian:14:php8.4\n\nFixed in: 8.2.34-1~deb12u1\n\nReferences:\nhttps://security-tracker.debian.org/tracker/CVE-2026-91766","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2026-91766","published_at":"2026-09-25T21:17:24.673000Z","updated_at":"2026-10-24T09:47:25.671711Z","fetched_at":"2026-11-21T19:15:05.963778Z","severity":"medium","cvss_score":5.9,"epss":0.09906,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"php8.2","vuln_id":"CVE-2026-91766","vuln_ids":["CVE-2018-1000007","CVE-2025-1218","CVE-2025-14181","CVE-2026-6103","CVE-2026-91765","CVE-2026-91766","CVE-2026-91767","CVE-2026-91768","CVE-2026-91769","CVE-2026-92842","CVE-2026-93682","DEBIAN-CVE-2026-91766","GHSA-FPWC-W8RQ-CR92","GHSA-G7X2-HRFP-PV5F"],"tags":["package-watch","pkg:php8.2","fix-available"],"cluster_id":353,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/517","html":"https://vulnwatch.ve1ve2.com/item/517"}},{"id":647,"source":{"id":"gh-php-src","name":"PHP releases (GitHub php/php-src tags)"},"title":"GHSA-fpwc-w8rq-cr92 / CVE-2026-91766: Cross-origin credential leak in HTTP stream wrapper redirects","summary":"Cross-origin credential leak in HTTP stream wrapper redirects\n\n### Summary\n\nWhen the `http://` stream wrapper follows a redirect it forwards the user-supplied `Authorization`, `Cookie` and `Proxy-Authorization` headers unchanged, even when the redirect target is a different host, a different port, or a downgrade from HTTPS to HTTP. A server that can steer a redirect therefore receives credentials that were only meant for the original origin. This is the same class of issue that libcurl fixed in 7.58.0 (CVE-2018-1000007).\n\n### Details\n\nHeaders supplied through `stream_context_create()` are carried into the redirected request together with the rest of the context. Before the redirect is issued, the wrapper strips only `Content-Length` and `Content-Type`, and only when the method changes:\n\nhttps://github.com/php/php-src/blob/php-8.5.10/ext/standard/http_fopen_wrapper.c#L703-L704\n\nThe flags handed to the recursive call carry no notion of the origin the credentials belong to:\n\nhttps://github.com/php/php-src/blob/php-8.5.10/ext/standard/http_fopen_wrapper.c#L1133\n\nThe fix records the effective origin of the current request, being scheme, host and port with the default port filled in, and compares it with the parsed redirect target. When they differ, a new `HTTP_WRAPPER_STRIP_AUTH` flag is set and the three credential headers are removed from the user header bag before the next request is built. The flag is sticky, so credentials stay withheld for any further hops after a cross-origin one, matching libcurl's behaviour with `CURLOPT_UNRESTRICTED_AUTH` disabled.\n\nRemoving the last header from the bag also required `strip_header()` to drop the line break preceding it. Without that, the CRLF appended after the bag ends the header block early and the body of a body-preserving 307 or 308 redirect is corrupted. The same rewrite makes `strip_header()` scan line by line, so a repeated header, a folded continuation line, or the header name appearing inside another header's value can no longer leave the real header in place.\n\n### PoC\n\nA request to `https://example.com/api` carrying `Authorization: Bearer\n` that is answered with `302 Found` to `https://attacker.example/` results in the attacker's server receiving the `Authorization` header:\n\n```php\n\n[\n'header' => \"Authorization: Bearer SECRET\\r\\nCookie: sid=abc\",\n'follow_location' => 1,\n]]);\nfile_get_contents('https://example.com/api', false, $ctx);\n```\n\nThe regression test `ext/standard/tests/http/ghsa-fpwc-w8rq-cr92.phpt` runs two local servers on different ports and asserts that credentials are dropped on the cross-origin hop and on every hop after it, while being preserved when every hop stays on the same origin.\n\n### Impact\n\nAny application that uses `file_get_contents()`, `fopen()` or another `http://` stream with credential headers and leaves `follow_location` at its default is affected. An attacker who controls a redirect target, or a legitimate service that redirects to a th\n\nAffected packages: php:ext-standard\nPatched: ext-standard 8.2.34, ext-standard 8.3.35, ext-standard 8.4.26, ext-standard 8.5.11","url":"https://github.com/php/php-src/security/advisories/GHSA-fpwc-w8rq-cr92","published_at":"2026-09-24T10:06:39Z","updated_at":"2026-09-25T20:35:57Z","fetched_at":"2026-11-21T19:15:07.553381Z","severity":"medium","cvss_score":5.9,"epss":0.09906,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"ext-standard","vuln_id":"CVE-2026-91766","vuln_ids":["CVE-2018-1000007","CVE-2025-1218","CVE-2025-14181","CVE-2026-6103","CVE-2026-91765","CVE-2026-91766","CVE-2026-91767","CVE-2026-91768","CVE-2026-91769","CVE-2026-92842","CVE-2026-93682","GHSA-FPWC-W8RQ-CR92","GHSA-G7X2-HRFP-PV5F"],"tags":["repo-advisory","php","CWE-200","CWE-522","security","repo:php/php-src"],"cluster_id":476,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/647","html":"https://vulnwatch.ve1ve2.com/item/647"}},{"id":3144,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-47070: Sensitive Data Exposure vulnerability in benoitc hackney allows Retrieve Embedded Sensitive Data. The HTTP/3 redirect handler in src/hackney_h3.erl passes the…","summary":"Sensitive Data Exposure vulnerability in benoitc hackney allows Retrieve Embedded Sensitive Data.\n\nThe HTTP/3 redirect handler in src/hackney_h3.erl passes the original request headers unchanged to the redirect target without performing any cross-origin check. When a client issues an HTTP/3 request with follow_redirect enabled and includes Authorization or Cookie headers, a server responding with a 3xx redirect to a different host will cause the client to forward those credentials verbatim to the new origin.\n\nThe main hackney.erl module has maybe_strip_auth_on_redirect/2 (guarded by the location_trusted option) to address CVE-2018-1000007, but hackney_h3.erl is missing this protection entirely.\n\nThis issue affects hackney: from 3.1.1 before 4.0.1.\n\nReferences:\nhttps://cna.erlef.org/cves/CVE-2026-47070.html\nhttps://github.com/benoitc/hackney/commit/c58d5b50bade146360b85caf3dc8065807b08246\nhttps://github.com/benoitc/hackney/commit/e61b7d04b7826847e1efe614106ef4d580c78eab\nhttps://github.com/benoitc/hackney/security/advisories/GHSA-h73q-4w9q-82h4\nhttps://osv.dev/vulnerability/EEF-CVE-2026-47070\nhttps://github.com/benoitc/hackney/security/advisories/GHSA-h73q-4w9q-82h4","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-47070","published_at":"2026-05-25T15:16:22.010000Z","updated_at":"2026-11-20T08:18:36.120000Z","fetched_at":"2026-11-21T19:15:31.478749Z","severity":"medium","cvss_score":6.0,"epss":0.09906,"is_kev":false,"has_exploit":true,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-47070","vuln_ids":["CVE-2018-1000007","CVE-2026-47070","GHSA-H73Q-4W9Q-82H4"],"tags":["CWE-601"],"cluster_id":3178,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/3144","html":"https://vulnwatch.ve1ve2.com/item/3144"}}]}