CVE-2026-7130

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 flaw has been found in SourceCodester Pharmacy Sales and Inventory System 1.0. The affected element is an unknown function of the file /ajax.php?action=delete_category. Executing a manipulation of the argument ID can lead to sql injection. The attack may be performed from remote. The exploit has been published and may be used.

Analysis

AI-generated

Technical impact

The flaw resides in the SourceCodester Pharmacy Sales and Inventory System 1.0, inside an undocumented function within /ajax.php when the action parameter is set to delete_category. By manipulating the ID argument, an attacker can inject arbitrary SQL code, allowing alteration or exfiltration of the underlying database and compromising data confidentiality and integrity.

Affected Systems

This issue affects the single product SourceCodester Pharmacy Sales and Inventory System version 1.0. No other affected versions are documented. The parameter that triggers the injection is the ID field in the delete_category action.

Risk and Exploitability

The CVSS score of 6.9 indicates moderate severity. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog, suggesting no widespread known exploitation yet. The description states that the attack can be performed from remote, implying that an unauthenticated attacker with network access to the web application can exploit the flaw by sending a crafted request to the delete_category endpoint. The lack of input validation and the use of raw query building provide the conditions for exploitation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the official vendor patch or upgrade to a fixed version of the Pharmacy Sales and Inventory System.
  • Configure a web application firewall rule to detect and block SQL injection attempts against /ajax.php?action=delete_category.
  • Modify the application code to use parameterized queries or prepared statements for any user-supplied IDs in SQL statements.
  • Restrict access to the ajax.php delete_category action to authenticated users only and enforce least privilege.

Generated by OpenCVE AI on April 28, 2026 at 04:24 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 flaw has been found in SourceCodester Pharmacy Sales and Inventory System 1.0. The affected element is an unknown function of the file /ajax.php?action=delete_category. Executing a manipulation of the argument ID can lead to sql injection. The attack may be performed from remote. The exploit has been published 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 27, 2026, 8:11 PM
Reserved
Apr 26, 2026, 7:16 PM
Status
Deferred
Published
Apr 27, 2026, 2:16 PM
Modified
Oct 26, 2026, 9:10 PM