Description
A security flaw has been discovered in SourceCodester Pharmacy Sales and Inventory System 1.0. This affects an unknown part of the file /ajax.php?action=save_category. The manipulation of the argument ID results in sql injection. The attack may be launched remotely. The exploit has been released to the public and may be used for attacks.
Published: 2026-04-27
Score: 6.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Remote SQL Injection leading to data compromise
Action: Immediate Patch
AI Analysis

Impact

A flaw in SourceCodester Pharmacy Sales and Inventory System 1.0 allows an attacker to manipulate the ID parameter in the ajax.php?action=save_category endpoint, resulting in a SQL injection that can be exploited remotely. This vulnerability is a classic input validation weakness (CWE-74 and CWE-89) that can enable unauthorized modification or extraction of database records. The impact is data confidentiality and integrity compromise, potentially exposing sensitive pharmacy information.

Affected Systems

The affected product is SourceCodester Pharmacy Sales and Inventory System 1.0, specifically the ajax.php handler that processes category saving operations. Any deployment of this version that exposes the /ajax.php endpoint to external users is vulnerable. No vendor version updates or hotfixes are listed in the provided data, so systems remain at risk until addressed.

Risk and Exploitability

The CVSS score of 6.9 classifies the vulnerability as moderately severe, and while no EPSS score is available, the exploit code has been released to the public, indicating a realistic threat of exploitation. The vulnerability can be reached over the network by directly targeting the Ajax endpoint from any remote host, making it a remote attack vector. The vulnerability is not currently listed in CISA’s KEV catalog, but the public availability of an exploit combined with the moderate score warrants immediate attention.

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

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update SourceCodester Pharmacy Sales and Inventory System to the latest available version or apply an official vendor patch that addresses the ajax.php SQL injection
  • If an update is not immediately available, apply custom input validation or parameterized queries to the ID field in ajax.php to prevent arbitrary SQL execution
  • Restrict access to the /ajax.php endpoint by requiring authentication or limiting it to trusted IP ranges, and review the web application firewall rules to block suspicious SQL patterns

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 28 Apr 2026 03:00: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 17: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 13:30:00 +0000

Type Values Removed Values Added
Description A security flaw has been discovered in SourceCodester Pharmacy Sales and Inventory System 1.0. This affects an unknown part of the file /ajax.php?action=save_category. The manipulation of the argument ID results in sql injection. The attack may be launched remotely. The exploit has been released to the public and may 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-27T16:31:16.176Z

Reserved: 2026-04-26T19:16:06.093Z

Link: CVE-2026-7126

cve-icon Vulnrichment

Updated: 2026-04-27T16:31:08.442Z

cve-icon NVD

Status : Deferred

Published: 2026-04-27T14:16:56.333

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

Link: CVE-2026-7126

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-28T04:30:21Z

Weaknesses