# CVE-2026-7194: SourceCodester Pharmacy Sales and Inventory System SQL injection in ajax.php

Source: https://junglewise.ai/threats/cve-2026-7194-sourcecodester-pharmacy-sales-and-inventory-system-sql-injection  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-04-27. Updated: 2026-07-24  
License: CC BY 4.0 with a link back

CVE-2026-7194 · Severity: high · CVSS 7.3 · Published 2026-04-27

SourceCodester Pharmacy Sales and Inventory System is a web-based application used to manage pharmaceutical stock and sales. A security flaw in the system allows unauthorized individuals to manipulate database queries remotely. This could lead to the theft of sensitive pharmacy data, unauthorized changes to inventory records, or a complete loss of system control.

Technologies: [SourceCodester Pharmacy Sales and Inventory System](https://junglewise.ai/threats/technologies/pharmacy-sales-and-inventory-system). Vendors: [SourceCodester](https://junglewise.ai/threats/vendors/sourcecodester).

## Quick answers

**Is CVE-2026-7194 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-7194 being exploited in the wild.

**How severe is CVE-2026-7194?** High severity, with a CVSS score of 7.3, published 27 April 2026.

**Which products and versions are affected?** SourceCodester Pharmacy Sales and Inventory System 1.0.

**Is there a fix for CVE-2026-7194?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-7194 attacked?** It is attacked over the network, in a network appliance.

**Am I affected by CVE-2026-7194?** Check whether you run SourceCodester Pharmacy Sales and Inventory System at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

A SQL injection vulnerability exists in SourceCodester Pharmacy Sales and Inventory System 1.0 within the '/ajax.php?action=save_product' endpoint. The root cause is the improper neutralization of the 'id' parameter before it is used in a SQL query. An unauthenticated remote attacker can exploit this by sending a specially crafted POST request containing malicious SQL commands. Successful exploitation allows for unauthorized database access, data exfiltration, and potential system compromise. A public proof-of-concept (PoC) using boolean-based blind SQL injection has been disclosed.

## Affected products

- SourceCodester Pharmacy Sales and Inventory System 1.0

## Timeline

- 2026-04-09: disclosed: Initial disclosure on GitHub by zzb1388
- 2026-04-27: advisory: CVE published by VulDB

## References

- [https://github.com/bfs045313-wq/cv3-protect/issues/2](https://github.com/bfs045313-wq/cv3-protect/issues/2)
- [https://vuldb.com/submit/800977](https://vuldb.com/submit/800977)
- [https://vuldb.com/vuln/359798](https://vuldb.com/vuln/359798)
- [https://vuldb.com/vuln/359798/cti](https://vuldb.com/vuln/359798/cti)
- [https://www.sourcecodester.com/](https://www.sourcecodester.com/)

## Related threats

- [SourceCodester Pharmacy Sales and Inventory System improper access control in ShowForm](https://junglewise.ai/threats/cve-2026-10255-sourcecodester-pharmacy-sales-and-inventory-system-improper)
- [SourceCodester Pharmacy Sales and Inventory System CSV injection in Supplier Creation Interface](https://junglewise.ai/threats/cve-2026-10248-sourcecodester-pharmacy-sales-and-inventory-system-csv-injection)
- [SourceCodester Pharmacy Sales and Inventory System XSS in create_generic_name](https://junglewise.ai/threats/cve-2026-10247-sourcecodester-pharmacy-sales-and-inventory-system-xss-in-create)
- [SourceCodester Pharmacy Sales and Inventory System XSS in create_medicine_presentation](https://junglewise.ai/threats/cve-2026-10246-sourcecodester-pharmacy-sales-and-inventory-system-xss-in-create)
- [SourceCodester Pharmacy Sales and Inventory System XSS in create_supplier](https://junglewise.ai/threats/cve-2026-10245-sourcecodester-pharmacy-sales-and-inventory-system-xss-in-create)
