☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
Thembay 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-67981

CVE-2025-67981 Local File Inclusion in Thembay
📅 PUBLISHED: 2026-02-20 15:46 UTC 🔄 UPDATED: 2026-08-12 14:52 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: None
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.06%
👁️
0.06% probability
1.4× above the median CVE
Tier: LOW
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-67981 is a critical PHP Local File Inclusion (LFI) vulnerability discovered in the Besa WordPress theme developed by Thembay. The flaw resides in improper control of filenames used in PHP include/require statements, allowing an unauthenticated attacker to include arbitrary local files from the server. This can lead to sensitive information disclosure, such as reading configuration files, database credentials, or source code. The vulnerability affects all versions of Besa up to and including 2.3.15. No official patch has been released at this time, and no public proof-of-concept (PoC) code is available. The CVSS score of 8.1 (High) reflects the ease of exploitation and potential for significant data exposure.

⚡ 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 is specific to the WordPress ecosystem and the Besa theme. It is not related to NPM, PyPI, Go, or Ruby packages. However, organizations using this theme should treat it as a supply chain risk, as the theme is a third-party component integrated into WordPress sites. The lack of a patch increases the risk of compromise.

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
  • Attack Complexity: Low
  • Privileges Required: None
  • User Interaction: None
  • Scope: Unchanged
  • Confidentiality Impact: High
  • Integrity Impact: None
  • Availability Impact: None

The threat level is High due to the low complexity and no authentication requirement. An attacker can exploit this remotely to read sensitive files, potentially leading to further compromise.

Deep Dive & Mechanics

The vulnerability is a PHP Local File Inclusion (LFI) caused by improper control of a filename used in an include or require statement. In the Besa theme, a parameter (likely page, template, or similar) is passed to a PHP function without proper sanitization. An attacker can manipulate this parameter to include arbitrary files from the server's filesystem.

Example vulnerable code pattern:

$template = $_GET['template'];
include( $template . '.php' );

An attacker could exploit this by sending a request like:

http://target.com/wp-content/themes/besa/some-file.php?template=../../../../etc/passwd%00

The %00 null byte (if PHP version < 5.3.4) or path traversal can allow reading files outside the intended directory. Since the vulnerability is in a WordPress theme, it is accessible via the web root.

Vulnerable vs. Patched Code

Vulnerable Code (Besa <= 2.3.15):

// In a template loader function
$template = $_GET['template'];
include( get_template_directory() . '/templates/' . $template . '.php' );

Patched Code (Hypothetical):

// Properly sanitize and restrict path
$allowed_templates = array('home', 'single', 'page');
$template = $_GET['template'];
if (in_array($template, $allowed_templates)) {
    include( get_template_directory() . '/templates/' . $template . '.php' );
} else {
    // Default template
    include( get_template_directory() . '/templates/page.php' );
}

The patched version uses a whitelist approach to restrict included files to a predefined set, preventing arbitrary file inclusion.

Exploitation & Lab Setup

Red Team

Lab Setup:

  1. Install WordPress with the Besa theme (version 2.3.15 or earlier).
  2. Ensure the server is accessible from the attacker's machine.

Exploitation Steps:

  1. Identify the vulnerable parameter (e.g., template, page, file).
  2. Craft a request to include a sensitive file:
    GET /wp-content/themes/besa/index.php?template=../../../../etc/passwd HTTP/1.1
    Host: target.com
    
  3. If the server returns the contents of /etc/passwd, the vulnerability is confirmed.

Note: No public exploit code is available, but the technique is standard LFI.

Blue Team

Detection:

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

Hunting:

  • Search for requests containing template=, page=, or file= parameters in the context of the Besa theme.
  • Correlate with file read attempts (e.g., /etc/passwd, /wp-config.php).

Indicators of Compromise (IOCs)

  • File Paths: /etc/passwd, /etc/shadow, /wp-config.php, /proc/self/environ
  • URL Patterns: ?template=../../, ?page=../../, ?file=../../
  • Log Entries: HTTP requests with ../ sequences in the query string targeting Besa theme files.
  • Response Content: Unauthorized disclosure of system files or WordPress configuration.

Detection Engineering

YARA Rule

rule CVE_2025_67981_LFI_Detection {
    meta:
        description = "Detects LFI attempts targeting Besa theme CVE-2025-67981"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-67981"
    strings:
        $path_traversal = /(\.\.\/|\.\.\\|%2e%2e%2f|%2e%2e%5c)/
        $besa_theme = /wp-content\/themes\/besa/i
        $sensitive_file = /(etc\/passwd|etc\/shadow|wp-config\.php|proc\/self\/environ)/
    condition:
        $besa_theme and $path_traversal and $sensitive_file
}

Sigma Rule

title: CVE-2025-67981 LFI Attempt on Besa Theme
id: 8a3f7c2e-1b4d-4e9f-8c6a-5d2b1e0f3a7c
status: experimental
description: Detects path traversal attempts in HTTP requests targeting the Besa WordPress theme.
author: Valters IT
date: 2025-04-10
logsource:
    category: webserver
    product: apache
    service: access
detection:
    selection:
        cs-uri-query|contains:
            - 'template=..'
            - 'page=..'
            - 'file=..'
        cs-uri-stem|contains: '/wp-content/themes/besa/'
    condition: selection
falsepositives:
    - Legitimate use of similar parameters (rare)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2025-67981 LFI Attempt on Besa Theme"; flow:to_server,established; content:"/wp-content/themes/besa/"; http_uri; content:"../"; http_uri; distance:0; within:10; classtype:attempted-recon; sid:1000001; rev:1;)

Remediation & Mitigation

  1. Immediate Action: Disable or remove the Besa theme until a patch is available.
  2. Workaround: Implement a Web Application Firewall (WAF) rule to block path traversal patterns in requests to the Besa theme.
  3. Code Fix: Apply input validation and whitelisting for any file inclusion parameters.
  4. Monitoring: Enable detailed logging for web server and review logs for suspicious activity.
  5. Update: Monitor Thembay's official channels for a patched version and apply it immediately.

Valters IT
Securing Digital Frontiers

👁️ 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:"Besa"
http.html:"wp-content/themes/besa"
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2025-67981/ · 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.