CVE-2025-6213 Nginx Cache Purge Preload <= 2.1.1 - Authenticated (Administrator+) Remote Code Execution

High 7.2 Published Updated

Authenticated administrators can execute arbitrary code on the server via insufficient sanitization in the Nginx Cache Purge Preload plugin.

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

What is CVE-2025-6213?

CVE-2025-6213 is a high-severity code injection vulnerability in psauxit Nginx Cache Purge Preload, published on 22 Jul 2025. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

The Nginx Cache Purge Preload plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 2.1.1 via the 'nppp_preload_cache_on_update' function. This is due to insufficient sanitization of the $_SERVER['HTTP_REFERERER'] parameter passed from the 'nppp_handle_fastcgi_cache_actions_admin_bar' function. This makes it possible for authenticated attackers, with Administrator-level access and above, to execute code on the server.

Weakness: CWE-94

Which versions are affected by CVE-2025-6213?

How do I fix CVE-2025-6213?

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

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

Sources

Also known as GHSA-7653-r8cq-rf8w.

Is CVE-2025-6213 in your software?

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

Check your SBOMs for free