CVE-2025-58709

WordPress Legacy theme <= 1.9 - Local File Inclusion vulnerability

Published Dec 18, 2025 CVSS 3.1 · 8.1 High EPSS < 1% KEV · Not listed
Description
Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in axiomthemes Legacy legacy allows PHP Local File Inclusion.This issue affects Legacy: from n/a through <= 1.9.

Analysis

AI-generated

Technical impact

The flaw arises from improper control of the filename supplied to an include/require statement in the Legacy WordPress theme, allowing an attacker to read arbitrary files on the local filesystem. An attacker who can trigger the inclusion could read sensitive files such as configuration files, database credentials, or other data, leading to compromise of confidentiality and potentially further attacks such as session hijacking or credential theft. The vulnerability is identified as CWE‑98 and is rated with a CVSS score of 8.1.

Affected Systems

The affected product is the Legacy theme provided by AxiomThemes, versions n/a through 1.9 inclusive. Any WordPress installation using the Legacy theme up to and including version 1.9 is susceptible.

Risk and Exploitability

The EPSS score for this vulnerability is less than 1%, indicating a low but nonzero probability of exploitation, and it is not currently listed in the CISA KEV catalog. The high CVSS rating reflects a significant potential impact if successfully abused. While the description refers to a local file inclusion, it is likely that a remote attacker can exercise this control via crafted URLs or form input on the WordPress site, making remote exploitation a realistic threat in publicly accessible deployments.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Legacy theme to version 2.0 or later, which removes the vulnerable filename handling.
  • If an upgrade is not immediately possible, limit the web server’s file system access to the theme directory by setting strict file permissions and/or applying an open_basedir restriction so that included files cannot escape the intended directory.
  • Review or modify the theme’s code to ensure that any filename passed to include/require is not derived directly from user input; apply strict validation, sanitization, or a whitelist of allowed files before inclusion.

Generated by OpenCVE AI on April 29, 2026 at 13:13 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Axiomthemes
Axiomthemes legacy
CPEs cpe:2.3:a:axiomthemes:legacy:*:*:*:*:*:wordpress:*:*
Vendors & Products Axiomthemes
Axiomthemes legacy
Type Values Removed Values Added
First Time appeared Wordpress
Wordpress wordpress
Vendors & Products Wordpress
Wordpress wordpress
Type Values Removed Values Added
Metrics cvssV3_1

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

ssvc

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

Type Values Removed Values Added
Description Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in axiomthemes Legacy legacy allows PHP Local File Inclusion.This issue affects Legacy: from n/a through <= 1.9.
Title WordPress Legacy theme <= 1.9 - Local File Inclusion vulnerability
Weaknesses CWE-98
References
Weaknesses
  • CWE-98

    Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion')

Sources

Status
PUBLISHED
Assigner
Patchstack
Published
Updated
Apr 28, 2026, 8:15 PM
Reserved
Sep 3, 2025, 12:43 PM
Status
Modified
Published
Dec 18, 2025, 8:15 AM
Modified
Jun 17, 2026, 9:44 AM