From weakness to fix
Everything starts with a vulnerability: a weakness that lets an attacker do something the software should not allow. Once it is known, it gets a public CVE ID so everyone refers to the same problem. A CVSS score expresses how severe it is, and the NVD adds its own analysis later.
The software maker publishes a security advisory with the affected and fixed versions, and the fix itself arrives as a security patch.
Proof, exploitation and the worst cases
An exploit is code that uses a vulnerability. A proof of concept shows that an attack works, which is not the same as attacks happening. Real-world exploitation is tracked in lists such as CISA KEV.
The most serious category is remote code execution, where an attacker can run code on your server over the network. Other common types on PHP sites are SQL injection, cross-site scripting and SSRF.
A current example is PHP2Shell: two critical PHP vulnerabilities fixed on 21 October 2026. That page lists only confirmed facts, each with source and time.
Making the target smaller
You cannot prevent every new vulnerability, but you can reduce how many apply to you. Every plugin, login and line of server code adds to your attack surface. Keeping PHP on a supported version closes known holes, and help to fix your WordPress website helps when a site is already broken or exposed.
For sites that mostly publish content, a WordPress to static site move removes PHP and the database from every page view, so a whole class of server-side problems no longer applies.