CVE-2025-5297 SourceCodester Computer Store System main.c Add stack-based overflow

Medium 4.8 Published Updated

A local attacker can trigger a stack-based buffer overflow in the Add function 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-5297?

CVE-2025-5297 is a medium-severity memory corruption vulnerability in SourceCodester Computer Store System, published on 28 May 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A vulnerability, which was classified as critical, has been found in SourceCodester Computer Store System 1.0. This issue affects the function Add of the file main.c. The manipulation of the argument laptopcompany/RAM/Processor 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.

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

Which versions are affected by CVE-2025-5297?

It affects 1 product.

Products include Razormist Simple Computer Store System.

How do I fix CVE-2025-5297?

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

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

Sources

Also known as GHSA-cmg2-pjgm-gcrp.

Is CVE-2025-5297 in your software?

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

Check your SBOMs for free