Pharmacy Sales System CVE-2026-7194
MEDIUMAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify exposed /ajax.php endpoint
-
ExploitCraft HTTP request with SQL payload in id parameter
-
ExecutionInject SQL into unsanitized database query
-
ImpactExtract 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 |
| 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 |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
5DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
Affected Products (CPE)CVE.org
Pharmacy Sales And Inventory System v1.0 is vulnerable to SQL Injection via /pharmacy-sales-and-inventory-system/manage_
Unauthenticated remote information disclosure in SourceCodester Pharmacy Sales and Inventory System 1.0 allows network-b
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to execu
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to read,
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to extra
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to execu
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to read,
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to execu
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to execu
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to extra
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows unauthenticated remote attackers to extra
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows unauthenticated remote attackers to execu
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB