Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Network-reachable SQL injection requires low-privilege auth (PR:L); partial C/I/A impact scoped entirely to the application database with no privilege escalation or scope change.
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
6DescriptionCVE.org
A vulnerability has been found in SourceCodester Pharmacy Sales and Inventory System 1.0. This impacts the function delete_supplier of the file /ajax.php?action=delete_supplier. Such manipulation of the argument ID leads to sql injection. The attack can be executed remotely. The exploit has been disclosed to the public and may be used.
AnalysisAI
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 enables low-privilege authenticated attackers to manipulate backend database queries via the unsanitized id parameter in the delete_supplier function at /ajax.php?action=delete_supplier. Exploitation yields partial confidentiality, integrity, and availability impact against the application database, consistent with the CVSS 4.0 VC:L/VI:L/VA:L scope. A public proof-of-concept is available on GitHub, though EPSS at 0.03% (8th percentile) and SSVC's 'not automatable' designation indicate negligible real-world exploitation pressure at this time; no CISA KEV listing exists.
Technical ContextAI
The affected application is a PHP-based pharmacy management web application distributed by SourceCodester (cpe:2.3:a:sourcecodester:pharmacy_sales_and_inventory_system:*:*:*:*:*:*:*:*), with version 1.0 as the sole confirmed affected release. The root cause is CWE-89 (Improper Neutralization of Special Elements used in an SQL Command): the delete_supplier function in /ajax.php interpolates the HTTP-supplied id parameter directly into a SQL DELETE statement without parameterized queries or input sanitization. This allows an attacker to inject arbitrary SQL syntax, potentially expanding the query to read, modify, or delete records across the database beyond the intended single-supplier deletion. The PHP tag confirms server-side scripting in the application stack; no framework-level ORM or query abstraction appears to be in use for this endpoint.
RemediationAI
No vendor-released patch has been identified for Pharmacy Sales and Inventory System 1.0 at time of analysis; the fix status should be tracked at https://vuldb.com/vuln/360117 and the SourceCodester product page at https://www.sourcecodester.com/. As an immediate compensating control, restrict access to the /ajax.php endpoint to authenticated, role-appropriate users only and validate that session controls prevent horizontal privilege escalation to the delete_supplier action. Deploying a web application firewall rule to reject SQL metacharacters (single quotes, UNION, comment sequences) in the id parameter is effective but carries a false-positive risk on malformed legitimate numeric IDs if not tuned to an integer allowlist. The most conservative interim measure is to disable or remove the supplier deletion feature from the application until a patched version is available, accepting the trade-off of reduced administrative functionality. Source-code remediation involves replacing direct SQL string concatenation with PDO prepared statements targeting the affected function in /ajax.php.
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
Same weakness CWE-89 – SQL Injection
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-26264