Skip to main content

Pharmacy Sales and Inventory System CVE-2026-7199

MEDIUM
SQL Injection (CWE-89)
2026-04-27 VulDB
5.5
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify internet-facing instance
  2. Delivery
    Send HTTP request to /ajax.php?action=delete_product
  3. Exploit
    Inject SQL payload in ID parameter
  4. Execution
    Database executes malicious query
  5. Impact
    Extract sensitive data or escalate privileges

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Remote unauthenticated exploitation against the /ajax.php endpoint with action=delete_product. The vulnerable code path is triggered when any HTTP request (POST or GET, depending on implementation) includes the ID parameter with SQL metacharacters. No authentication mechanism protects this AJAX endpoint according to CVSS vector PR:N. The specific condition is that the application must be network-accessible (typically internet-facing or accessible from attacker's network position) and the delete_product action handler must be present in /ajax.php. No special configuration, enabled features, or user interaction required - this is exploitable against default installations of version 1.0. Limiting factor: target must be running the specific vulnerable version (1.0) of this SourceCodester application, which has limited deployment in production environments due to its educational/sample code nature.

Impact

The CVSS 7.3 (High) score reflects significant risk: network-based attack vector (AV:N), low complexity (AC:L), no privileges required (PR:N), and no user interaction (UI:N), with impacts to confidentiality, integrity, and availability all rated Low (C:L/I:L/A:L). The temporal metric E:P confirms proof-of-concept exploit code exists. However, CVSS may understate real-world risk - the PR:N vector means any remote attacker can exploit this without credentials, and the GitHub POC lowers the skill barrier substantially. The Low CIA ratings suggest limited database access controls or query scope restrictions, but SQL injection often escalates beyond initial impact through stacked queries, file system access (LOAD_FILE, INTO OUTFILE), or privilege escalation. EPSS score is unavailable, preventing probabilistic exploitation likelihood assessment. Not listed in CISA KEV, indicating no confirmed widespread exploitation campaigns, but the public POC and easily exploitable nature (AC:L, PR:N) make opportunistic scanning likely. SSVC decision factors: Exploitation is POC-level, attack is automatable (simple HTTP parameter manipulation), technical impact is total (database compromise potential). This is a genuine priority for any organization running this specific product version with internet exposure, though the niche nature of SourceCodester applications may limit attack surface compared to enterprise software.

Exploit ScenarioDerived

An unauthenticated attacker discovers a pharmacy running SourceCodester Pharmacy Sales and Inventory System 1.0 exposed to the internet. Using the public GitHub exploit code, they craft a malicious HTTP POST request to /ajax.php?action=delete_product with a SQL injection payload in the ID parameter, such as '1 OR 1=1 UNION SELECT user(),database(),version()--'. The vulnerable code directly incorporates this input into a SQL DELETE statement without sanitization, causing the database to execute both the attacker's injected query and the original command. The attacker extracts database credentials, customer records, prescription data, and inventory information, then uses SQL stacked queries to create a backdoor administrative account for persistent access.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 28, 2026

SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to execute arbitrary database queries via the ID parameter in /ajax.php?action=delete_product. Publicly available exploit code exists (GitHub POC), enabling unauthorized data access, modification, or deletion without authentication. EPSS data not available, but the combination of network attack vector, no authentication requirement, and public exploit significantly elevates real-world exploitation risk for internet-exposed instances.

RemediationAI

Primary mitigation is to discontinue use of SourceCodester Pharmacy Sales and Inventory System 1.0 in production environments, as no vendor-released patch has been identified and SourceCodester projects are typically educational code samples not maintained for security updates. If the application must remain operational, immediately implement these SPECIFIC compensating controls: (1) Deploy a web application firewall (WAF) with SQL injection signatures to block malicious payloads in the ID parameter of /ajax.php requests - note this is a detection-based control that may be bypassed with encoding or obfuscation. (2) Restrict network access to /ajax.php using IP allowlisting at the web server or firewall level, limiting access to only trusted internal IP ranges - this prevents remote exploitation but breaks functionality for legitimate remote users. (3) Review application code in /ajax.php and replace vulnerable dynamic SQL with parameterized queries or prepared statements using PHP PDO/mysqli_prepare - example: replace '$id = $_POST["ID"]' concatenation with bound parameters. (4) Apply principle of least privilege to the database account used by the application, revoking DELETE, DROP, FILE privileges to limit post-exploitation impact - may break intended delete_product functionality requiring code refactoring. For organizations using this as a learning platform, migrate to a modern, actively maintained pharmacy management system with security support. Advisory references: VulDB CTI report at https://vuldb.com/vuln/359800/cti and exploit POC at https://github.com/3436567162/vlun/issues/2.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

This vulnerability affects SourceCodester Pharmacy Sales and Inventory System 1.0, a PHP-based web application for managing pharmacy operations. The flaw is a classic SQL injection (CWE-89) in the AJAX endpoint /ajax.php when processing the delete_product action. The ID parameter is directly incorporated into SQL queries without proper sanitization, parameterization, or input validation. SQL injection occurs when user-controlled input is concatenated into SQL statements, allowing attackers to break out of the intended query structure and execute arbitrary database commands. As a PHP application, this likely uses MySQL or MariaDB backend, though the specific database technology is not confirmed in available data.

Know when Pharmacy Sales And Inventory System gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulDB) PRIMARY 5.5 MEDIUM
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

Primary rating from Vendor (VulDB) · only source for this CVE.

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

5
CVSS changed
Apr 29, 2026 - 01:12 NVD
6.9 (MEDIUM) 5.5 (MEDIUM)
PoC Detected
Apr 29, 2026 - 01:00 vuln.today
Public exploit code
Severity Changed
Apr 28, 2026 - 00:22 NVD
HIGH MEDIUM
CVSS changed
Apr 28, 2026 - 00:22 NVD
7.3 (HIGH) 6.9 (MEDIUM)
CVE Published
Apr 27, 2026 - 23:15 nvd
MEDIUM 5.5

DescriptionCVE.org

A vulnerability was detected in SourceCodester Pharmacy Sales and Inventory System 1.0. Affected by this vulnerability is an unknown functionality of the file /ajax.php?action=delete_product. Performing a manipulation of the argument ID results in sql injection. It is possible to initiate the attack remotely. The exploit is now public and may be used.

Executive ViewAI

Why It Matters

SourceCodester Pharmacy Sales and Inventory System version 1.0 contains a critical SQL injection vulnerability in its product deletion function that allows unauthenticated remote attackers to execute arbitrary database commands, potentially exposing or destroying pharmacy inventory and patient data without any credentials. Organizations using this system face immediate risk of unauthorized data access, modification, or deletion if the application is accessible over the network.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Deploy web application firewall (WAF) rules to block or sanitize SQL injection patterns in the ID parameter of /ajax.php?action=delete_product; (2) Implement network segmentation to restrict access to the application from untrusted networks; (3) Apply SQL query parameterization and input validation at application level if source code modifications are feasible; (4) Monitor database logs for suspicious queries and authentication attempts; (5) Consider taking the application offline or restricting access until remediation is possible.

Threat Intelligence Overview

EPSS Score
0.0%
Top 91% exploitable
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

48
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

Affected Products (CPE)CVE.org

cpe:2.3:a:sourcecodester:pharmacy_sales_and_inventory_system:*:*:*:*:*:*:*:*
CVE-2022-30407 CRITICAL POC
9.8 May 13

Pharmacy Sales And Inventory System v1.0 is vulnerable to SQL Injection via /pharmacy-sales-and-inventory-system/manage_

CVE-2026-10255 MEDIUM POC
5.5 Jun 01

Unauthenticated remote information disclosure in SourceCodester Pharmacy Sales and Inventory System 1.0 allows network-b

CVE-2026-8083 MEDIUM POC
5.5 May 07

SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to execu

CVE-2026-7550 MEDIUM POC
5.5 May 01

SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to read,

CVE-2026-7549 MEDIUM POC
5.5 May 01

SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to extra

CVE-2026-7194 MEDIUM POC
5.5 Apr 27

SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 exposes the `/ajax.php?action=save_product` endp

CVE-2026-7127 MEDIUM POC
5.5 Apr 27

SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to read,

CVE-2026-7126 MEDIUM POC
5.5 Apr 27

SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to execu

CVE-2026-7088 MEDIUM POC
5.5 Apr 27

SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to execu

CVE-2026-7087 MEDIUM POC
5.5 Apr 27

SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to extra

CVE-2026-6189 MEDIUM POC
5.5 Apr 13

SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows unauthenticated remote attackers to extra

CVE-2026-6188 MEDIUM POC
5.5 Apr 13

SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows unauthenticated remote attackers to execu

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy