Not php.net · Not NVD · Not CISA

PHP Vulnerability Tracker

Unofficial briefing on PHP security vulnerabilities

English简体中文日本語DeutschFrançaisNederlandsEspañol

Security alert

PHP2Shell: upgrade PHP. That is the only complete fix.

CVE-2026-109618 and CVE-2026-109619 are critical, unauthenticated remote-code-execution bugs in PHP itself. The PHP project shipped fixes on 21 October 2026 for the supported 8.2–8.5 branches. Restart PHP after you upgrade. A firewall is not a substitute.

Remediation steps

PHP security explainer · defensive

phpinfo() exposure: why it matters and how to fix it

phpinfo() prints the complete PHP configuration. It is handy while setting up a server and a gift to attackers when left online.

Last updated

What it is

The PHP manual describes phpinfo() as outputting a large amount of information about the current state of PHP, including compile options, extensions, the PHP version, server information, environment and HTTP headers. On a live site that can include database hostnames, API keys stored in environment variables and internal paths. MITRE classifies the result as CWE-200, exposure of sensitive information.

How to detect it

How to fix it

Read-only checks and safe patterns

# Find leftover phpinfo() files (read-only)
grep -rln "phpinfo\s*(" --include=*.php /var/www 2>/dev/null | grep -v /vendor/

# Check your own site for common file names (only on hosts you own)
for f in phpinfo.php info.php test.php i.php; do
  curl -s -o /dev/null -w "%{http_code} $f\n" "https://your-site.example/$f"
done

; php.ini: stop advertising the version and block the function
expose_php = Off
disable_functions = phpinfo

Is showing the PHP version really a problem?

On its own it is not a vulnerability, but it tells attackers whether a server is still before 8.2.35, 8.3.36, 8.4.27 or 8.5.12. Removing it costs nothing.

My host’s control panel shows phpinfo. Is that exposed?

Not if it sits behind the panel login. The risk is a phpinfo page reachable without authentication.

Other PHP vulnerability classes

Sources

Outbound links leave this site. We do not host exploit code.

  1. phpinfo() — PHP Manual
  2. Core php.ini directives (open_basedir, expose_php) — PHP Manual
  3. CWE-200: Exposure of Sensitive Information to an Unauthorized Actor — MITRE CWE