{"vuln_id":"CVE-2025-14177","aliases":["CVE-2025-14178","CVE-2025-14180","GHSA-3237-qqm7-mfv7"],"description":"php8.2 - security update","published_at":"2025-12-18T16:10:22Z","modified_at":"2026-11-20T01:19:12.022466Z","first_seen_at":"2026-11-21T19:15:06.060495Z","severity":"high","severity_source":"cvss","cvss_score":7.5,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","cwe":["CWE-524"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00504,"epss_percentile":0.43945,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2025-14177"},"matched_alias":null,"items":[{"id":479,"source":{"id":"debian-php","name":"Debian 12 php8.2 (package vulnerabilities)"},"title":"php8.2 (Debian:12): DSA-6154-1 / CVE-2025-14177 - php8.2 - security update","summary":"Affected: Debian:12:php8.2\n\nFixed in: 8.2.30-1~deb12u1","url":"https://osv.dev/vulnerability/DSA-6154-1","published_at":"2026-03-02T00:00:00Z","updated_at":"2026-11-20T01:19:11.565121Z","fetched_at":"2026-11-21T19:15:05.963723Z","severity":"high","cvss_score":8.2,"epss":0.00697,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"php8.2","vuln_id":"CVE-2025-14177","vuln_ids":["CVE-2025-14177","CVE-2025-14178","CVE-2025-14180","DSA-6154-1","GHSA-3237-QQM7-MFV7","GHSA-8XR5-QPPJ-GVWJ","GHSA-H96M-RVF9-JGM2"],"tags":["package-watch","pkg:php8.2","fix-available"],"cluster_id":359,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/479","html":"https://vulnwatch.ve1ve2.com/item/479"}},{"id":11912,"source":{"id":"debian13-php","name":"Debian 13 php8.4 (package vulnerabilities)"},"title":"php8.4 (Debian:13): DEBIAN-CVE-2025-14177 / CVE-2025-14177 - In PHP versions:8.1.* before 8.1.34, 8.2.* before 8.2.30, 8.3.* before 8.3.29, 8.4.* before 8.4.16, 8.5.* before 8.5.1, the getimagesize() function may leak un…","summary":"In PHP versions:8.1.* before 8.1.34, 8.2.* before 8.2.30, 8.3.* before 8.3.29, 8.4.* before 8.4.16, 8.5.* before 8.5.1, the getimagesize() function may leak uninitialized heap memory into the APPn segments (e.g., APP1) when reading images in multi-chunk mode (such as via php://filter). This occurs due to a bug in php_read_stream_all_chunks() that overwrites the buffer without advancing the pointer, leaving tail bytes uninitialized. This may lead to information disclosure of sensitive heap data and affect the confidentiality of the target server.\n\nAffected: Debian:12:php8.2, Debian:13:php8.4, Debian:14:php8.4\n\nFixed in: 8.4.16-1~deb13u1, 8.4.16-1\n\nReferences:\nhttps://security-tracker.debian.org/tracker/CVE-2025-14177","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2025-14177","published_at":"2025-12-27T20:15:40.400000Z","updated_at":"2026-10-14T09:47:36.792229Z","fetched_at":"2026-11-22T13:39:48.366388Z","severity":"high","cvss_score":7.5,"epss":0.00504,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"php8.4","vuln_id":"CVE-2025-14177","vuln_ids":["CVE-2025-14177","CVE-2025-14178","CVE-2025-14180","DEBIAN-CVE-2025-14177","GHSA-3237-QQM7-MFV7"],"tags":["package-watch","pkg:php8.4","stack","debian13","fix-available"],"cluster_id":359,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/11912","html":"https://vulnwatch.ve1ve2.com/item/11912"}},{"id":518,"source":{"id":"debian-php","name":"Debian 12 php8.2 (package vulnerabilities)"},"title":"php8.2 (Debian:12): DEBIAN-CVE-2025-14177 / CVE-2025-14177 - In PHP versions:8.1.* before 8.1.34, 8.2.* before 8.2.30, 8.3.* before 8.3.29, 8.4.* before 8.4.16, 8.5.* before 8.5.1, the getimagesize() function may leak un…","summary":"In PHP versions:8.1.* before 8.1.34, 8.2.* before 8.2.30, 8.3.* before 8.3.29, 8.4.* before 8.4.16, 8.5.* before 8.5.1, the getimagesize() function may leak uninitialized heap memory into the APPn segments (e.g., APP1) when reading images in multi-chunk mode (such as via php://filter). This occurs due to a bug in php_read_stream_all_chunks() that overwrites the buffer without advancing the pointer, leaving tail bytes uninitialized. This may lead to information disclosure of sensitive heap data and affect the confidentiality of the target server.\n\nAffected: Debian:12:php8.2, Debian:13:php8.4, Debian:14:php8.4\n\nFixed in: 8.2.30-1~deb12u1\n\nReferences:\nhttps://security-tracker.debian.org/tracker/CVE-2025-14177","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2025-14177","published_at":"2025-12-27T20:15:40.400000Z","updated_at":"2026-10-14T09:47:36.792229Z","fetched_at":"2026-11-21T19:15:05.963780Z","severity":"high","cvss_score":7.5,"epss":0.00504,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"php8.2","vuln_id":"CVE-2025-14177","vuln_ids":["CVE-2025-14177","CVE-2025-14178","CVE-2025-14180","DEBIAN-CVE-2025-14177","GHSA-3237-QQM7-MFV7"],"tags":["package-watch","pkg:php8.2","fix-available"],"cluster_id":359,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/518","html":"https://vulnwatch.ve1ve2.com/item/518"}},{"id":11897,"source":{"id":"debian13-php","name":"Debian 13 php8.4 (package vulnerabilities)"},"title":"php8.4 (Debian:13): DSA-6088-1 / CVE-2025-14177 - php8.4 - security update","summary":"Affected: Debian:13:php8.4\n\nFixed in: 8.4.16-1~deb13u1","url":"https://osv.dev/vulnerability/DSA-6088-1","published_at":"2025-12-21T00:00:00Z","updated_at":"2026-11-20T01:19:12.022466Z","fetched_at":"2026-11-22T13:39:48.366368Z","severity":"high","cvss_score":8.2,"epss":0.00697,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"php8.4","vuln_id":"CVE-2025-14177","vuln_ids":["CVE-2025-14177","CVE-2025-14178","CVE-2025-14180","DSA-6088-1","GHSA-3237-QQM7-MFV7","GHSA-8XR5-QPPJ-GVWJ","GHSA-H96M-RVF9-JGM2"],"tags":["package-watch","pkg:php8.4","stack","debian13","fix-available"],"cluster_id":359,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/11897","html":"https://vulnwatch.ve1ve2.com/item/11897"}},{"id":12648,"source":{"id":"gh-php-src","name":"PHP releases (GitHub php/php-src tags)"},"title":"GHSA-3237-qqm7-mfv7 / CVE-2025-14177: Information Leak of Memory in getimagesize","summary":"Information Leak of Memory in getimagesize\n\n# Information Leak of Memory\r\nProduct: PHP EXT/STANDARD\r\nVersion: 8.6.0\r\nCWE-ID:\r\n•\t[CWE-524: Use of Cache Containing Sensitive Information](https://cwe.mitre.org/data/definitions/524.html)\r\n•\t[CAPEC-204: Lifting Sensitive Data Embedded in Cache](https://capec.mitre.org/data/definitions/204.html)\r\nCVSS vector v.4.0: 6.3 (AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N)\r\nDescription: The application insufficiently controls access to information processed by the application data caching tool. As a result, an attacker can gain access to cached data.\r\nMitigation: Restrict access to information processed by the application data caching tool. Additionally, avoid caching information when unnecessary and, where possible, ensure cache encryption.\r\n\r\n**Researcher: Nikita Sveshnikov (Positive Technologies)**\r\n\r\n## Research \r\nResearcher discovered zero-day vulnerability «Information Leak of Memory» in PHP EXT/STANDARD.\r\nThis report includes a minimal proof‑of‑concept that demonstrates a bug in php-src/ext/standard/image.c where APPn data read for getimagesize(..., $info) may be corrupted and contain uninitialized heap bytes.\r\npoc.php is a minimal Proof of Concept (Listing 1). Writes a small JPEG (min.jpg), reads it through php://filter to force multi‑chunk reads and prints a human‑readable verdict with an inline leak marker snippet when found.\r\n\r\n### Vulnerability reproduction \r\n\r\nThe steps below outline the vulnerability reproduction.\r\n•\tUse the last PHP cli: ./php8.5.1 poc.php\r\n•\tOutput shows:\r\n    - Expected/actual APP1 length\r\n    - Expected vs returned APP1 head (hex)\r\n    - Result: VULNERABLE … or Result: OK …\r\n    - If vulnerable: Leak marker found: offset=… and a short ASCII/HEX snippet with the marker highlighted in [].\r\nNote, the issue triggers under multi‑chunk reads. Reading directly from file or from a string often returns in one read and may not reproduce. The PoC uses php://filter/... specifically to ensure chunked reading.\r\n\r\n### Vulnerability analysis\r\n\r\nphp_read_stream_all_chunks() writes every chunk into the start of the buffer without advancing the destination pointer. The function then reports success as if the full buffer were filled, so the tail may contain uninitialized memory and the head is overwritten by the last chunk. That buffer is stored into $info['APPn'].\r\n\r\nListing 1. PoC Source Code\r\n\r\n```\r\n<?php\r\n// Minimal PoC: corruption/uninitialized memory leak when reading APP1 via php://filter\r\n\r\n$file = __DIR__ . '/min.jpg';\r\n\r\n// Make APP1 large enough so it is read in multiple chunks\r\n$chunk = 8192;\r\n$tail  = 123;\r\n$payload = str_repeat('A', $chunk) . str_repeat('B', $chunk) . str_repeat('Z', $tail);\r\n$app1Len = 2 + strlen($payload);\r\n\r\n// Minimal JPEG: SOI + APP1 + SOF0(1x1) + EOI\r\n$sof  = \"\\xFF\\xC0\" . pack('n', 11) . \"\\x08\" . pack('n',1) . pack('n',1) . \"\\x01\\x11\\x00\";\r\n$jpeg = \"\\xFF\\xD8\" . \"\\xFF\\xE1\" . pack('n', $app1Len) . $payload . $sof . \"\\xFF\\xD9\";\r\nfile_put_contents($file, $jpeg);\r\n\r\n// Mini heap-spray: fill heap w\nPatched:  8.1.34,  8.2.30,  8.3.29,  8.4.16,  8.5.1","url":"https://github.com/php/php-src/security/advisories/GHSA-3237-qqm7-mfv7","published_at":"2025-12-18T16:10:22Z","updated_at":"2025-12-30T22:41:58Z","fetched_at":"2026-11-22T14:05:37.431186Z","severity":"high","cvss_score":7.5,"epss":0.00504,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"php-src","vuln_id":"CVE-2025-14177","vuln_ids":["CVE-2025-14177","CVE-2025-14178","CVE-2025-14180","GHSA-3237-QQM7-MFV7"],"tags":["repo-advisory","CWE-524","security","repo:php/php-src","stack"],"cluster_id":11756,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/12648","html":"https://vulnwatch.ve1ve2.com/item/12648"}}]}