Skip to main content

Pharmacy Sales And Inventory System EUVDEUVD-2026-22016

| CVE-2026-6189 MEDIUM
SQL Injection (CWE-89)
2026-04-13 VulDB GHSA-f7v4-47q7-f3fq
5.5
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

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

  1. Recon
    Identify exposed application via scanning
  2. Delivery
    Send crafted POST to /ajax.php?action=login
  3. Exploit
    Inject SQL payload in Username parameter
  4. Install
    Execute arbitrary SQL commands
  5. C2
    Extract database contents or bypass authentication
  6. Execute
    Access administrative functions
  7. Impact
    Exfiltrate pharmacy records and credentials

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 significant real-world risk due to the convergence of multiple high-risk factors. The CVSS vector (AV:N/AC:L/PR:N/UI:N) indicates maximum accessibility: network-based attack vector, low complexity requiring minimal skill, no authentication required, and no user interaction needed. The publicly available exploit code (github.com/lingzezzz/lingze/issues/1) dramatically lowers the barrier to exploitation, enabling even unsophisticated attackers to compromise vulnerable instances. While the individual CIA impacts are rated Low (C:L/I:L/A:L), SQL injection vulnerabilities typically escalate beyond these ratings in practice-attackers can often extract entire databases, modify critical inventory/pricing data, create administrative accounts, or execute operating system commands depending on database configuration. The combination of PR:N (unauthenticated), AC:L (low complexity), and publicly available exploit code creates an immediately exploitable threat surface. However, the limited deployment scope (SourceCodester projects are often educational/small-scale implementations rather than enterprise software) may constrain the overall attack surface. The absence from CISA KEV suggests no confirmed active exploitation campaigns targeting this specific vulnerability, but the public POC makes exploitation trivial for any exposed instance. Organizations running this system face imminent risk and should prioritize remediation.

Exploit ScenarioDerived

An external attacker identifies an internet-exposed instance of the Pharmacy Sales and Inventory System through automated scanning or search engine discovery. Using the publicly available exploit code from GitHub, the attacker crafts a malicious HTTP POST request to /ajax.php?action=login with a SQL injection payload in the Username parameter (e.g., admin' OR '1'='1' -- ) to bypass authentication or extract database contents. The vulnerable login handler executes the injected SQL, allowing the attacker to dump the entire pharmacy database including customer information, prescription records, inventory data, and administrative credentials, or create a new administrator 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 13, 2026

SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows unauthenticated remote attackers to extract, modify, or delete database contents via the Username parameter in /ajax.php?action=login. The vulnerability enables low-complexity attacks requiring no user interaction, with publicly available exploit code (EPSS probability data not provided, not listed in CISA KEV). Attackers can compromise confidentiality, integrity, and availability of the pharmacy inventory database without authentication.

RemediationAI

No vendor-released patch identified at time of analysis. Organizations currently running SourceCodester Pharmacy Sales and Inventory System 1.0 should immediately implement defense-in-depth measures since an official fix version is not confirmed. Primary remediation steps include: replace vulnerable authentication code in /ajax.php with parameterized prepared statements using PDO or MySQLi prepared statement APIs to prevent SQL injection; implement strict input validation and sanitization on the Username parameter using allowlists for acceptable characters; deploy a web application firewall (WAF) with SQL injection detection rules to block exploitation attempts targeting the /ajax.php?action=login endpoint; restrict network access to the application to trusted IP ranges if feasible; conduct security audit of the entire codebase as similar injection flaws may exist in other endpoints; monitor database query logs and web server access logs for suspicious patterns matching the public exploit (github.com/lingzezzz/lingze/issues/1). For production environments handling sensitive pharmacy data, consider replacing this application with a commercially supported or actively maintained alternative given the absence of vendor security response. Additional vulnerability details and threat intelligence available at vuldb.com/vuln/357111 and vuldb.com/vuln/357111/cti.

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 vulnerability affects the authentication handler in SourceCodester's Pharmacy Sales and Inventory System version 1.0, a PHP-based web application for managing pharmacy operations. The flaw exists in the /ajax.php endpoint's login action handler, which fails to properly sanitize or parameterize the Username input before incorporating it into SQL queries. This is a classic CWE-89 (SQL Injection) vulnerability where unsanitized user input is concatenated directly into SQL statements. Based on the CPE string (cpe:2.3:a:sourcecodester:pharmacy_sales_and_inventory_system:*:*:*:*:*:*:*:*), this affects the SourceCodester-distributed version of the application. The login endpoint processes authentication requests via AJAX, likely using a backend database (MySQL/MariaDB typical for PHP applications) to verify credentials. The lack of prepared statements or input validation allows attackers to break out of the intended SQL query structure and execute arbitrary SQL commands.

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

DescriptionCVE.org

A vulnerability has been found in SourceCodester Pharmacy Sales and Inventory System 1.0. The affected element is an unknown function of the file /ajax.php?action=login. Such manipulation of the argument Username leads to sql injection. It is possible to launch 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 1.0 contains an unauthenticated SQL injection vulnerability in the login function that allows attackers to directly access, 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 affecting patient safety and business continuity.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Deploy Web Application Firewall with SQL injection detection signatures targeting /ajax.php; (2) Implement network-layer access controls restricting login endpoint to trusted internal networks only; (3) Enable comprehensive database audit logging and real-time alerting for unauthorized queries; (4) Apply strict input validation and output encoding at application layer if feasible; (5) Consider discontinuation of this product in favor of supported pharmacy management software.

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