# CVE-2026-5812: SourceCodester Pharmacy Product Management System POST Parameter add-sales.php logic error

- Severity: Medium 5.3 (CVSS:4.0, scored by VulDB) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-08T22:30:15.161Z
- Modified: 2026-07-24T09:10:00.153Z
- Weaknesses: CWE-840
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulDB

## Description

A security flaw has been discovered in SourceCodester Pharmacy Product Management System 1.0. This affects an unknown part of the file add-sales.php of the component POST Parameter Handler. Performing a manipulation of the argument txtqty results in business logic errors. It is possible to initiate the attack remotely. The exploit has been released to the public and may be used for attacks.

(As written by CVE List.)

## Affected

- SourceCodester Pharmacy Product Management System: 1.0

## Every score

- VulDB: CVSS:4.0 5.3 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:P`
- VulDB: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L/E:P/RL:X/RC:R`
- VulDB: CVSS:3.0 5.4 Medium `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L/E:P/RL:X/RC:R`
- VulDB: CVSS:2.0 5.5 Medium `AV:N/AC:L/Au:S/C:N/I:P/A:P/E:POC/RL:ND/RC:UR`

## References

- <https://github.com/meifukun/Web-Security-PoCs/blob/main/Pharmacy-Product-Management-System/Logic-AddSales-NegativeQty.md> (exploit)
- <https://vuldb.com/vuln/356260> (technical-description, vdb-entry)
- <https://vuldb.com/vuln/356260/cti> (permissions-required, signature)
- <https://vuldb.com/submit/787680> (third-party-advisory)
- <https://www.sourcecodester.com/> (product)

## Sources

- CVE List: [CVE-2026-5812](https://www.cve.org/CVERecord?id=CVE-2026-5812), CVE Terms of Use, modified 2026-04-09
- NVD: [CVE-2026-5812](https://nvd.nist.gov/vuln/detail/CVE-2026-5812), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2026-5812 · Whole record: https://cve.day/CVE-2026-5812.json · Rebuilt by cve.day 2026-11-25T22:59:18.350Z
