CVE-2025-2505: Unauthenticated Local PHP File Inclusion in WordPress Age Gate
Age Gate for WordPress through version 3.5.3 contains a local PHP file inclusion vulnerability in its handling of the lang parameter. An unauthenticated attacker can cause the plugin to include arbitrary PHP files resident on the server and execute code contained in those files. The issue may enable access-control bypass, disclosure of sensitive data, or code execution when attacker-controlled content, including files accepted as ostensibly safe types, can be uploaded and subsequently included.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can bypass access controls, expose sensitive data, and execute PHP code contained in included server-side files. Code execution is possible where an attacker can arrange for a file containing executable PHP to be uploaded and included.
Mitigation
If you can’t patch tonight, do this now.
Until remediation is applied, disable the plugin or block access to the vulnerable functionality. Apply a strict allowlist for accepted language values at the application or web application firewall layer if operationally feasible. Reduce the likelihood of code execution by preventing uploads of executable content, hardening upload validation, disabling execution in upload-accessible directories, and enforcing least-privilege filesystem permissions for the web server account. Monitor for anomalous requests targeting the lang parameter and for unexpected inclusion-related errors or execution behavior.
Remediation
Patch, then assume compromise.
Update the Age Gate plugin to a version newer than 3.5.3 if a vendor fix is available. If no patched release is available, remove or disable the vulnerable plugin. Review and correct the code path handling the lang parameter so that it cannot influence filesystem inclusion of arbitrary local resources; language selection should be restricted to a fixed allowlist of expected values mapped to known-safe files. Validate and canonicalize input, avoid dynamic include operations based on user input, and ensure included resources are non-executable data where possible. Review the server for unauthorized uploaded content and rotate secrets if compromise is suspected.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2025-2505 exploited in the wild?
- Yes. As of Sep 30, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2025-2505?
- As of Sep 30, 2026, Mallory has found no public exploit for CVE-2025-2505.
- Is there a patch for CVE-2025-2505?
- Update the Age Gate plugin to a version newer than 3.5.3 if a vendor fix is available. If no patched release is available, remove or disable the vulnerable plugin.
- How severe is CVE-2025-2505?
- CVE-2025-2505 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 4.9% (92nd percentile) as of Sep 30, 2026.
Recent activity
3 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.