Application crash via unbounded filename input
Published Apr 29, 2025 · Updated Apr 29, 2025
Stack-based buffer overflow in Code Projects Prison Management System 1.0 allows local users to crash the application via a long filename. The addrecord function passes the 30-byte filename stack buffer to gets(), which copies input without enforcing a length limit and overwrites adjacent stack memory. The path is reached after the application's login step; the published proof of concept demonstrates an access-violation crash, while arbitrary code execution is not demonstrated.
Summary
What happened
Stack-based buffer overflow in Code Projects Prison Management System 1.0 allows local users to crash the application via a long filename. The addrecord function passes the 30-byte filename stack buffer to gets(), which copies input without enforcing a length limit and overwrites adjacent stack memory. The path is reached after the application's login step; the published proof of concept demonstrates an access-violation crash, while arbitrary code execution is not demonstrated.
The record
- CVE
- CVE-2025-4059
- Published
- Apr 29, 2025
- Updated
- Apr 29, 2025
- Vendor
- Code Projects
- Product
- Prison Management System
- Classifications
- CWE-121, CWE-119, CWE-787, T1499.004
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Apr 29, 2025CVE publishedPublication date reported by the CVE source.
- Apr 29, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=1.0
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Prison_Mgmt_Sys addrecord crash proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo