PHP Security Audit 2025 Hardening Checklist

PHP Security Audit 2025

PHP Hardening Checklist

3 high-severity CVEs were found in the PHP core. This checklist translates the audit into concrete steps for PHP-FPM, the MySQL driver, file uploads, and cryptographic API usage.

No newsletter. No sequence. Just the checklist.

  • PHP-FPM hardening — UID/GID validation & log injection (CVE-2024–9026)
  • MySQL native driver — heap over-read in persistent workers (CVE-2024–8929)
  • File upload handling — multipart boundary constraints (CVE-2024–8925)
  • Cryptographic API — key length checks & cipher mode selection