CVE-2026-7549

SourceCodester Pharmacy Sales and Inventory System ajax.php delete_customer sql injection

Published May 1, 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. This impacts an unknown function of the file /ajax.php?action=delete_customer. 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 vulnerability resides in the /ajax.php?action=delete_customer endpoint of SourceCodester Pharmacy Sales and Inventory System 1.0, where the ID parameter is not properly sanitized. An attacker who can influence this parameter can inject arbitrary SQL statements, enabling unauthorized read or write operations on the underlying database. The weakness corresponds to CWE-74 and CWE-89, representing code injection and unsafe use of database calls.

Affected Systems

SourceCodester Pharmacy Sales and Inventory System version 1.0. No other affected versions are publicly documented.

Risk and Exploitability

The publicly available CVSS score of 6.9 suggests a significant risk. Because the vulnerability is exploitable remotely, an attacker with network access could trigger the injection without authentication. The EPSS score is not available, so exploitation likelihood cannot be quantified. The vulnerability is not listed in CISA KEV. The published exploit indicates that attackers can inject arbitrary SQL commands and possibly gain full database compromise.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to the latest version of SourceCodester Pharmacy Sales and Inventory System where the ID parameter is sanitized.
  • Restrict access to the /ajax.php endpoint to authorized users only, applying proper authentication and authorization controls.
  • Implement input validation or use parameterized queries in the delete_customer code to prevent SQL injection.
  • If an immediate patch is unavailable and the delete_customer function is not required, temporarily disable the endpoint or block the ID parameter.

Generated by OpenCVE AI on May 1, 2026 at 23:56 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 flaw has been found in SourceCodester Pharmacy Sales and Inventory System 1.0. This impacts an unknown function of the file /ajax.php?action=delete_customer. 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 delete_customer 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
May 4, 2026, 1:27 PM
Reserved
Apr 30, 2026, 7:03 PM
Status
Deferred
Published
May 1, 2026, 5:16 AM
Modified
Oct 26, 2026, 9:10 PM