Skip to main content

Pharmacy Sales And Inventory System CVE-2026-6187

| EUVDEUVD-2026-22012 MEDIUM
SQL Injection (CWE-89)
2026-04-13 VulDB GHSA-qprq-3xhq-p84p
5.5
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

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

  1. Access
    Send HTTP request with malicious ID parameter
  2. Delivery
    SQL injection payload parsed in /ajax.php
  3. Exploit
    Unsanitized input concatenated into SQL query
  4. Execution
    Arbitrary SQL executed on backend database
  5. Persist
    Unauthorized data exfiltration or modification
  6. Impact
    Database compromise

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.

Impact

This vulnerability presents moderate-to-high real-world risk despite a CVSS score of 6.9. The CVSS vector confirms unauthenticated remote access (AV:N, PR:N, AC:L) with low confidentiality, integrity, and availability impact on the vulnerable component (VC:L, VI:L, VA:L). However, the presence of publicly available exploit code, combined with the straightforward nature of SQL injection exploitation, significantly elevates practical risk. The E:P (Exploit Maturity: Proof of Concept) designation confirms active PoC availability. SQL injection vulnerabilities in web applications are highly automatable and frequently leveraged in real attacks. Organizations running SourceCodester Pharmacy Sales and Inventory System 1.0 exposed to untrusted networks face immediate risk of data exfiltration or unauthorized database modification by unauthenticated attackers. The low attack complexity (AC:L) and lack of user interaction requirements (UI:N) mean exploitation requires minimal sophistication.

Exploit ScenarioDerived

An unauthenticated attacker sends a crafted HTTP GET or POST request to the vulnerable /ajax.php?action=chk_prod_availability endpoint, injecting SQL metacharacters (such as ' OR '1'='1' or UNION-based payloads) into the ID parameter. The server processes the request without sanitization, causing the injected SQL code to be executed against the backend database. The attacker retrieves sensitive information (customer data, pricing, inventory details) or modifies records (adding unauthorized products, changing prices). A public PoC is available on GitHub, enabling even low-skill attackers to exploit this vulnerability.

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

SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows unauthenticated remote attackers to execute arbitrary SQL queries via the ID parameter in /ajax.php?action=chk_prod_availability, enabling unauthorized data access and modification. The vulnerability has a publicly available exploit and carries a CVSS score of 6.9 with confirmed proof-of-concept code available on GitHub.

RemediationAI

The primary remediation is to upgrade SourceCodester Pharmacy Sales and Inventory System to a patched version released by the vendor that addresses SQL injection in the chk_prod_availability action. If an upgraded version is not immediately available, implement input validation and parameterized queries (prepared statements) in the /ajax.php file to sanitize the ID parameter before database operations. Apply database-level access controls to restrict the web application's database user to minimum required privileges. Additionally, deploy a Web Application Firewall (WAF) with SQL injection detection rules as a temporary compensating control. Consult https://www.sourcecodester.com/ for official security updates and advisories. Detailed vulnerability information is available at https://vuldb.com/vuln/357109.

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

The vulnerability exists in a PHP-based inventory management application that fails to properly sanitize user-supplied input before incorporating it into SQL queries. The affected endpoint /ajax.php?action=chk_prod_availability processes an ID parameter without parameterized queries or input validation, enabling classic SQL injection attacks. CWE-89 (Improper Neutralization of Special Elements used in an SQL Command) identifies the root cause: the application directly concatenates untrusted user input into SQL statements. This is a fundamental flaw in secure coding practices where dynamic query construction without prepared statements or parameterized queries permits attackers to alter query logic and access or manipulate backend database contents.

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:11 NVD
6.9 (MEDIUM) 5.5 (MEDIUM)
PoC Detected
Apr 29, 2026 - 01:00 vuln.today
Public exploit code
Severity Changed
Apr 13, 2026 - 16:22 NVD
HIGH MEDIUM
CVSS changed
Apr 13, 2026 - 16:22 NVD
7.3 (HIGH) 6.9 (MEDIUM)
CVE Published
Apr 13, 2026 - 15:30 nvd
MEDIUM 5.5

DescriptionCVE.org

A vulnerability was detected in SourceCodester Pharmacy Sales and Inventory System 1.0. This issue affects some unknown processing of the file /ajax.php?action=chk_prod_availability. The manipulation of the argument ID results in sql injection. The attack may be performed from remote. The exploit is now public and may be used.

Threat Intelligence Overview

EPSS Score
0.0%
Top 92% 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· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
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-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

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