CVE-2025-32389·PHP vulnerability
NamelessMC is a free, easy to use & powerful website software for Minecraft servers. Prior to version 2.1.4, NamelessMC is vulnerable to SQL injection by providing an unexpected square bracket GET parameter syntax. Square bracket GET parameter syntax refers to the structure `?param[0]=a¶m[1]=b¶m[2]=c` utilized by PHP, which is parsed by PHP as `$_GET['param']` being of type array. This issue has been patched in version 2.1.4.
- Severity
- medium
- Software
- PHP
- Fixed in
- 2.1.4
- Published
- 2025-04-18
Affected versions
Until: 2.1.4
Fixed in: 2.1.4
How to fix this CVE
NamelessMC installations must be upgraded to version 2.1.4 or later to address a SQL injection vulnerability in GET parameter handling. The vulnerability exploits PHP's array syntax in query strings (e.g., ?param[0]=value) to bypass input validation and execute arbitrary SQL commands. Update your NamelessMC installation immediately and verify the patch has been applied by checking the version in your admin panel.
sudo dnf update phpDefensia detects this vulnerability
What an exploitation attempt looks like
Sample log line indicative of exploitation attempts:
GET.*\?[a-zA-Z_][a-zA-Z0-9_]*\[[0-9]+\]=.*((UNION|SELECT|DROP|INSERT|UPDATE|DELETE)|--|;|\*|--|%27|%22|0x)WAF mitigation (if patching is not yet possible)
Add this rule to your WAF to block exploitation attempts while you schedule the patch.
Implement WAF rules to block GET requests containing unescaped square brackets in parameter names followed by numeric indices (e.g., param[0], param[1]). Additionally, enforce SQL prepared statements and parameterized queries at the application level to prevent array-based parameter injection.How to check if you are affected
- Step 1: Check your NamelessMC version by navigating to the admin dashboard or examining /config/config.php for the VERSION constant
- Step 2: Verify if your installation accepts GET parameters with square bracket syntax by testing a request like ?search[0]=test and observing if it's processed without errors
- Step 3: Search your web server access logs for patterns like GET requests containing URL-encoded brackets (%5B, %5D) followed by database error responses (500, SQL errors in User-Agent or response body)
- Step 4: After upgrading to v2.1.4, confirm the fix by attempting the same bracket syntax test—requests should either fail gracefully or be rejected outright
FAQ
What is CVE-2025-32389?
CVE-2025-32389 is a SQL injection vulnerability in NamelessMC that allows authenticated attackers to execute arbitrary SQL queries by manipulating GET parameters using PHP's array syntax (square brackets). This permits unauthorized data access or modification on affected servers.
Is CVE-2025-32389 being actively exploited?
No, CVE-2025-32389 is not currently listed on CISA's Known Exploited Vulnerabilities catalog and no public exploits are available. However, the vulnerability's straightforward exploitation method means proactive patching is critical.
What versions of NamelessMC are affected by CVE-2025-32389?
All versions of NamelessMC prior to and including version 2.1.3 are vulnerable. Version 2.1.4 and later contain the security patch.
How do I check if my server is vulnerable to CVE-2025-32389?
Run `grep VERSION /path/to/namelessmc/config/config.php` to determine your current version. If it returns a version earlier than 2.1.4, your installation is vulnerable.
Does Defensia detect CVE-2025-32389?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If NamelessMC is installed on a monitored server, CVE-2025-32389 will appear in your dashboard with remediation steps.
Related PHP CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2025-32389. Free for 1 server.
Get started free