CVE-2012-10058 RabidHamster R4 Log Entry sprintf() Buffer Overflow

Critical 10.0 Published Updated

Remote attackers can execute arbitrary code via a stack-based buffer overflow in the web server's logging mechanism.

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-2012-10058?

CVE-2012-10058 is a critical memory corruption vulnerability in RabidHamster R4 Embedded Server, published on 13 Aug 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

RabidHamster R4 v1.25 contains a stack-based buffer overflow vulnerability due to unsafe use of sprintf() when logging malformed HTTP requests. A remote attacker can exploit this flaw by sending a specially crafted URI, resulting in arbitrary code execution under the context of the web server process.

Weakness: CWE-121

Which versions are affected by CVE-2012-10058?

How do I fix CVE-2012-10058?

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

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

Public exploit code: 1 Metasploit module.

Sources

Also known as GHSA-3542-93rq-2v6g.

Is CVE-2012-10058 in your software?

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

Check your SBOMs for free