Skip to content
PHP Security Checker

Detection

How it works

Results are built per version from live records. Nothing on this page is a stored copy of CVE scores or fix versions. Run a check from the home page, or browse the vulnerability list.

Matching

The version must be MAJOR.MINOR.PATCH. A missing patch is rejected instead of being guessed.

NVD records are kept only when the product is the PHP runtime (`cpe:2.3:a:php:php`) or php.net published affected ranges for PHP itself. Software written in PHP is left out.

A finding is confirmed when a precise range contains the version and php.net, NVD, GitHub, and the ChangeLog do not disagree. Open-ended CPE rows and conflicting fix dates stay at "Potentially affected — verification required".

Fixed releases come from those ranges and must also appear in the php.net release index. Otherwise the fix is "Not verified".

RCE and shell risk

Remote code execution, command injection, shell execution, CGI argument injection, and other code execution are classified from CWE-78, CWE-77, CWE-88, and CWE-94, plus the published description. Each row shows that basis.

The version alone cannot show whether the bug is reachable. CGI versus php-fpm, Windows versus Linux, and the loaded extensions all matter. This app never sends payloads or shell commands anywhere.

Status colors

Red

At least one confirmed PHP runtime vulnerability contains this version.

Yellow

Unsupported branch, stale data, unknown support, or a match that still needs verification.

Green

No confirmed match in the available data, and the branch is still supported. Green is not a promise of safety.

Which sources are trusted?

Only official or primary records are used:

  • NIST National Vulnerability Database (NVD API 2.0), for CVE records, CVSS scores, and CPE ranges.
  • php.net release data and the supported-versions and end-of-life pages, for release lists and support dates.
  • The PHP ChangeLog, to cross-check which release fixed a CVE.
  • GitHub Security Advisories published on php/php-src.

When these sources disagree, for example NVD's range contains a version but php.net's affected list or the ChangeLog says it is fixed, the app does not pick a winner. The finding stays "Potentially affected — verification required", the conflict is shown on the result, and the fixed version is "Not verified" unless it is published on php.net.

What if a source is down?

Upstream responses are cached on the server. If NVD, php.net, or GitHub cannot be reached, the last successful copy is used, and the result says it is cached and shows its "Data last updated" time.

A result built from cached or partial data may be incomplete: newer CVEs might be missing. It is shown in yellow with a warning, never as a clean green result.

If NVD fails and no cached copy exists, the version cannot be verified. You get a clear error and a Retry button instead of a result.

Quick answers

How do I check if my PHP version is vulnerable?

Run php -v on the server, then enter the full MAJOR.MINOR.PATCH version (for example 8.1.12) on the home page or open /check/8.1.12. The result lists confirmed and possible PHP runtime CVEs for that exact version, the branch support status, and the release to upgrade to.

Which data sources does PHP Security Checker use?

Version checks use NIST NVD, php.net releases and support dates, the PHP ChangeLog, and GitHub Security Advisories for php/php-src. Composer and Laravel advisories come from Packagist. Laravel support dates come from Laravel's release notes. WordPress core status comes from api.wordpress.org. Docker tag mapping comes from docker-library/php versions.json. News headlines come from the official feeds linked on /news.

What happens if NVD or php.net is down or slow?

Each upstream call has a time limit and a small number of retries. If a source still fails, the last successful cached copy is used and the result is marked as cached with its Data last updated time, shown in yellow rather than green. If nothing is cached, you get a clear error and a Retry button.

Does a green result mean my server is safe?

No. Green means no confirmed PHP runtime vulnerability matched in the available data and the branch is still supported. Extensions, configuration, your PHP application code and how PHP is run (CGI or php-fpm) can still expose risk.

Is there an API?

Yes. GET /api/check?v=8.1.12 returns the same report as JSON, with CORS enabled for GET. Errors return JSON with a code and a matching HTTP status. The OpenAPI 3.1 description is at /openapi.json.

Does the checker scan my website or run PHP code?

The version checker only compares the version string you enter. It never connects to your server or runs PHP. The headers tool fetches a single public URL you submit, reads response headers, and discards the body. It refuses local, private, and metadata addresses. It does not send exploit payloads.