CVE-2025-58889CWE-98

WordPress Towny theme <= 1.16 - Local File Inclusion vulnerability

High · published December 18, 2025

CVSS v3.1
8.1
EPSS
0%
Percentile
41.8
In the wild
Unconfirmed
What it is

⚡ A crafty oversight in axiomthemes Towny lets attackers pass in any filename they want—like slipping in a friend’s name for a VIP reservation at a trendy restaurant! 🍽️ Picture a guest at an exclusive restaurant who can write their own name on the reservation list—now that’s a recipe for chaos. This vulnerability allows attackers to manipulate file paths in PHP scripts, potentially leading to unauthorized access to sensitive files. An attacker could use this flaw to access or execute files on the server, leading to data leaks or even complete server takeover. This could result in the theft of sensitive information or disruption of service. The consequences are serious and could impact the reputation of your website!

Put simply

Picture a guest at an exclusive restaurant who can write their own name on the reservation list—now that’s a recipe for chaos. This vulnerability allows attackers to manipulate file paths in PHP scripts, potentially leading to unauthorized access to sensitive files. This vulnerability in axiomthemes allows for Local File Inclusion (LFI) due to the improper control of filenames in PHP's include/require statements. Versions from n/a up to and including 1.16 are affected, meaning that an attacker could control which files are included during execution.

What to do

An attacker could use this flaw to access or execute files on the server, leading to data leaks or even complete server takeover. This could result in the theft of sensitive information or disruption of service. The consequences are serious and could impact the reputation of your website! To secure your environment, upgrade to the latest version of Towny as soon as possible. Ensure that all include/require statements are validated to prevent arbitrary file access. Implement strict input validation to block any unauthorized file manipulation. You've got this! With these steps, you can ensure your application is secure and your users are safe! 🛡️

The record
Technical detail
CVSS v3.1
8.1 · HIGH
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00499 · 41.8th percentile
Weakness
CWE-98 · Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion')
Published
2025-12-18T07:21Z
EPSS history
Timeline
  • 18 DEC 07:21Z
    WordPress Towny theme <= 1.16 - Local File Inclusion vulnerability
    cvelistv5