Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
4DescriptionCVE.org
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.
AnalysisAI
Inventory depletion in SourceCodester Pharmacy Product Management System 1.0 allows remote attackers to corrupt stock records by submitting negative values through the add-stock.php 'txtqty' parameter, causing the system to decrease inventory instead of increasing it and enabling denial of service via stock exhaustion. Publicly available exploit code exists demonstrating this business logic flaw, and the affected product lacks CVSS severity quantification despite the demonstrated impact on system integrity and availability.
Technical ContextAI
The vulnerability exploits insufficient input validation in a PHP-based web application responsible for pharmacy inventory management. The add-stock.php endpoint processes the 'txtqty' parameter without enforcing constraints on numeric sign or magnitude, allowing negative integer values to propagate into inventory calculations. This represents a business logic vulnerability (CWE classification not specified in available data) rather than a traditional injection or authentication bypass, as the application accepts the input syntactically but fails to enforce domain-specific constraints that stock quantity adjustments must be non-negative. The CPE data indicates the affected product is tracked generically (cpe:2.3:a:n/a:n/a:*:*:*:*:*:*:*:*), suggesting either incomplete vendor metadata or community-reported vulnerability with limited vendor engagement.
RemediationAI
Apply input validation to the add-stock.php file's 'txtqty' parameter to enforce non-negative numeric values; implement server-side range checks ensuring quantity adjustments are positive integers before inventory updates are committed to the database. No vendor-released patch version was identified in available data; remediation requires direct code review and patching by the SourceCodester development team or the deploying organization. As an interim workaround, restrict network access to the add-stock.php endpoint via web application firewall rules that reject requests with negative 'txtqty' values, and implement audit logging on all inventory adjustments to detect and reverse malicious stock depletion. See GitHub PoC reference for technical details: https://github.com/meifukun/Web-Security-PoCs/blob/main/Pharmacy-Product-Management-System/Logic-AddStock-NegativeQty.md
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
Same weakness CWE-20 – Improper Input Validation
View allSame technique Denial Of Service
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-16707
GHSA-jxwm-85rg-xjq8