Skip to main content

Pharmacy Sales System CVE-2026-7194

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 /ajax.php endpoint
  2. Exploit
    Craft HTTP request with SQL payload in id parameter
  3. Execution
    Inject SQL into unsanitized database query
  4. Impact
    Extract or modify pharmacy and inventory database 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

The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) and SSVC Automatable=yes indicate no special preconditions beyond network reachability to the PHP application. The specific endpoint /ajax.php?action=save_product must be reachable from the attacker's network position, and the application must be running with a connected SQL database backend. No authentication is required (PR:N) and no user interaction is needed. The primary factor limiting exploitation in practice is deployment scope: SourceCodester Pharmacy Sales and Inventory System is a niche PHP/MySQL application with a very small real-world footprint, meaning few targets exist even though the vulnerability itself requires no special setup to exploit.

Impact

The CVSS 4.0 base metrics (AV:N/AC:L/AT:N/PR:N/UI:N) describe an extremely low-friction attack: network-reachable, no authentication, no complexity, no user interaction. SSVC corroborates this - the vulnerability is rated automatable with a poc exploitation status. However, impact is bounded: the CVSS 4.0 vector caps vulnerable-system impact at VC:L/VI:L/VA:L, and no subsequent-system impact is indicated (SC:N/SI:N/SA:N), consistent with a partial-access SQLi rather than a full database dump or OS-level compromise in a single step. The EPSS score of 0.03% at the 9th percentile starkly contrasts the ease of exploitation implied by the CVSS vector - this gap is best explained by the product's rare real-world deployment footprint rather than any technical barrier. No CISA KEV listing exists, and the POC itself appears in a GitHub issue report rather than a weaponized exploit kit. Taken together: technically trivial to exploit where deployed, but the realistic at-risk population is very small.

Exploit ScenarioDerived

A publicly available proof-of-concept exploit is referenced at https://github.com/bfs045313-wq/cv3-protect/issues/2. An unauthenticated attacker with network access to the web application sends a crafted HTTP POST request to /ajax.php?action=save_product with a SQL injection payload in the id parameter - for example, appending ' OR '1'='1 or a UNION-based statement - causing the backend database query to return or modify unintended records. Because the attack is fully automatable (SSVC: Automatable=yes), an attacker could script enumeration of the entire database schema and contents with minimal effort.

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 – Jul 24, 2026

SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 exposes the /ajax.php?action=save_product endpoint to unauthenticated remote attackers who can manipulate the id parameter to inject arbitrary SQL commands against the backend database. The CVSS 4.0 vector (AV:N/AC:L/PR:N/UI:N) confirms no authentication or special configuration is needed, and a public proof-of-concept exploit is available per VulDB and a referenced GitHub issue. Despite straightforward exploitability, the EPSS score of 0.03% (9th percentile) reflects the product's niche deployment footprint rather than any exploitation difficulty, and no CISA KEV listing has been confirmed.

RemediationAI

No vendor-released patch has been identified at time of analysis. The definitive fix requires the application developer to replace direct SQL string interpolation with parameterized queries using PHP's PDO or MySQLi prepared statements for the id parameter in /ajax.php. As an immediate compensating control, restrict access to the /ajax.php endpoint to authenticated and authorized sessions at the application or server level - for Apache, this can be enforced via Require valid-user in .htaccess or through a session check in the PHP logic; note this may break unauthenticated AJAX workflows if any exist. Deploying a Web Application Firewall (WAF) with SQLi detection rules targeting this endpoint can block exploit attempts but should not be treated as a permanent fix, as WAF bypass is possible. If product management functionality can be temporarily suspended, disabling or removing the save_product action entirely eliminates the attack surface with no side effects beyond loss of that feature. Advisory reference: https://vuldb.com/vuln/359798.

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

The affected product is a PHP-based web application (CPE: cpe:2.3:a:sourcecodester:pharmacy_sales_and_inventory_system:*:*:*:*:*:*:*:*) distributed by SourceCodester, typically backed by a MySQL database and commonly used in educational or small-business pharmacy contexts. The root cause is CWE-89 (Improper Neutralization of Special Elements used in an SQL Command): the AJAX handler at /ajax.php?action=save_product incorporates the user-supplied id parameter directly into a SQL query without sanitization or parameterization. PHP applications relying on direct string interpolation rather than PDO or MySQLi prepared statements are a well-known source of this vulnerability class. The endpoint's AJAX nature suggests it is called from the application's frontend product management interface, likely without session-scoped authorization checks.

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
vuln.today AI 6.5 MEDIUM

Network-reachable unauthenticated endpoint with low-complexity SQLi (AV:N, AC:L, PR:N, UI:N); partial data read/write impact only (C:L, I:L); no distinct availability impact identified from description.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

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

DescriptionCVE.org

A weakness has been identified in SourceCodester Pharmacy Sales and Inventory System 1.0. This impacts an unknown function of the file /ajax.php?action=save_product. This manipulation of the argument ID causes sql injection. The attack is possible to be carried out remotely. The exploit has been made available to the public and could be used for attacks.

Threat Intelligence Overview

EPSS Score
0.0%
Top 91% exploitable
Prevalence
Rare
niche open-source educational PHP project, minimal enterprise footprint
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· 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.

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