Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2021-29504

9.1 · CRITICAL
Published Jun 7, 2021 wp-cli CWE-295 EPSS 1.31% (69th pctl)

Overview

CVE-2021-29504 is a critical-severity vulnerability affecting wp-cli wp-cli. It was published on June 7, 2021 and has a CVSS 3.1 base score of 9.1 (CRITICAL).

This vulnerability has a CVSS 3.1 base score of 9.1, rated CRITICAL. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

Technical Description

WP-CLI is the command-line interface for WordPress. An improper error handling in HTTPS requests management in WP-CLI version 0.12.0 and later allows remote attackers able to intercept the communication to remotely disable the certificate verification on WP-CLI side, gaining full control over the communication content, including the ability to impersonate update servers and push malicious updates towards WordPress instances controlled by the vulnerable WP-CLI agent, or push malicious updates toward WP-CLI itself. The vulnerability stems from the fact that the default behavior of `WP_CLI\Utils\http_request()` when encountering a TLS handshake error is to disable certificate validation and retry the same request. The default behavior has been changed with version 2.5.0 of WP-CLI and the `wp-cli/wp-cli` framework (via https://github.com/wp-cli/wp-cli/pull/5523) so that the `WP_CLI\Utils\http_request()` method accepts an `$insecure` option that is `false` by default and consequently that a

Remediation

Check the references section for vendor advisories and patches from wp-cli. Update wp-cli to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
wp-cli wp-cli >= 0.12.0, < 2.5.0 Affected

Frequently Asked Questions

What is CVE-2021-29504?

CVE-2021-29504 is a critical-severity vulnerability affecting wp-cli wp-cli. It was published on June 7, 2021 and has a CVSS 3.1 base score of 9.1 (CRITICAL).

How severe is CVE-2021-29504?

This vulnerability has a CVSS 3.1 base score of 9.1, rated CRITICAL. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

How do I fix or remediate CVE-2021-29504?

Check the references section for vendor advisories and patches from wp-cli. Update wp-cli to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2021-29504?

CyberStrike's AI-powered security agents can automatically detect CVE-2021-29504 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.