Skip to main content

Pharmacy Sales and Inventory System CVE-2026-7550

| EUVDEUVD-2026-26476 MEDIUM
SQL Injection (CWE-89)
2026-05-01 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 target via web scanning
  2. Delivery
    Send crafted POST to /ajax.php?action=save_customer
  3. Exploit
    Inject SQL via ID parameter
  4. Execution
    Extract database credentials/patient data
  5. Impact
    Modify inventory records for fraud

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

The /ajax.php endpoint with action=save_customer must be network-accessible - typically this means the application is deployed on a web server facing the internet or an internal network segment reachable by the attacker. No authentication is required (PR:N in CVSS vector confirmed). The vulnerability is exploitable against default configurations of Pharmacy Sales and Inventory System 1.0 with no special feature enablement needed. Limiting factors: the application must be actively deployed and reachable; many SourceCodester projects are used only in test/lab environments. The SQL injection impact is constrained by the database user privileges the application runs with - if the PHP application connects to MySQL/MariaDB with a limited user account, the attacker inherits those restrictions, potentially preventing DROP TABLE or filesystem operations but still allowing SELECT/UPDATE/INSERT on application tables.

Impact

Real-world risk is HIGH for deployed instances. The CVSS vector AV:N/AC:L/PR:N/UI:N indicates the worst-case scenario: network-accessible, low complexity, no authentication, and no user interaction required. An attacker needs only to send crafted HTTP requests to the vulnerable endpoint. The temporal metric E:P (Proof-of-concept exploit exists) is confirmed by the GitHub POC reference. CVSS subscores show C:L/I:L/A:L (low impact across confidentiality, integrity, availability), suggesting the injection may be constrained by database permissions or application context, but attackers can still exfiltrate sensitive patient/medication data, modify pricing records, or corrupt inventory. The RL:X (remediation level not defined) indicates no official patch is confirmed, forcing reliance on workarounds. SSVC assessment: exploitation is PUBLIC (POC available), likely AUTOMATABLE (simple parameter injection), and TECHNICAL IMPACT is at minimum PARTIAL (database access). This combination justifies IMMEDIATE action despite the 'Low' CIA ratings. The primary limiting factor is target exposure - this is niche vertical software, not enterprise-grade, so attack surface is limited to organizations actually deploying this specific SourceCodester project. However, any internet-facing instance is trivially exploitable.

Exploit ScenarioDerived

An attacker discovers an internet-facing instance of Pharmacy Sales and Inventory System through Shodan or Google dorking. Using the public GitHub POC, they craft a POST request to /ajax.php?action=save_customer with a malicious ID parameter containing SQL injection payloads (e.g., ID=1' UNION SELECT user(),database(),version()-- -). The vulnerable PHP code directly concatenates this input into a SQL query, allowing the attacker to extract the database schema, enumerate patient records including names and prescriptions, or modify inventory quantities to facilitate drug diversion fraud. No authentication is required, and the attack leaves minimal forensic traces in application logs if logging is not configured to capture POST body parameters.

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 – May 01, 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=save_customer. CVSS 7.3 with low attack complexity and no authentication required. Publicly available exploit code exists (GitHub POC published), elevating immediate risk for exposed installations. EPSS data not available, but the combination of network vector, zero authentication, and public POC indicates high probability of opportunistic scanning and exploitation.

RemediationAI

No vendor-released patch identified at time of analysis. Organizations using this software must implement compensating controls immediately. Primary mitigation: apply input validation and parameterized queries to /ajax.php by modifying the save_customer action handler to use prepared statements (e.g., PDO with bound parameters or mysqli_prepare) instead of direct string concatenation of the ID parameter - this requires source code modification and testing to ensure customer save functionality remains intact. Secondary mitigation: restrict network access to /ajax.php to authenticated sessions only by adding authentication checks in the PHP handler or using web server access controls (e.g., Apache .htaccess with IP whitelisting or session validation) - trade-off is that legitimate unauthenticated AJAX calls will break if the application design expects them. Tertiary: deploy a web application firewall (WAF) with SQL injection signatures to block common payloads targeting the ID parameter - this is a detection-based control that may be bypassed with obfuscation but provides immediate defense-in-depth. Long-term: consider migrating to actively maintained pharmacy management software with a vendor security program. VulDB disclosure reference https://vuldb.com/vuln/360360 and exploit POC at https://github.com/khairulazly760530-cell/cves/issues/2 provide technical details for testing mitigations.

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 affected endpoint /ajax.php with action=save_customer likely handles AJAX requests for customer data operations. The vulnerability stems from inadequate input validation and parameterization of the ID argument before incorporating it into SQL queries. SQL injection occurs when user-controlled input is concatenated directly into SQL statements rather than using prepared statements or proper escaping. The affected product, Pharmacy Sales and Inventory System by SourceCodester, is a downloadable open-source project commonly used for educational purposes or by small pharmacies. CPE string cpe:2.3:a:sourcecodester:pharmacy_sales_and_inventory_system identifies version 1.0 as vulnerable, though the wildcard version field suggests all current versions may be affected pending vendor clarification.

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

4
PoC Detected
May 01, 2026 - 15:26 vuln.today
Public exploit code
Severity Changed
May 01, 2026 - 05:22 NVD
HIGH MEDIUM
CVSS changed
May 01, 2026 - 05:22 NVD
7.3 (HIGH) 5.5 (MEDIUM)
CVE Published
May 01, 2026 - 03:45 nvd
MEDIUM 5.5

DescriptionCVE.org

A vulnerability has been found in SourceCodester Pharmacy Sales and Inventory System 1.0. Affected is an unknown function of the file /ajax.php?action=save_customer. The manipulation of the argument ID leads to sql injection. It is possible to initiate the attack remotely. The exploit has been disclosed to the 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 customer management functions that allows unauthenticated attackers to read, modify, or delete pharmacy database records. Organizations running this system face immediate risk of data theft, patient record compromise, and operational disruption; publicly available exploit code significantly accelerates threat actor discovery and exploitation.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: restrict network access to /ajax.php via firewall or IP allowlisting, deploy WAF rules to detect and block SQL injection payloads targeting the ID parameter, implement database activity monitoring, and apply principle of least privilege to database service accounts. These controls reduce but do not eliminate risk; migration or vendor patch remains critical.

Threat Intelligence Overview

EPSS Score
0.0%
Top 91% exploitable
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
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
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.

Related Vulnerabilities in SourceCodester Pharmacy System SQL Injection

View all 2
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-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-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