CWE-473: PHP External Variable Modification
3 CVEs have CWE-473 as their primary weakness. 2 of them are in the CISA KEV catalog. The highest EPSS score among them is 95.070%.
A PHP application does not properly protect against the modification of variables from external sources, such as query parameters or cookies. This can expose the application to numerous weaknesses that would not exist otherwise.
Child of CWE-471: Modification of Assumed-Immutable Data (MAID)
Mitigations
- Requirements Implementation: Carefully identify which variables can be controlled or influenced by an external user, and consider adopting a naming convention to emphasize when externally modifiable variables are being used. An application should be reluctant to trust variables that have been initialized outside of its trust boundary. Ensure adequate checking is performed when relying on input from outside a trust boundary. Do not allow your application to run with register_globals enabled. If you implement a register_globals emulator, be extremely careful of variable extraction, dynamic evaluation, and similar issues, since weaknesses in your emulation could allow external variable modification to take place even without register_globals.
Observed examples
- CVE-2000-0860: File upload allows arbitrary file read by setting hidden form variables to match internal variable names.
- CVE-2001-0854: Mistakenly trusts $PHP_SELF variable to determine if include script was called by its parent.
- CVE-2002-0764: PHP remote file inclusion by modified assumed-immutable variable.
- CVE-2001-1025: Modify key variable when calling scripts that don't load a library that initializes it.
- CVE-2003-0754: Authentication bypass by modifying array used for authentication.
Top released CVEs
KEV first, then the highest EPSS score, the highest CVSS score and the newest.
| CVE | Published | Severity | CVSS | EPSS | Description |
|---|---|---|---|---|---|
| CVE-2023-36845 | 2023-08-17 | CRITICAL | 9.8 | 95.070% | A PHP External Variable Modification vulnerability in J-Web of Juniper Networks Junos OS on EX Series and SRX Series allows an unauthenticated, network-based… |
| CVE-2023-36844 | 2023-08-17 | MEDIUM | 5.3 | 89.958% | A PHP External Variable Modification vulnerability in J-Web of Juniper Networks Junos OS on EX Series allows an unauthenticated, network-based attacker to… |
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cwe_lookup/CWE-473'curl 'https://api.contrastcyber.com/cve_search?cwe_id=CWE-473'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).