CVE-2026-7088

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. 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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
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
Metrics ssvc

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

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'}

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 27, 2026, 12:30 PM
Reserved
Apr 26, 2026, 8:20 AM
Status
Deferred
Published
Apr 27, 2026, 6:16 AM
Modified
Oct 26, 2026, 12:10 AM