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-5674 Overview
CVE-2024-5674 affects the Newsletter API v1 and v2 addon plugin for WordPress. The vulnerability stems from a PHP type juggling flaw in the check_api_key function. All plugin versions up to and including 2.4.5 are affected. Unauthenticated attackers can list, create, or delete newsletter subscribers on vulnerable sites. The flaw only impacts sites running PHP versions below 8.0, where loose comparison operators coerce types in insecure ways. The issue is classified under [CWE-862] Missing Authorization.
Critical Impact
Unauthenticated attackers can manage newsletter subscribers through the plugin's API, exposing subscriber data and enabling list manipulation on WordPress sites running PHP below 8.0.
Affected Products
- Newsletter API v1 and v2 addon plugin for WordPress (all versions ≤ 2.4.5)
- WordPress sites running PHP versions below 8.0
- Sites with the Newsletter plugin API addon enabled
Discovery Timeline
- 2024-06-12 - CVE-2024-5674 published to the National Vulnerability Database (NVD)
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-5674
Vulnerability Analysis
The vulnerability resides in the check_api_key function used by the Newsletter plugin's API addon. The function validates the API key submitted by a client against the stored key. In vulnerable versions, the comparison uses PHP's loose equality operator (==) rather than strict equality (===). Loose comparison in PHP versions below 8.0 performs type juggling. When a numeric string meets an integer or when specific scientific-notation strings are compared, PHP converts both operands to numbers before comparing. This behavior allows crafted input values to equal the stored key without matching its actual characters. The result is an authentication bypass that exposes subscriber management endpoints.
Root Cause
The root cause is unsafe use of PHP loose comparison during API key validation. Legacy PHP string-to-number coercion behavior allows mismatched values to evaluate as equal. PHP 8.0 corrected this comparison behavior, which is why sites on PHP 8.0 or later are not affected. The plugin additionally lacks a strict type check and a constant-time comparison routine such as hash_equals.
Attack Vector
The attack vector is network-based and requires no authentication or user interaction. An attacker sends HTTP requests to the plugin's exposed API endpoints with a crafted key parameter designed to exploit PHP type juggling. Successful requests permit listing subscribers, creating subscribers, or deleting subscribers. The vulnerability manifests only on servers running PHP below 8.0.
For technical details on the API endpoints affected, see the Newsletter Plugin API Documentation and the Wordfence Vulnerability Report.
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-5674
Indicators of Compromise
- Unexpected HTTP requests to Newsletter plugin API endpoints with unusual key values, including numeric-only or scientific-notation strings.
- Unexplained creation or deletion of subscriber records in the Newsletter plugin database tables.
- Anonymous requests originating from unfamiliar IP addresses hitting /wp-admin/admin-ajax.php or Newsletter-specific REST routes.
Detection Strategies
- Review web server access logs for requests to Newsletter API endpoints that include a key parameter with non-standard formatting.
- Audit the Newsletter plugin version across all WordPress installations and flag any instance at version 2.4.5 or earlier.
- Compare subscriber list snapshots over time to detect unauthorized additions, deletions, or enumeration patterns.
Monitoring Recommendations
- Enable WordPress audit logging for subscriber create and delete operations performed through the Newsletter API.
- Monitor PHP runtime versions across the hosting fleet and alert on servers running PHP below 8.0.
- Alert on bursts of API requests to Newsletter endpoints from a single source IP within short time windows.
How to Mitigate CVE-2024-5674
Immediate Actions Required
- Update the Newsletter API v1 and v2 addon plugin to a version above 2.4.5 on every affected WordPress site.
- Upgrade PHP to version 8.0 or later, which eliminates the exploitable type juggling behavior.
- Rotate the Newsletter plugin API key after patching, assuming the previous key may be exposed.
- Review subscriber lists for unauthorized changes and restore from backup if tampering is confirmed.
Patch Information
The vendor has released a fixed version of the Newsletter API addon above 2.4.5. Site administrators should apply the latest plugin update through the WordPress plugin dashboard. Refer to the Wordfence Vulnerability Report for patch verification details.
Workarounds
- Disable the Newsletter API v1 and v2 addon plugin until the host can be patched or PHP can be upgraded.
- Restrict access to the Newsletter API endpoints with web application firewall rules that require an IP allowlist.
- Block requests to Newsletter API endpoints that contain key parameters with numeric-only or scientific-notation values.
# Example WAF rule to block numeric-only API key values at Newsletter endpoints
# ModSecurity-style pseudo-rule
SecRule REQUEST_URI "@contains /?page=newsletter" \
"chain,deny,status:403,id:1005674,msg:'Possible CVE-2024-5674 type juggling attempt'"
SecRule ARGS:key "@rx ^[0-9]+(e[0-9]+)?$"
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

