Skip to main content
VulnerabilityPublished

CVE-2026-4781: SourceCodester Sales and Inventory System · SQL Injection

Affects SourceCodester Sales and Inventory SystemSource CVE Database V5

0
Compare

Public exploit available · CVSS 5.3 Medium.

Data as of 30 Oct 2026, 11:52 UTC

CVSS 4.0 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.3% chance of exploitation in 30 days – higher than 23% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 24 Mar 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: evidence found.

    CVSS exploit maturity: proof of concept public

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), CVSS vector, the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.

What to do

Affected software

ProductAffectedFixed in
SourceCodesterSales and Inventory SystemAffected
  • =1.0
Fixed in–

AI-suggested

To mitigate CVE-2026-4781, organizations should first check for any vendor-issued patches or updates and apply them promptly once available. In the absence of official patches, implement strict input validation on the 'sid' parameter to ensure only expected data types and formats are accepted. Employ parameterized queries or prepared statements in the update_purchase.php script to prevent SQL injection. Restrict database user permissions to the minimum necessary, avoiding elevated privileges that could amplify the impact of an injection attack. Use web application firewalls (WAFs) with rules specifically designed to detect and block SQL injection attempts targeting the 'sid' parameter. Conduct thorough code reviews and security testing of the affected component to identify and remediate similar vulnerabilities. Monitor logs for unusual database query patterns or repeated requests to update_purchase.php with suspicious parameters. Educate developers on secure coding practices to prevent future injection flaws. Consider isolating the affected system from public networks or restricting access to trusted IP addresses until the vulnerability is resolved. Regularly back up critical data to enable recovery in case of data corruption or loss due to exploitation.

Description

A flaw has been found in SourceCodester Sales and Inventory System 1.0. The affected element is an unknown function of the file update_purchase.php of the component HTTP GET Parameter Handler. Executing a manipulation of the argument sid can lead to sql injection. The attack may be performed from remote. The exploit has been published and may be used.

References

Community reviews

Loading reviews…