Software & Platforms

WordPress 7.1.5 Fixes an Unauthenticated Flaw That Could Lead to Remote Code Execution

WordPress 7.1.5, released November 18, patches an unauthenticated privilege escalation that could lead to remote code execution, along with SQL injection, cross-site scripting and data exposure bugs, ahead of WordPress 7.2 on December 8.

A man shines a flashlight on a fieldstone basement wall as a teenage boy fills a crack with mortar from a bucket.
In a farmhouse basement at night, a father aims his flashlight at a crack in the fieldstone foundation while his son presses fresh mortar into it, the sort of repair at the base that WordPress 7.1.5 makes.

WordPress 7.1.5 shipped on November 18 as a security release, and the WordPress project recommends updating immediately. The most serious item on its list is an unauthenticated privilege escalation through Template Part block attributes that, according to the release announcement, could lead to remote code execution. In plain terms, a visitor with no account could gain higher privileges and potentially run code on the server.

Every WooCommerce store runs on WordPress core, so a flaw at this level sits underneath the checkout, the customer database and every payment plugin on the site. A plugin vulnerability affects the stores that use that plugin. A core flaw affects all of them until they update.

The fixes that matter most for stores

The announcement lists each issue with the person who reported it, rather than giving a single total, and outside tallies differ because some entries are hardening changes rather than vulnerabilities. Several items stand out for sites that take payments or hold customer accounts:

  • Template Part privilege escalation. Unauthenticated, and described as one that could lead to remote code execution. Reported by Logan Homolka.
  • SQL injection in WP_Meta_Query. WP_Meta_Query is the core class that filters posts and other objects by their custom fields. The flaw involves nested relation values. Reported by Christiaan Swiers.
  • Stored cross-site scripting through comments. Unauthenticated, through shortcode attributes in comments. Cross-site scripting (XSS) lets an attacker plant script that runs in another user’s browser, including an administrator’s. Reported by Rafie Muhammad of Awesome Motive.
  • Denial of service through XML-RPC. Unauthenticated, using batched pingbacks. Reported by Giovanni Cintolo.
  • Email address exposure. Users with Author access or higher could see user email addresses through the REST API comments endpoint. Reported by Ben Bidner of the WordPress Security Team.
  • Other information leaks. Private taxonomy terms were exposed to unauthenticated visitors through the REST API search endpoint, and users at the Subscriber level and above could reach information they should not see through the XML-RPC wp.getComments method.

The rest of the list includes a multisite flaw that let a site Administrator take over a Super Admin account through Customizer menu previews, a second SQL injection through the front page setting in Customizer changeset previews, and a series of cross-site scripting bugs in the block editor, oEmbed responses, the legacy media library popup and the Comment Date block.

Who has to act

WordPress says sites that support automatic background updates will begin updating on their own. Stores that turned off background updates, pinned a core version, or froze changes for the holiday season will not receive the fix until someone installs it from Dashboard, then Updates, or through their host or deployment process. Anyone managing sites from the command line can confirm the installed version with the WP-CLI command wp core version.

The project also backported the security fixes to every branch still eligible for them, currently back to WordPress 4.7. At release time it said those backports were in progress and would ship as they became ready, and it repeated that only the most recent version is actively supported. A store on an old branch should not assume it is covered without checking its exact version against the WordPress release archive.

EC4IM reported on the WordPress 7.1.4 security release at the end of October. Two security releases in three weeks are a reason to confirm that whoever owns updates, an agency, a host or an in-house developer, knows a holiday freeze needs exceptions for core security patches.

WordPress 7.2 is about two weeks out

WordPress 7.1.5 is a short-cycle release. The next major version, 7.2, is planned for December 8, and its release schedule lists a third release candidate on December 1 and a code freeze on December 7. The announcement says the second release candidate of 7.2 contains all applicable fixes from 7.1.5, so a store testing 7.2 on staging is not giving up these patches. Release candidates are not meant for live sites.

For WooCommerce merchants, December 8 lands in the middle of holiday order volume. Testing checkout, payment plugins and any custom code against the 7.2 release candidates on a staging copy now leaves time to decide whether to update in December or wait for the first 7.2 point release.

Update now, test 7.2 in parallel

WordPress 7.1.5 closes an unauthenticated path that could lead to remote code execution, along with SQL injection, comment-based cross-site scripting, an XML-RPC denial of service and several data exposure bugs. Stores with automatic updates on should confirm they reached 7.1.5. Stores that update by hand, especially those in a holiday freeze, have a security release worth an exception. With 7.2 due December 8, the same staging site can carry both jobs.

Sources