CVE-2025-4038 code-projects Train Ticket Reservation System reservation stack-based overflow

Medium 4.8 Published Updated

A local attacker can trigger a stack-based buffer overflow in the ticket reservation system to potentially 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-4038?

CVE-2025-4038 is a medium-severity memory corruption vulnerability in code-projects Train Ticket Reservation System, published on 28 Apr 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A vulnerability was found in code-projects Train Ticket Reservation System 1.0. It has been declared as critical. Affected by this vulnerability is the function Reservation of the component Ticket Reservation. The manipulation of the argument Name leads to stack-based buffer overflow. Attacking locally is a requirement. The exploit has been disclosed to the public and may be used.

Weakness: CWE-121, CWE-787, CWE-119

Which versions are affected by CVE-2025-4038?

It affects 1 product.

Products include Fabian Train Ticket Reservation System.

How do I fix CVE-2025-4038?

No fix has been published for CVE-2025-4038 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-4038 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-4038 exists.

Sources

Also known as GHSA-w2gx-jrw9-w3hf.

Is CVE-2025-4038 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free