Advanced Custom Fields (Free and Pro) 5.8.10 to 5.12.5 & 6.0.0 to 6.1.5 - Reflected Cross-Site Scripting via 'post_status'
Strategic Overview
- Status
- Patched in 5.12.6
- Affected Plugin
- Advanced Custom Fields Pro
- Affected Version
5.8.10 – 6.1.5 · 2 branches- CVSS
- 6.1Medium
- Weakness type
- CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
- CVE
CVE-2023-30777
At a glance
CVE-2023-30777 is a medium-severity Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in the Advanced Custom Fields Pro WordPress plugin, affecting versions 5.8.10 – 6.1.5 · 2 branches. It carries a CVSS score of 6.1 (reachable over the network; low attack complexity). Exploitation requires no authentication. The issue is fixed in version 5.12.6; sites on affected versions should update now. Disclosed May 2023, reported by Rafie Muhammad.
Vulnerability Overview
The Advanced Custom Fields (free & PRO) plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the 'post_status' parameter in versions 5.8.10 to 5.12.5 and versions 6.0.0 to 6.1.5 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a link.
Technical Analysis
The vector marks this flaw as remotely reachable over the network, with low attack complexity — no special timing or configuration is needed, and no privileges on the target site.
CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Advanced Custom Fields Pro 5.8.10 – 6.1.5 · 2 branches carries this weakness at post_status, and reaching it takes a caller who can reach the endpoint. Cross-site scripting happens when input from a request is written into a page without being escaped for the context it lands in, so the browser parses attacker-supplied text as markup or script.
Injected script runs with the privileges of whoever views the affected page, which is how these flaws turn into administrator session theft, silent account creation or persistent backdoors in page content. For Advanced Custom Fields Pro the fix is 5.12.6: builds 5.8.10 – 6.1.5 · 2 branches are affected, anything from 5.12.6 onward is not.
Remediation
Update to one of the following versions, or a newer patched version: 5.12.6, 6.1.6
How does WordSec protect against this?
The attempt arrives as an ordinary request to Advanced Custom Fields Pro: WordSec's web application firewall inspects request payloads before WordPress loads them. None of that substitutes for the fix: Advanced Custom Fields Pro 5.12.6 closes this, and updating the plugin is the step that ends it.
- Firewall
- Alerts
External References
Related records
Same weakness class
- 6.4CVE-2023-6701: Advanced Custom Fields <= 6.2.4 Stored XSS
CVE-2023-6701 - 6.1CVE-2021-24241: Advanced Custom Fields Pro <= 5.9.0 Reflected XSS
CVE-2021-24241 - 5.5CVE-2024-45429: Advanced Custom Fields <= 6.3.5 Stored XSS
CVE-2024-45429 - 4.4CVE-2024-49593: Advanced Custom Fields & Secure Custom Fields <=
CVE-2024-49593
Other vulnerabilities in Advanced Custom Fields Pro
- 9.9CVE-2024-34761: Advanced Custom Fields Pro <= 6.2.9 Code Injection
CVE-2024-34761 - 8.8CVE-2024-34762: Advanced Custom Fields Pro <= 6.2.9 LFI
CVE-2024-34762 - 7.5CVE-2021-20865: Advanced Custom Fields <= 5.10 Information Disclosure
CVE-2021-20865 - 6.5CVE-2022-23183: Advanced Custom Fields <= 5.12 Information Disclosure
CVE-2022-23183 - 6.5CVE-2021-20866: Advanced Custom Fields <= 5.10 Information Disclosure
CVE-2021-20866 - 5.4CVE-2024-37250: Advanced Custom Fields Pro Missing Authorization
CVE-2024-37250 - 5.4CVE-2024-37250: Advanced Custom Fields Pro Missing Authorization
CVE-2024-37250 - 5.1CVE-2024-9529: Advanced Custom Fields Limited Arbitrary Function Call
CVE-2024-9529
Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C