# CVE-2025-14177: Information Leak of Memory in getimagesize

- Priority: **Routine**
- Reason: Not severe (CVSS 6.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-12-27 · Modified: 2025-12-29
- Aliases: UBUNTU-CVE-2025-14177, DEBIAN-CVE-2025-14177, ALPINE-CVE-2025-14177
- Record: https://cvemate.com/vulnerability/CVE-2025-14177 · JSON: https://cvemate.com/vulnerability/CVE-2025-14177/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS: 0.54%, percentile 46.943%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- alpine php81 (Alpine Linux): \< 8.1.34-r0
- alpine php82 (Alpine Linux): \< 8.2.30-r0
- alpine php83 (Alpine Linux): \< 8.3.29-r0
- alpine php84 (Alpine Linux): \< 8.4.16-r0
- alpine php85 (Alpine Linux): \< 8.5.1-r0
- debian php8.2 (Debian): \< 8.2.30-1~deb12u1
- debian php8.4 (Debian): \< 8.4.16-1~deb13u1 \| \< 8.4.16-1
- ubuntu php8.3 (Ubuntu): \< 8.3.6-0ubuntu0.24.04.6
- ubuntu php8.4 (Ubuntu): \< 8.4.11-1ubuntu1.1
- php group php: ≥ 8.1.\*, \< 8.1.34 \| ≥ 8.2.\*, \< 8.2.30 \| ≥ 8.3.\*, \< 8.3.29 \| ≥ 8.4.\*, \< 8.4.16 \| ≥ 8.5.\*, \< 8.5.1
- php php: ≥ 8.1.0, \< 8.1.34 \| ≥ 8.2.0, \< 8.2.30 \| ≥ 8.3.0, \< 8.3.29 \| ≥ 8.4.0, \< 8.4.16 \| 8.5.0

## References

- <https://github.com/php/php-src/security/advisories/GHSA-3237-qqm7-mfv7>
- <https://ubuntu.com/security/CVE-2025-14177>
- <https://www.cve.org/CVERecord?id=CVE-2025-14177>
- <https://github.com/php/php-src/commit/c5f28c7cf0a052f48e47877c7aa5c5bcc54f1cfc>
- <https://ubuntu.com/security/notices/USN-7953-1>
- <https://security-tracker.debian.org/tracker/CVE-2025-14177>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-14177>
- <https://security.alpinelinux.org/vuln/CVE-2025-14177>

---

Data as of 2026-12-05T06:45:20.131Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
