PIE 1.5.5 and 1.4.12 Fix Failed Build Logs Left Readable in /tmp (GHSA-4538-pqqf-mv67)
PHP's official extension installer, PIE, wrote long failed-make output to a world-readable file in the shared temp directory. Update to 1.5.5 or 1.4.12, especially on shared build machines.
On 30 October 2026, the PHP project released PIE 1.5.5 and PIE 1.4.12, the official PHP extension installer. Both releases fix a single security advisory, GHSA-4538-pqqf-mv67, titled "Output of a failed make is unsafely stored in the system-wide temporary directory".
What went wrong
When an extension build fails and make produces more than 5,000 bytes of output, PIE doesn't print it all to the terminal. Instead it writes the output to a file and shows you the file name.
According to the advisory, that file was created in sys_get_temp_dir() (usually the shared /tmp/):
- without restricting permissions, so the proof of concept shows a root-owned
pie_make_output_*file with mode0644, readable by any local user; - without checking whether the file already existed, so PIE could write into a file an attacker created in advance with open permissions, or overwrite other files.
Build logs can contain paths, environment details and other information you may not want other users on the machine to see.
How serious is it?
The advisory rates it low severity (CVSS 3.1 score 3.2, CWE-377 Insecure Temporary File). An attacker needs a local account on the same machine, and the problem only appears when a build fails with long output. The scenario the maintainers call out is shared hosting or other multi-user servers. The issue was reported by GitHub user TimWolla and the advisory was published by PIE maintainer asgrim.
Affected and fixed versions
| Branch | Affected | Fixed |
|---|---|---|
| 1.4.x | below 1.4.12 | 1.4.12 |
| 1.5.x | 1.5.0 to 1.5.4 | 1.5.5 |
No CVE ID had been assigned at the time of publication.
What to do
- Update PIE to 1.5.5 (or 1.4.12 if you're staying on the 1.4 line). If you installed the PHAR directly, download the new release from the PIE releases page; if PIE is baked into a Docker build image, rebuild the image.
- On shared build servers or CI runners, look for leftover
pie_make_output_*files in/tmpand delete any you don't need. - If an earlier failed build ran with secrets in its environment on a multi-user machine, consider whether those values could have ended up in the log.
This is a small fix compared with this month's PHP core security releases, but PIE is increasingly the default way to install extensions, so it's worth keeping current along with PHP itself.
If your servers still build extensions by hand for an old PHP version, or you're not sure which tools and runtimes need updating, RescuePHP can audit legacy PHP stacks, apply security patches and help plan the upgrade path.