CVE-2026-3792

SourceCodester Sales and Inventory System GET Parameter purchase_invoice.php sql injection

Published Mar 9, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
A vulnerability was found in SourceCodester Sales and Inventory System 1.0. This affects an unknown part of the file purchase_invoice.php of the component GET Parameter Handler. The manipulation of the argument purchaseid results in sql injection. The attack may be performed from remote. The exploit has been made public and could be used.

Analysis

AI-generated

Technical impact

A vulnerability in the SourceCodester Sales and Inventory System 1.0 allows an attacker to inject arbitrary SQL through the purchaseid GET parameter in purchase_invoice.php. The flaw arises from unsanitized input handling in the GET parameter handler, enabling malicious queries that can read, modify, or delete database contents. If exploited, an attacker could compromise data confidentiality and integrity, potentially affecting all users of the system.

Affected Systems

This issue affects the SourceCodester Sales and Inventory System version 1.0, specifically the purchase_invoice.php module that processes the purchaseid GET argument. No other versions or components are listed as affected.

Risk and Exploitability

The CVSS base score of 5.3 categorizes the vulnerability as moderate severity. The EPSS score of less than 1% indicates a low probability of exploitation at the present time, and the vulnerability is not listed in the CISA KEV catalog. Based on the description, the attack vector is remote, and no authentication is required; an adversary can trigger the injection simply by crafting a specially crafted URL. Given that the exploit is publicly available, the risk to affected installations remains significant, particularly in environments lacking input sanitization or access controls.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade SourceCodester Sales and Inventory System to the latest release or apply the vendor's security patch if available.
  • Validate and sanitize the purchaseid GET parameter before using it in SQL queries to eliminate injected code.
  • Implement prepared statements or parameterized queries for all database interactions involving purchaseid.
  • Restrict access to purchase_invoice.php so that only authorized users can invoke the endpoint.

Generated by OpenCVE AI on April 16, 2026 at 04:03 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
First Time appeared Sourcecodester
Sourcecodester sales And Inventory System
Vendors & Products Sourcecodester
Sourcecodester sales And Inventory System
Type Values Removed Values Added
First Time appeared Ahsanriaz26gmailcom
Ahsanriaz26gmailcom sales And Inventory System
CPEs cpe:2.3:a:ahsanriaz26gmailcom:sales_and_inventory_system:1.0:*:*:*:*:*:*:*
Vendors & Products Ahsanriaz26gmailcom
Ahsanriaz26gmailcom sales And Inventory System
Type Values Removed Values Added
Description A vulnerability was found in SourceCodester Sales and Inventory System 1.0. This affects an unknown part of the file purchase_invoice.php of the component GET Parameter Handler. The manipulation of the argument purchaseid results in sql injection. The attack may be performed from remote. The exploit has been made public and could be used.
Title SourceCodester Sales and Inventory System GET Parameter purchase_invoice.php sql injection
Weaknesses CWE-74
CWE-89
References
Metrics cvssV2_0

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

cvssV3_0

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

cvssV3_1

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

cvssV4_0

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

Weaknesses
  • CWE-74

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

  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Mar 10, 2026, 8:26 PM
Reserved
Mar 8, 2026, 7:24 AM
Status
Analyzed
Published
Mar 9, 2026, 2:15 AM
Modified
Jun 17, 2026, 10:44 AM