CVE-2025-34061 PHPStudy 2016-2018 Backdoor Remote Code Execution Vulnerability

Critical 9.3 Published Updated

Unauthenticated attackers can execute arbitrary PHP code via a backdoor in PHPStudy, compromising the web server.

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-2025-34061?

CVE-2025-34061 is a critical code injection vulnerability in Henan Xiaopi Security Technology Co., Ltd. PHPStudy, published on 3 Jul 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A backdoor in PHPStudy versions 2016 through 2018 allows unauthenticated remote attackers to execute arbitrary PHP code on affected installations. The backdoor listens for base64-encoded PHP payloads in the Accept-Charset HTTP header of incoming requests, decodes and executes the payload without proper validation. This leads to remote code execution as the web server user, compromising the affected system.

Weakness: CWE-94

Which versions are affected by CVE-2025-34061?

How do I fix CVE-2025-34061?

No fix has been published for CVE-2025-34061 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2025-34061 being exploited?

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

Public exploit code: 1 Metasploit module.

Sources

Also known as GHSA-2mv3-3vpm-p5pm.

Is CVE-2025-34061 in your software?

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

Check your SBOMs for free