CVE-2025-2505

Age Gate <= 3.5.3 - Unauthenticated Local PHP File Inclusion via 'lang'

Published Mar 20, 2025 CVSS 3.1 · 9.8 Critical EPSS 6.7% KEV · Not listed
Description
The Age Gate plugin for WordPress is vulnerable to Local PHP File Inclusion in all versions up to, and including, 3.5.3 via the 'lang' parameter. This makes it possible for unauthenticated attackers to include and execute arbitrary PHP files on the server, allowing the execution of code in those files. This can be used to bypass access controls, obtain sensitive data, or achieve code execution in cases where images and other “safe” file types can be uploaded and included.

Analysis

AI-generated

Technical impact

The Age Gate plugin for WordPress contains a flaw that allows an unauthenticated attacker to include and execute arbitrary PHP files through the 'lang' parameter. This vulnerability falls under CWE-22 and can be used to bypass access controls, exfiltrate sensitive data, or to achieve code execution when the attacker can place files such as images in upload directories that are later included.

Affected Systems

WordPress sites running the philsbury Age Gate plugin, versions up to and including 3.5.3 are affected. Any installation of these vulnerable plugin versions is at risk.

Risk and Exploitability

The CVSS score of 9.8 indicates a severe potential impact if exploited, but the EPSS score of 7% indicates a relatively low probability of exploitation in the wild. This does not eliminate the risk, as the flaw can still be leveraged by attackers who manage to place a PHP file into a directory that the plugin includes via the 'lang' parameter. The public references show that an attacker can construct an HTTP request referencing a local PHP file, for example by uploading a file disguised as an image and later causing the plugin to include it.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the WordPress Age Gate plugin to version 3.5.4 or later, or any release that removes the local file inclusion flaw.
  • If an upgrade cannot be performed immediately, disable or remove the 'lang' parameter from the plugin’s request handling, or otherwise restrict the plugin’s ability to include files from the web root.
  • Configure file upload permissions and directory access controls so that only allowable file types are accepted and stored outside of directories that can be included by the plugin.

Generated by OpenCVE AI on November 25, 2026 at 15:44 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-6740 The Age Gate plugin for WordPress is vulnerable to Local PHP File Inclusion in all versions up to, and including, 3.5.3 via the 'lang' parameter. This makes it possible for unauthenticated attackers to include and execute arbitrary PHP files on the server, allowing the execution of code in those files. This can be used to bypass access controls, obtain sensitive data, or achieve code execution in cases where images and other “safe” file types can be uploaded and included.
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description The Age Gate plugin for WordPress is vulnerable to Local PHP File Inclusion in all versions up to, and including, 3.5.3 via the 'lang' parameter. This makes it possible for unauthenticated attackers to include and execute arbitrary PHP files on the server, allowing the execution of code in those files. This can be used to bypass access controls, obtain sensitive data, or achieve code execution in cases where images and other “safe” file types can be uploaded and included.
Title Age Gate <= 3.5.3 - Unauthenticated Local PHP File Inclusion via 'lang'
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
Wordfence
Published
Updated
Apr 8, 2026, 5:26 PM
Reserved
Mar 18, 2025, 5:08 PM
Status
Deferred
Published
Mar 20, 2025, 8:15 AM
Modified
Jun 17, 2026, 9:07 AM