Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with low-privilege account
-
DeliverySend crafted POST to /ajax.php?action=save_supplier
-
ExploitInject SQL payload into ID parameter
-
ExecutionExecute arbitrary SQL against backend database
-
ImpactExfiltrate or modify 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 (PR:L) confirms that exploitation requires a valid low-privilege account within the Pharmacy Sales and Inventory System - unauthenticated exploitation is not possible based on available data. The specific attack surface is the |
| Impact | The CVSS 4.0 score of 2.1 is deliberately low, driven by PR:L (authentication required), limited VC:L/VI:L/VA:L impact metrics, and no scope change to subsequent systems. EPSS at 0.03% (8th percentile) independently corroborates low exploitation probability despite POC availability, likely reflecting the application's near-zero enterprise deployment footprint. SSVC classifies the flaw as Automatable: No and Technical Impact: Partial, further constraining prioritization. The POC published on GitHub is a real and distinct signal that lowers the bar for exploitation, but it does not equate to active exploitation - no CISA KEV listing exists. The primary risk is to organizations that have inadvertently deployed this student/demo codebase in internet-accessible environments, which would be an architectural concern independent of this specific CVE. For most enterprise security teams, this is low operational priority absent confirmed internal deployment. |
| Exploit ScenarioDerived | An authenticated low-privilege user with access to the supplier management feature 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 permits a low-privileged authenticated remote attacker to manipulate the ID parameter in the save_supplier function at /ajax.php?action=save_supplier, enabling arbitrary SQL command execution against the backend database. A publicly available proof-of-concept exploit has been published on GitHub, though EPSS probability is extremely low at 0.03% (8th percentile) and SSVC rates both automatability and technical impact as limited, reflecting the narrow real-world deployment footprint of this educational PHP application. No active exploitation has been confirmed by CISA KEV.
RemediationAI
No vendor-released patch has been identified at time of analysis. Because SourceCodester distributes editable PHP source code, remediation requires direct code modification: developers must refactor the save_supplier function in /ajax.php to use parameterized prepared statements (e.g., PDO with bound parameters) instead of raw string concatenation, and validate that the ID parameter accepts only expected integer values before any database interaction. Organizations running this application in any network-accessible capacity should immediately restrict endpoint access to authenticated, trusted internal users, and consider taking the application offline until the code is patched - the trade-off being service disruption versus continued exposure to an authenticated SQLi with a public POC. Reference the VulDB advisory at https://vuldb.com/vuln/360116 and the POC details at https://github.com/microwaveabi/vul/issues/3 to inform the targeted fix.
Affected VersionsENISA
Affected Packages
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 resides in the PHP-based SourceCodester Pharmacy Sales and Inventory System 1.0, a freely distributed educational web application available at sourcecodester.com targeted at students and developers learning PHP. The root cause is CWE-89 (Improper Neutralization of Special Elements Used in an SQL Command): the save_supplier function in /ajax.php incorporates the user-supplied ID argument directly into SQL query construction without parameterization or sanitization, allowing injection of arbitrary SQL syntax. The CPE identifier cpe:2.3:a:sourcecodester:pharmacy_sales_and_inventory_system:*:*:*:*:*:*:*:* covers the product; only version 1.0 is identified as affected per EUVD-2026-26257. The application connects to a relational SQL backend with permissions scoped to its own database, bounding the blast radius of any successful injection.
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:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Network-reachable endpoint requires low-privilege authentication (PR:L); limited C/I/A impact reflects application-scoped database access with no scope change.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
4DescriptionCVE.org
A flaw has been found in SourceCodester Pharmacy Sales and Inventory System 1.0. This affects the function save_supplier of the file /ajax.php?action=save_supplier. This manipulation of the argument ID causes sql injection. Remote exploitation of the attack is possible. The exploit has been published and may be used.
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.
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 exposes the `/ajax.php?action=save_product` endp
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
EUVD-2026-26257
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB