Description
A weakness has been identified in SourceCodester Pharmacy Sales and Inventory System 1.0. The affected element is an unknown function of the file /ajax.php?action=save_receiving. Executing a manipulation of the argument ID can lead to sql injection. The attack can be launched remotely. The exploit has been made available to the public and could be used for attacks.
Published: 2026-04-27
Score: 6.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Remote SQL injection allowing unauthorized data access and modification
Action: Apply Patch
AI Analysis

Impact

The flaw is a SQL injection in the ajax.php script of the Pharmacy Sales and Inventory System version 1.0. By manipulating the ID parameter, an attacker can inject arbitrary SQL into the database query, enabling remote users to read, modify, or delete data stored in the application’s database and potentially expose sensitive business or personal information. This weakness is categorized as CWE-74 and CWE-89.

Affected Systems

The vulnerability affects the SourceCodester Pharmacy Sales and Inventory System, specifically version 1.0. No other versions or products are listed as impacted.

Risk and Exploitability

The CVSS score of 6.9 indicates a medium risk. The EPSS score of <1% suggests a very low probability of exploitation at this time, and the issue is not listed in CISA’s KEV catalog. The exploit is available publicly and can be launched remotely by manipulating the ID parameter in the /ajax.php?action=save_receiving endpoint. Because no authentication requirement is mentioned, it is likely that unauthenticated users can trigger the injection.

Generated by OpenCVE AI on April 28, 2026 at 04:49 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the Pharmacy Sales and Inventory System to the latest patched release that addresses the ajax.php ID validation issue.
  • If an update is not available, modify the ajax.php script to apply strict input validation or use parameterized queries for the ID field to prevent SQL injection.
  • Deploy a Web Application Firewall or database activity monitoring to detect and block suspicious SQL payloads.

Generated by OpenCVE AI on April 28, 2026 at 04:49 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 27 Apr 2026 18:45:00 +0000

Type Values Removed Values Added
First Time appeared Sourcecodester
Sourcecodester pharmacy Sales And Inventory System
Vendors & Products Sourcecodester
Sourcecodester pharmacy Sales And Inventory System

Mon, 27 Apr 2026 13:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Mon, 27 Apr 2026 05:30:00 +0000

Type Values Removed Values Added
Description A weakness has been identified in SourceCodester Pharmacy Sales and Inventory System 1.0. The affected element is an unknown function of the file /ajax.php?action=save_receiving. Executing a manipulation of the argument ID can lead to sql injection. The attack can be launched remotely. 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'}


Subscriptions

Sourcecodester Pharmacy Sales And Inventory System
cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-04-27T12:30:36.652Z

Reserved: 2026-04-26T08:20:57.714Z

Link: CVE-2026-7088

cve-icon Vulnrichment

Updated: 2026-04-27T12:30:33.224Z

cve-icon NVD

Status : Deferred

Published: 2026-04-27T06:16:03.850

Modified: 2026-04-29T01:00:01.613

Link: CVE-2026-7088

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-28T05:00:14Z

Weaknesses