Skip to main content

Pharmacy Sales and Inventory System CVE-2026-7127

| EUVDEUVD-2026-25851 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 exposed instance via Shodan/banner scan
  2. Delivery
    Send crafted GET request to /ajax.php?action=delete_receiving&ID=[SQLi payload]
  3. Exploit
    Database executes malicious SQL query
  4. Execution
    Extract credentials or sensitive data from database tables
  5. Persist
    Access admin panel with stolen credentials
  6. Impact
    Exfiltrate patient/financial records

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

Requires the Pharmacy Sales and Inventory System application to be network-accessible (internet-facing or reachable from attacker's network position) with the /ajax.php endpoint enabled in default configuration. No authentication, valid session cookies, or user interaction required-the vulnerable endpoint processes unauthenticated HTTP GET/POST requests directly. The delete_receiving action must be accessible (not disabled or removed in local customizations). Exploitation is possible against default installations without administrator intervention. Limiting factors: applications deployed behind authenticated reverse proxies or VPNs requiring pre-authentication before reaching the PHP application are not remotely exploitable by unauthenticated attackers. Deployments with properly configured WAF rules blocking SQL injection patterns may prevent automated exploitation, though manual bypass techniques often succeed.

Impact

This represents a significant real-world risk despite moderate CVSS base score of 7.3. The CVSS vector (AV:N/AC:L/PR:N/UI:N) indicates network-exploitable attacks requiring no authentication, low complexity, and no user interaction-essentially point-and-shoot exploitation against any exposed instance. The publicly available exploit on GitHub eliminates technical barriers for script kiddies and automated scanners. CVSS impact ratings (C:L/I:L/A:L) suggest partial compromise across confidentiality, integrity, and availability, typical of SQL injection that can read sensitive data (patient records, pricing), modify inventory/sales records, or delete receiving logs. The E:P (Proof-of-concept) temporal metric confirms working exploit code. However, this targets a niche open-source application with limited deployment footprint compared to enterprise software. Real-world risk depends heavily on internet exposure-internal-only deployments behind authentication layers face lower immediate threat. No CISA KEV listing suggests exploitation is not yet widespread, but POC availability means defenders should assume scanning/exploitation attempts are imminent. SSVC assessment: Exploitation=POC, Automatable=Yes (simple HTTP parameter manipulation), Technical Impact=Partial (database compromise but likely not full system takeover unless database credentials allow OS command execution).

Exploit ScenarioDerived

An unauthenticated attacker scans for internet-exposed instances of Pharmacy Sales and Inventory System using Shodan/Censys to identify servers running the application (identifiable by characteristic login page or HTTP headers). Using the publicly available GitHub POC, the attacker crafts a malicious HTTP request to https://victim.example.com/ajax.php?action=delete_receiving&ID=1' UNION SELECT username,password,email FROM users WHERE '1'='1 to extract administrator credentials from the database. With harvested credentials, the attacker accesses the administrative interface to view sensitive patient prescription records, alter drug inventory counts to cover theft, or delete audit logs to hide fraudulent transactions.

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 27, 2026

SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to read, modify, or delete database records via the ID parameter in /ajax.php?action=delete_receiving. Publicly available exploit code (GitHub POC) demonstrates working attack against default installations with no authentication required (CVSS AV:N/AC:L/PR:N). EPSS data not available, but POC publication significantly lowers exploitation barrier for opportunistic attacks against internet-exposed instances.

RemediationAI

No vendor-released patch identified at time of analysis-SourceCodester does not appear to maintain active security updates for legacy versions. Organizations must implement application-level fixes: modify /ajax.php to use parameterized SQL queries (prepared statements) for all ID parameter handling in the delete_receiving function, replacing string concatenation with PDO/MySQLi bound parameters (e.g., $stmt = $pdo->prepare('DELETE FROM receiving WHERE id = ?'); $stmt->execute([$id]);). As immediate compensating controls, implement web application firewall (WAF) rules to block SQL injection patterns in the ID parameter (single quotes, UNION keywords, comment sequences), though this may break legitimate functionality if ID values legitimately contain special characters. Restrict network access to /ajax.php to authenticated sessions only by adding session validation checks at the script entry point-this reduces attack surface from unauthenticated remote to authenticated remote. Long-term recommendation: migrate to maintained inventory management software with active security support, as this application appears abandoned. All compensating controls are bypassed if attackers gain valid session cookies, so patching the underlying code defect is critical.

Affected VersionsENISA

Pharmacy Sales and Inventory System 1.0

Affected Packages

euvd pharmacy_sales_and_inventory_system no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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

Technical ContextAI · show details

This is a classic SQL injection vulnerability (CWE-89) in a PHP-based web application. The /ajax.php endpoint handles AJAX requests for the 'delete_receiving' action, accepting an 'ID' parameter that is directly concatenated into SQL queries without proper sanitization or parameterized statements. SQL injection allows attackers to break out of the intended query context and execute arbitrary SQL commands against the backend database. The affected product is SourceCodester Pharmacy Sales and Inventory System version 1.0, a PHP application typically deployed with MySQL/MariaDB databases. The CPE string (cpe:2.3:a:sourcecodester:pharmacy_sales_and_inventory_system:*:*:*:*:*:*:*:*) confirms this is a vendor-specific application from the SourceCodester open-source repository, commonly used by small pharmacies or as educational code examples.

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 27, 2026 - 14:22 NVD
HIGH MEDIUM
CVSS changed
Apr 27, 2026 - 14:22 NVD
7.3 (HIGH) 6.9 (MEDIUM)
CVE Published
Apr 27, 2026 - 13:16 nvd
MEDIUM 5.5

DescriptionCVE.org

A weakness has been identified in SourceCodester Pharmacy Sales and Inventory System 1.0. This vulnerability affects unknown code of the file /ajax.php?action=delete_receiving. This manipulation of the argument ID causes sql injection. Remote exploitation of the attack is possible. The exploit has been made available to the public and could be used for attacks.

Executive ViewAI

Why It Matters

SourceCodester Pharmacy Sales and Inventory System 1.0 contains an unauthenticated SQL injection vulnerability in the receiving module that allows attackers to read, modify, or delete critical pharmacy inventory and sales data without credentials. Organizations using this system face immediate risk of data breach, inventory manipulation, and operational disruption if exposed to the internet.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict network access to /ajax.php endpoints via firewall or reverse proxy to trusted IPs only; (2) Deploy WAF with SQL injection detection rules targeting the ID parameter in delete_receiving function; (3) Implement input validation and parameterized queries through code-level patching if in-house development resources available; (4) Enable database access logging and implement real-time alerting for suspicious query patterns; (5) Maintain offline backups of pharmacy database; (6) Isolate affected systems from production networks pending vendor patch or system replacement.

Threat Intelligence Overview

EPSS Score
0.0%
Top 91% exploitable
Exploit
POC
Public exploit code exists
Data Quality
8 sources
Confidence: High
EUVD 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
Very 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.

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