CVE-2026-10248

SourceCodester Pharmacy Sales and Inventory System Supplier Creation export create_supplier csv injection

Published Jun 1, 2026 CVSS 4.0 · 5.1 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The create_supplier function in the Pharmacy Sales and Inventory System accepts the Address/Company Name parameter and writes it directly into a CSV file without sanitisation. By injecting spreadsheet‑compatible formulas such as =cmd|/, an attacker can trigger arbitrary command execution when the CSV is opened in a spreadsheet application, giving the attacker remote code execution capabilities. This flaw is a classic CSV injection vulnerability, identified as CWE‑74.

Affected Systems

SourceCodester Pharmacy Sales and Inventory System versions 1.0 and earlier are affected. The issue exists in the Supplier Creation Interface component, specifically the create_supplier function located in /Export_csv/export. Any deployment of this product that has not applied a later patch is susceptible.

Risk and Exploitability

The vulnerability carries a CVSS score of 5.1, indicating medium severity. EPSS data is not available, and it is not listed in the CISA KEV catalog, but the description states that remote exploitation is possible and the exploit has been publicly disclosed. The likely attack vector is remote, relying on a malicious CSV file delivered to a user who opens it in an office application. While the risk level reflects moderate exploitation potential, the presence of a publicly known exploit warrants prompt mitigation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update to the latest version of SourceCodester Pharmacy Sales and Inventory System that addresses the CSV injection flaw.
  • Sanitise or escape all user‑supplied Address/Company Name values before including them in CSV output, converting characters such as =, +, -, @ and tabs to safe representations.
  • Restrict the export CSV feature to authenticated and authorised personnel only, and log all export operations for audit purposes.

Generated by OpenCVE AI on June 1, 2026 at 12:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title SourceCodester Pharmacy Sales and Inventory System Supplier Creation export create_supplier csv injection
First Time appeared Sourcecodester
Sourcecodester pharmacy Sales And Inventory System
Weaknesses CWE-1236
CWE-74
CPEs cpe:2.3:a:sourcecodester:pharmacy_sales_and_inventory_system:*:*:*:*:*:*:*:*
Vendors & Products Sourcecodester
Sourcecodester pharmacy Sales And Inventory System
References
Metrics cvssV2_0

{'score': 5.8, 'vector': 'AV:N/AC:L/Au:M/C:P/I:P/A:P/E:POC/RL:ND/RC:UR'}

cvssV3_0

{'score': 4.7, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R'}

cvssV3_1

{'score': 4.7, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R'}

cvssV4_0

{'score': 5.1, 'vector': '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'}

Weaknesses
  • CWE-1236

    Improper Neutralization of Formula Elements in a CSV File

  • CWE-74

    Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Jun 1, 2026, 2:52 PM
Reserved
May 31, 2026, 10:15 AM
Status
Deferred
Published
Jun 1, 2026, 11:16 AM
Modified
Jul 22, 2026, 7:10 AM