VYPR
Unrated severityNVD Advisory· Published May 18, 2025· Updated May 19, 2025

code-projects Pharmacy Management System Add Order Details take_order buffer overflow

CVE-2025-4888

Description

A vulnerability, which was classified as critical, was found in code-projects Pharmacy Management System 1.0. This affects the function medicineType::take_order of the component Add Order Details. The manipulation leads to buffer overflow. An attack has to be approached locally. The exploit has been disclosed to the public and may be used.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

A buffer overflow in the `medicineType::take_order()` function of Pharmacy Management System 1.0 allows local attackers to cause memory corruption or code execution.

Vulnerability

The vulnerability exists in the medicineType::take_order() function of Pharmacy Management System 1.0 [2]. The function uses cin to read user input into fixed-size buffers without length validation, leading to buffer overflows (CWE-120, CWE-125) [2]. Affected fields include customerName, date, menu2[], and quantity[] [2]. The software is written in C++ and the vulnerable code is in the main application source file [2].

Exploitation

An attacker must have local access to the system running the Pharmacy Management System [1]. The exploit requires the attacker to interact with the application by selecting option 1 (take order) and then providing a long string of characters (e.g., 'a' repeated) to overflow the stack [2]. No authentication is needed beyond local access [2]. The POC demonstrates a crash by entering a long payload [2].

Impact

Successful exploitation can lead to memory corruption, arbitrary code execution, or system crashes [2]. The attacker may gain the ability to execute arbitrary code with the privileges of the application, potentially leading to full compromise of the system [2].

Mitigation

As of the publication date (2025-05-18), no official patch has been released by code-projects [1]. The vendor has not provided a fixed version. Users should consider disabling the application or applying input validation patches manually. The vulnerability is publicly disclosed and may be exploited [2].

AI Insight generated on May 25, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

2

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

5

News mentions

0

No linked articles in our index yet.