CVE-2026-7199

SourceCodester Pharmacy Sales and Inventory System ajax.php sql injection

Published Apr 27, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
A vulnerability was detected in SourceCodester Pharmacy Sales and Inventory System 1.0. Affected by this vulnerability is an unknown functionality of the file /ajax.php?action=delete_product. Performing a manipulation of the argument ID results in sql injection. It is possible to initiate the attack remotely. The exploit is now public and may be used.

Analysis

AI-generated

Technical impact

A SQL injection flaw exists in the delete product functionality of SourceCodester Pharmacy Sales and Inventory System 1.0. An attacker can manipulate the ID parameter sent to /ajax.php?action=delete_product to inject arbitrary SQL statements. This allows unauthorized read, modification or deletion of database contents, compromising confidentiality, integrity and possibly availability.

Affected Systems

The vulnerability affects the SourceCodester Pharmacy Sales and Inventory System version 1.0. No other versions or variants are listed. The flaw resides in a publicly accessible ajax endpoint and would impact any installation that has not been updated or patched.

Risk and Exploitability

The CVSS score of 6.9 indicates moderate severity. EPSS is not available, and the issue is not currently listed in the CISA KEV catalog. However, the flaw is exploitable over the network through a standard HTTP request, and the public exploit code mentioned in the advisories suggests that it is likely in use or easy to replicate. Because no restrictions on the target are specified, any remotely reachable instance could be targeted, increasing the risk for hosted environments.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade SourceCodester Pharmacy Sales and Inventory System to the latest release or apply the vendor‑issued patch that fixes the SQL injection in the delete product endpoint.
  • Modify the application code to validate the ID parameter as a numeric value and to use prepared statements or parameterized queries before executing SQL commands.
  • Restrict access to the /ajax.php endpoint by enforcing authentication and proper authorization checks, ensuring only privileged users can invoke delete_product operations.

Generated by OpenCVE AI on April 28, 2026 at 12:46 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', '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 was detected in SourceCodester Pharmacy Sales and Inventory System 1.0. Affected by this vulnerability is an unknown functionality of the file /ajax.php?action=delete_product. Performing a manipulation of the argument ID results in sql injection. It is possible to initiate the attack remotely. The exploit is now public and may be used.
Title SourceCodester Pharmacy Sales and Inventory System ajax.php sql injection
Weaknesses CWE-74
CWE-89
References
Metrics cvssV2_0

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

cvssV3_0

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

cvssV3_1

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

cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/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 28, 2026, 2:48 PM
Reserved
Apr 27, 2026, 1:52 PM
Status
Deferred
Published
Apr 28, 2026, 12:16 AM
Modified
Jul 24, 2026, 8:10 AM