Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-8658 Overview
CVE-2024-8658 affects the myCred Loyalty Points and Rewards plugin for WordPress and WooCommerce. The plugin is missing a capability check on the mycred_update_database() function in all versions up to and including 2.7.3. Unauthenticated attackers can invoke the database upgrade routine without authorization. The flaw is categorized as a Missing Authorization issue [CWE-862] and affects data integrity on sites running the vulnerable plugin.
Critical Impact
Unauthenticated remote attackers can trigger the plugin's database upgrade routine, modifying site data without any authentication or user interaction.
Affected Products
- myCred plugin for WordPress — all versions up to and including 2.7.3
- WordPress sites running myCred with WooCommerce integration
- Any WordPress installation using myCred for loyalty points, ranks, badges, or cashback features
Discovery Timeline
- 2024-09-25 - CVE-2024-8658 published to the National Vulnerability Database (NVD)
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-8658
Vulnerability Analysis
The myCred plugin exposes a database upgrade function named mycred_update_database() that lacks a WordPress capability check. The function is intended to run privileged database schema or data upgrade operations when a new plugin version is activated. Because no current_user_can() check or nonce validation guards invocation, any visitor — including unauthenticated clients — can trigger the routine over the network.
An attacker reaching the endpoint can force the plugin to perform an upgrade of an out-of-date database state. The practical impact is unauthorized modification of plugin-managed data. Confidentiality and availability are not directly affected, but integrity of myCred records and site state can be altered without consent.
Root Cause
The root cause is a Missing Authorization flaw [CWE-862] in the mycred_update_database() handler within includes/mycred-database-upgrade.php. The function is reachable through WordPress action hooks but does not verify that the caller holds administrative capabilities such as manage_options. The vendor patch introduces the missing authorization check in changeset 3156989.
Attack Vector
Exploitation requires no credentials, no user interaction, and only network access to the target WordPress site. An attacker issues a crafted HTTP request to the WordPress endpoint that dispatches the vulnerable action, causing the plugin to execute its upgrade routine. See the WordPress MyCred Update Script changeset and the Wordfence Vulnerability Report for technical details.
No public proof-of-concept exploit is listed in Exploit-DB, and the vulnerability is not present in the CISA Known Exploited Vulnerabilities catalog.
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2024-8658
Indicators of Compromise
- Unexpected invocations of the myCred database upgrade routine recorded in web server access logs or WordPress debug logs.
- Unauthenticated HTTP requests to WordPress admin-ajax or action endpoints referencing myCred upgrade actions.
- Changes to myCred database tables (points, ranks, badges, logs) outside of a planned administrator-initiated plugin update.
Detection Strategies
- Inventory WordPress deployments and identify sites running the myCred plugin at version 2.7.3 or earlier.
- Review web access logs for anonymous POST or GET requests that trigger plugin action hooks shortly before myCred schema changes.
- Compare current myCred database schema version against the expected version for the installed plugin build to spot unauthorized upgrades.
Monitoring Recommendations
- Enable WordPress audit logging for plugin activity and database schema changes on myCred-managed tables.
- Alert on anonymous requests to WordPress action endpoints that reach plugin-controlled upgrade logic.
- Monitor outbound traffic and user-facing site behavior for anomalies consistent with tampered loyalty data.
How to Mitigate CVE-2024-8658
Immediate Actions Required
- Upgrade the myCred plugin to a version later than 2.7.3 that contains the fix from changeset 3156989.
- Restrict administrative access to WordPress with strong authentication and limit network exposure of /wp-admin where feasible.
- Audit myCred data for unexpected changes since September 2024 and restore from a trusted backup if tampering is suspected.
Patch Information
The vendor addressed the issue in the myCred plugin via changeset 3156989, which adds the missing capability check to mycred_update_database() in includes/mycred-database-upgrade.php. Site operators should update through the WordPress plugin manager or by deploying the patched release from the WordPress plugin repository changeset.
Workarounds
- Deactivate the myCred plugin until the patched version can be installed if an immediate update is not possible.
- Place a web application firewall rule in front of WordPress that blocks unauthenticated requests to the myCred upgrade action.
- Enforce IP allow-listing for WordPress administrative endpoints to reduce the attack surface for unauthenticated plugin actions.
# Example WP-CLI commands to inventory and update the vulnerable plugin
wp plugin get mycred --field=version
wp plugin update mycred
wp plugin deactivate mycred # temporary workaround if update is not yet possible
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

