CVE-2026-7392

SourceCodester Pharmacy Sales and Inventory System ajax.php delete_supplier sql injection

Published Apr 29, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

A SQL injection flaw exists in the delete_supplier endpoint of SourceCodester Pharmacy Sales and Inventory System. By manipulating the ID parameter in /ajax.php?action=delete_supplier, an attacker can inject arbitrary SQL statements. The vulnerability is exploitable from a remote location and can result in unauthorized access to, alteration of, or deletion of database contents. The weakness is classified as CWE-74 (SQL Injection via string concatenation) and CWE-89. The existence of a publicly disclosed exploit raises the risk of exploitation.

Affected Systems

The affected product is SourceCodester Pharmacy Sales and Inventory System version 1.0. The flaw resides in the ajax.php script that handles supplier deletion requests. Only this product version and that specific request handler are listed as impacted.

Risk and Exploitability

The CVSS score of 5.3 indicates moderate severity. No EPSS data is available, and the vulnerability is not listed in the CISA KEV catalog. The attack vector is inferred to be remote since the description states the attack can be executed from outside the system. Exploitation requires the ability to send crafted HTTP requests to the vulnerable endpoint; no authentication is mentioned as a prerequisite, suggesting the flaw may be exploitable without prior login. Given the public availability of the exploit and the moderate CVSS score, organizations should treat this as a significant security risk.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update SourceCodester Pharmacy Sales and Inventory System to a release that replaces string concatenation with parameterized queries in the delete_supplier routine.
  • If an official patch is not yet available, modify the delete_supplier code to validate the ID parameter strictly as an integer and to use prepared statements for all SQL operations.
  • Restrict access to the /ajax.php?action=delete_supplier endpoint to only authenticated users with appropriate permissions, using web‑server or application‑level access controls.
  • Enable detailed logging for failed SQL queries near the delete_supplier endpoint and monitor logs for evidence of injection attempts.

Generated by OpenCVE AI on April 29, 2026 at 21:16 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Sourcecodester
Sourcecodester pharmacy Sales And Inventory System
Vendors & Products Sourcecodester
Sourcecodester pharmacy Sales And Inventory System
Type Values Removed Values Added
Description 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.
Title SourceCodester Pharmacy Sales and Inventory System ajax.php delete_supplier sql injection
Weaknesses CWE-74
CWE-89
References
Metrics cvssV2_0

{'score': 6.5, 'vector': 'AV:N/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:ND/RC:UR'}

cvssV3_0

{'score': 6.3, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R'}

cvssV3_1

{'score': 6.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R'}

cvssV4_0

{'score': 5.3, 'vector': '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'}

Weaknesses
  • CWE-74

    Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Apr 29, 2026, 6:14 PM
Reserved
Apr 29, 2026, 9:37 AM
Status
Deferred
Published
Apr 29, 2026, 5:16 PM
Modified
Oct 26, 2026, 8:10 PM