CVE Explorer
CVE-2026-30575
A Business Logic vulnerability exists in SourceCodester Pharmacy Product Management System 1.0 in the add-stock.php file. The application fails to validate the "txtqty" parameter during stock entry, allowing negative values to be processed. This causes the system to decrease the inventory level instead of increasing it, leading to inventory corruption and potential Denial of Service by depleting stock records.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
1
Preserved source conflicts
No provider value was silently selected as the winner.
cwe · 3 assertions
{"cweId":"CWE-20","description":"CWE-20 Improper Input Validation","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:f8d50681784fd3636a0c32aedaabeac2f81aae196272cf27ec536883e1dd66f6 · sha256:dfcf3884e5950921… · /containers/adp/0/problemTypes/1/descriptions/0
{"cweId":"CWE-1284","description":"CWE-1284 Improper Validation of Specified Quantity in Input","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:f8d50681784fd3636a0c32aedaabeac2f81aae196272cf27ec536883e1dd66f6 · sha256:dfcf3884e5950921… · /containers/adp/0/problemTypes/0/descriptions/0
{"description":"n/a","lang":"en","type":"text"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:f8d50681784fd3636a0c32aedaabeac2f81aae196272cf27ec536883e1dd66f6 · sha256:dfcf3884e5950921… · /containers/cna/problemTypes/0/descriptions/0
Affected products and versions
1 source assertion{"product":"n/a","vendor":"n/a","versions":[{"status":"affected","version":"n/a"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:f8d50681784fd3636a0c32aedaabeac2f81aae196272cf27ec536883e1dd66f6 · sha256:dfcf3884e5950921… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:f8d50681784fd3636a0c32aedaabeac2f81aae196272cf27ec536883e1dd66f6 · sha256:dfcf3884e5950921… · /containers/adp/0/metrics/0/cvssV3_1
CWE assertions
3 source assertions{"cweId":"CWE-20","description":"CWE-20 Improper Input Validation","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:f8d50681784fd3636a0c32aedaabeac2f81aae196272cf27ec536883e1dd66f6 · sha256:dfcf3884e5950921… · /containers/adp/0/problemTypes/1/descriptions/0
{"cweId":"CWE-1284","description":"CWE-1284 Improper Validation of Specified Quantity in Input","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:f8d50681784fd3636a0c32aedaabeac2f81aae196272cf27ec536883e1dd66f6 · sha256:dfcf3884e5950921… · /containers/adp/0/problemTypes/0/descriptions/0
{"description":"n/a","lang":"en","type":"text"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:f8d50681784fd3636a0c32aedaabeac2f81aae196272cf27ec536883e1dd66f6 · sha256:dfcf3884e5950921… · /containers/cna/problemTypes/0/descriptions/0
Source references
1 source assertion{"url":"https://github.com/meifukun/Web-Security-PoCs/blob/main/Pharmacy-Product-Management-System/Logic-AddStock-NegativeQty.md"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:f8d50681784fd3636a0c32aedaabeac2f81aae196272cf27ec536883e1dd66f6 · sha256:dfcf3884e5950921… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.