CVE-2024-58299 PCMan FTP Server 2.0 Remote Buffer Overflow via 'pwd' Command

Critical 9.3 Published Updated

Remote attackers can execute arbitrary code on PCMan FTP Server by sending a crafted payload during the login process.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-58299?

CVE-2024-58299 is a critical memory corruption vulnerability in PCMan FTP Server, published on 12 Dec 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

PCMan FTP Server 2.0 contains a buffer overflow vulnerability in the 'pwd' command that allows remote attackers to execute arbitrary code. Attackers can send a specially crafted payload during the FTP login process to overwrite memory and potentially gain system access.

Weakness: CWE-121

Which versions are affected by CVE-2024-58299?

How do I fix CVE-2024-58299?

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

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

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-4v69-cg9p-ggfp.

Is CVE-2024-58299 in your software?

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

Check your SBOMs for free