CVE-2025-4059 code-projects Prison Management System Prison_Mgmt_Sys addrecord stack-based overflow
A local attacker can exploit a stack-based buffer overflow in the addrecord function to execute arbitrary code.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-4059?
CVE-2025-4059 is a medium-severity memory corruption vulnerability in code-projects Prison Management System, published on 29 Apr 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
A vulnerability classified as critical was found in code-projects Prison Management System 1.0. This vulnerability affects the function addrecord of the component Prison_Mgmt_Sys. The manipulation of the argument filename leads to stack-based buffer overflow. An attack has to be approached locally. The exploit has been disclosed to the public and may be used.
Which versions are affected by CVE-2025-4059?
It affects 1 product.
Products include Code-Projects Prison Management System.
How do I fix CVE-2025-4059?
No fix has been published for CVE-2025-4059 yet. Limit exposure of the affected software until one is available.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2025-4059 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-4059 exists.
Sources
Also known as GHSA-6qwv-wfwp-j22f.