CVE-2026-0579 is a SQL injection flaw in Online Product Reservation System 1.0 from code-projects, in /handgunner-administrator/edit.php. NVD scores it 7.3, high severity, and the record says an exploit has been published. No fixed version is listed, so the fix is to correct the query in your copy or take the app offline.
What's affected
- Product: Online Product Reservation System, version 1.0, from code-projects.
- Component: /handgunner-administrator/edit.php, parameter prod_id, name, price, model and serial.
- Fixed version: none listed in the CVE record or the public report. Check the vendor page for any newer release.
- Severity: CVSS 7.3, vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L. The vector lists no privileges required. - Exploitation: the record says exploit details are public. It is not on the CISA Known Exploited Vulnerabilities list.
How to check if you're exposed
This is source code you host, not a library, so start by finding out whether you run it at all.
# Look for the vulnerable file in your web roots
find /var/www -type f -path "*edit.php" 2>/dev/null
# See who has been requesting it
grep -h "edit.php" /var/log/nginx/access.log* /var/log/apache2/access.log* 2>/dev/null | wc -l
If the file exists and the site is reachable from the internet, treat it as exposed. The free dependency scan at gold.safeguard.sh/scan reads manifests, so it will not flag a flaw inside a PHP script like this one. Use it for the libraries around the app.
What to do now
- Take the app off the public internet, or put it behind a VPN or an authenticating reverse proxy, until the query is fixed.
- Check code-projects for a newer release of the project and read its notes. The CVE record does not name one.
- If you keep running it, change the code in edit.php so prod_id, name, price, model and serial reaches the database through a prepared statement (PDO or mysqli) instead of string concatenation.
- Run the database account for this app with only the privileges it needs. It should not own the schema or be able to read other databases.
- Search access logs for unusual requests to edit.php and for database errors in the PHP log, then reset any passwords that may have been exposed.
Why it matters
The weakness is CWE-89 (improper neutralization of special elements in an SQL command), a child of CWE-74 (injection). The app builds a query by pasting request data straight into SQL text, so the database cannot tell data from instructions. The public report for this product family describes that exact pattern.
The product edit form posts five fields to one handler, and the record names all of them as manipulable. More inputs mean more places to forget escaping, which is why a fix has to cover every field in the statement rather than the first one someone noticed.
Quick check
Is there a patch for CVE-2026-0579?
None is listed in the CVE record. Check code-projects for a newer release, and if there is none, fix the query yourself or stop running the app.
Is fixing one parameter enough?
No. The record lists several POST fields for this handler. Every value that reaches the SQL statement needs a bound parameter.
Sources
Last reviewed: 19 October 2026.