CVE-2026-7127

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 weakness has been identified in SourceCodester Pharmacy Sales and Inventory System 1.0. This vulnerability affects unknown code of the file /ajax.php?action=delete_receiving. This manipulation of the argument ID causes sql injection. Remote exploitation of the attack is possible. The exploit has been made available to the public and could be used for attacks.

Analysis

AI-generated

Technical impact

A remote attacker can manipulate the ID parameter in the /ajax.php?action=delete_receiving endpoint of SourceCodester Pharmacy Sales and Inventory System 1.0 to inject SQL commands. This flaw allows unauthorized reading, modification, or deletion of sensitive pharmacy inventory and sales data, thereby compromising confidentiality and integrity.

Affected Systems

Vulnerability affects SourceCodester Pharmacy Sales and Inventory System version 1.0 only; no other versions are listed.

Risk and Exploitability

The exploit has been publicly disclosed and is remotely accessible via HTTP requests, suggesting it can be triggered from any network location. The CVSS score of 6.9 indicates moderate severity, and the vulnerability is not currently catalogued in the CISA KEV database. With no EPSS score available, the exploitation likelihood remains unclear, but the existence of a public exploit demonstrates that it is actionable by threat actors.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply any available vendor patch or upgrade to a newer version of the SourceCodester Pharmacy Sales and Inventory System if one exists.
  • Immediately restrict access to the delete_receiving endpoint by implementing authentication or IP whitelisting, and consider deploying a web application firewall to block malicious SQL payloads.
  • Refactor the application code to use parameterized queries or prepared statements for all database interactions that involve user input, thereby eliminating the injection vector.

Generated by OpenCVE AI on April 28, 2026 at 04:25 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 weakness has been identified in SourceCodester Pharmacy Sales and Inventory System 1.0. This vulnerability affects unknown code of the file /ajax.php?action=delete_receiving. This manipulation of the argument ID causes sql injection. Remote exploitation of the attack is possible. The exploit has been made available to the public and could be used for attacks.
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 29, 2026, 1:52 PM
Reserved
Apr 26, 2026, 7:16 PM
Status
Deferred
Published
Apr 27, 2026, 2:16 PM
Modified
Oct 26, 2026, 10:10 PM