Safeguard
Vulnerability Analysis•

CVE-2025-5225: High SQL Injection in Campcodes Voting System

CVE-2025-5225 is a high severity SQL injection in Campcodes Advanced Online Voting System 1.0. No fix is listed. Restrict access and fix the query code.

Safeguard Security Team
5 min read

CVE-2025-5225 is a high severity SQL injection (CVSS 7.3) in Campcodes Advanced Online Voting System 1.0. The voter parameter handled by /index.php is not safely handled in a database query. The record lists no fixed version, so treat the software as unpatched and review exposure and code.

What's affected

The CVE record names Campcodes Advanced Online Voting System 1.0. The weak spot is the file /index.php, where the voter parameter reaches a database query. The weakness is classed as CWE-89 (SQL injection) and CWE-74 (injection in general).

The record describes the attack as remote and says an exploit has been disclosed to the public. It does not say the flaw is exploited in the wild, and the CISA Known Exploited Vulnerabilities flag is false for this CVE. The CVSS vector is CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L: network reachable, low complexity, no privileges, no user interaction, and low impact on confidentiality, integrity and availability.

No fixed release is listed in the record. Check the vendor site, the project download page and the VulDB entry for any later version before you decide how to proceed.

How to check if you're exposed

Start with inventory. Find every copy of Advanced Online Voting System you run, including test and staging copies, and note the version. The record only names 1.0, so a different version is not proven safe, only unreported.

On the server, look at how the file builds its query. From the application root:

grep -n "voter" ./index.php
grep -n "mysqli_query\|->query(" ./index.php

If you see the request value joined into a SQL string, the code is the kind the record describes. Code that uses prepared statements with bound values does not have this weakness.

Then check reachability. From a machine outside your network, confirm whether the path /index.php answers at all. Review web server access logs for requests to that path that contain quote characters, SQL keywords or very long values, and review database logs for errors or odd queries around the same times.

If the app has a Composer file, the free in-browser dependency scan at gold.safeguard.sh/scan can list known issues in its libraries. It will not find a flaw in the app's own code, so the code review above is still needed.

What to do now

  1. List every deployment of Advanced Online Voting System and decide which ones must stay online.
  2. Take internet exposure away. Put the app behind a VPN or an IP allow list, or switch it off until it is fixed.
  3. Change the code that builds the query for /index.php to use prepared statements. A minimal pattern in PHP looks like this:
$stmt = $con->prepare("SELECT id FROM users WHERE email = ?");
$stmt->bind_param("s", $email);
$stmt->execute();
  1. Apply the same change to every other query in the app that uses request data, not only this file.
  2. Give the database account the least access it needs, with no rights to other schemas and no file or admin privileges.
  3. Check for a newer vendor release and compare its notes with this CVE. If the vendor has gone quiet, plan to replace the software.
  4. If real data lives in the system, preserve logs and a database copy, review them for unusual reads, and rotate passwords stored in it.

Why it matters

A voting system depends on trust in its data. A flaw in how a page builds its database query raises questions about the integrity of records as well as their confidentiality, and the CVSS score here scores a limited impact on each of confidentiality, integrity and availability.

SQL injection happens when the text a user sends becomes part of a database command instead of staying plain data. It is among the oldest and best understood classes of bug. Prepared statements prevent it, and that is why it keeps showing up in small PHP applications written without them. The affected file is a user facing page rather than an admin only one, which makes it easier for an outsider to reach.

If this software is used for anything beyond a demo, review whether the vote and voter tables could have been read or altered, and keep a copy of the database as evidence before you change anything.

Try it yourself

Click through it at your own pace, or open it full screen.

Quick check

Is CVE-2025-5225 fixed?

The CVE record lists no fixed version for Advanced Online Voting System 1.0. Check the vendor and project pages, and until a patched release exists, reduce exposure and fix the query code yourself.

Is this being exploited in the wild?

The record says an exploit has been disclosed to the public, but the CISA Known Exploited Vulnerabilities flag is false. Public exploit details raise the chance of attacks, so act as though scanning is likely.

Sources

  • Safeguard Gold record: https://gold.safeguard.sh/vulnerability/CVE-2025-5225
  • CVE record data for CVE-2025-5225, including the VulDB entry and the issue tracker link it lists. The vendor pages and VulDB could not be retrieved while this post was written, so confirm fixed versions with the vendor.

Last reviewed: 18 October 2026.

Never miss an update

Weekly insights on software supply chain security, delivered to your inbox.

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.