Hacker News Viewer

WordPress: Unauthenticated path traversal leading to conditional RCE

by vntok on 9/22/2026, 4:33:45 PM

https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-7hp8-65ch-5whp

Comments

by: beezle

&quot;WordPress 7.1.2 has been released containing a fix for the vulnerability, and as a courtesy to users on older branches the fix has been backported to all branches back to 4.7&quot;<p>As a courtesy, I try not to say more than one bad thing about WP every day. FWIW about 1&#x2F;3 of installs are not on the recent 7 branch.

9/22/2026, 9:04:41 PM


by: zelphirkalt

These are the reason, why every easily reachable web server will be spammed with &#x2F;something&#x2F;something.php?somearg=someval. If I had to guess, which software on the web has been the most exploitable over all of the web&#x27;s history, WP would surely be among the top candidates. Maybe right after MS Teams or Sharepoint or some stuff like that.

9/22/2026, 6:06:12 PM


by: random_savv

I am so happy that I asked Codex to rewrite our website as Hugo templates which allowed us to statically host it and get rid of Wordpress. So much stress gone!

9/22/2026, 6:33:34 PM


by: Roscius

Using WordPress is like chewing discarded gum you find lying in the street.

9/22/2026, 9:29:03 PM


by: chrismorgan

The patch (identified from <a href="https:&#x2F;&#x2F;github.com&#x2F;WordPress&#x2F;wordpress-develop&#x2F;compare&#x2F;7.1.1...7.1.2" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;WordPress&#x2F;wordpress-develop&#x2F;compare&#x2F;7.1.1...</a>):<p><a href="https:&#x2F;&#x2F;github.com&#x2F;WordPress&#x2F;wordpress-develop&#x2F;commit&#x2F;9c4e852f2699104a3bf59d35a3b3f55b2e91ccb6" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;WordPress&#x2F;wordpress-develop&#x2F;commit&#x2F;9c4e85...</a>

9/22/2026, 6:18:26 PM


by: vntok

Ironically, this 9 years old comment on the official documentation page of one of the affected functions perfectly describes both the nature and remediation of this major security flaw:<p>&gt; Paul Ryan 9 years ago<p>&gt; Note that locate_template() does not prevent directory traversal attacks, so if you’re passing a user-provided template name to the function, be sure to verify that it’s from one of the three appropriate locations (active theme directory, parent theme directory, or &#x2F;wp-includes&#x2F;theme-compat&#x2F; directory).<p><a href="https:&#x2F;&#x2F;developer.wordpress.org&#x2F;reference&#x2F;functions&#x2F;locate_template&#x2F;" rel="nofollow">https:&#x2F;&#x2F;developer.wordpress.org&#x2F;reference&#x2F;functions&#x2F;locate_t...</a>

9/22/2026, 5:18:05 PM


by: iLoveOncall

WordPress really is a piece of garbage software, and if you&#x27;ve ever developed plugins for it it is soooo apparent.<p>The documentation is a perfect reflection of the absolute mess of spaghetti code that it is, half of the methods that you will use constantly when developing plugins are undocumented, even untyped. It&#x27;s literally unusable.<p>I know WordPress is good thanks to its ecosystem, but really, really, do NOT use it.

9/22/2026, 6:48:18 PM


by: whycome

hmm, this may be why i just saw an unexpected update to a very old theme.

9/22/2026, 5:10:43 PM


by: system2

pearcmd.php must exist, and register_argc_argv must be on, not common with hosting providers. But I am assuming the other themes and meeting conditions possibly affect a lot of WordPress sites.

9/22/2026, 4:58:04 PM


by: tptacek

These CVSS scores don&#x27;t mean anything and it would be better for everyone if they stopped showing up in headlines. This is a somewhat situational Wordpress RCE that impacts only a couple themes.

9/22/2026, 5:02:07 PM


by: lyu07282

There is always this idea that the most used software also has the most vulnerabilities, but I think its an interesting question if this is actually true in light of AI. Like humans wouldn&#x27;t spend a combined 100,000 hours or something looking at some obscure code, but an AI might do the equivalent across the entire ecosystem. Like if this idea is really true, we should see CVE&#x27;s go into the millions per year soon, although I guess for now it&#x27;s still bounded by compute budget but I question if the initial premise is true to begin with or if PHP is just shit. &#x2F;s

9/22/2026, 9:28:20 PM