Advanced Custom Fields <= 3.5.1 - Remote Code Execution via Remote File Inclusion
Strategic Overview
- Status
- Patched in 3.5.2
- Affected Plugin
- Advanced Custom Fields (ACF®)
- Affected Version
<= 3.5.1- CVSS
- 3.8Low
- Weakness type
- CWE-98 · Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion')
- CVE
CVE-2012-10025
At a glance
CVE-2012-10025 is a low-severity Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in the Advanced Custom Fields (ACF®) WordPress plugin, affecting versions <= 3.5.1. It carries a CVSS score of 3.8 (reachable over the network; low attack complexity). The issue is fixed in version 3.5.2; sites on affected versions should update now. Disclosed January 2013.
Vulnerability Overview
Advanced Custom Fields up to 3.5.1 is vulnerable to Remote Code Execution. The vulnerability allows for remote file inclusion and remote code execution via the export.php script. This exploit only works when the php option allow_url_include is set to On (Default Off).
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 interaction from a victim user.
CWE-98: Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion')
Reaching this weakness in Advanced Custom Fields (ACF®) <= 3.5.1 takes a caller who can reach the endpoint. PHP file inclusion means a path used by include or require is built from request data, so the file that gets executed is under the caller's influence.
Including an attacker-influenced file executes its contents, which is why this class is routinely chained with an upload or log-poisoning step to reach code execution. For Advanced Custom Fields (ACF®) the fix is 3.5.2: builds <= 3.5.1 are affected, anything from 3.5.2 onward is not.
Remediation
Update to version 3.5.2, or a newer patched version
How does WordSec protect against this?
The attempt arrives as an ordinary request to Advanced Custom Fields (ACF®): WordSec's web application firewall inspects request payloads before WordPress loads them. Classes like this one can leave something behind, so the staged malware scanner is the second half: it looks for dropped files and modified code rather than for the request that created them. None of that substitutes for the fix: Advanced Custom Fields (ACF®) 3.5.2 closes this, and updating the plugin is the step that ends it.
- Firewall
- Scanner
- Alerts
External References
Related records
Other vulnerabilities in Advanced Custom Fields (ACF®)
- 8.8CVE-2023-1196: Advanced Custom Fields <= 6.0.7 PHP Object Injection
CVE-2023-1196 - 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 - 6.4CVE-2023-6701: Advanced Custom Fields <= 6.2.4 Stored XSS
CVE-2023-6701 - 6.1CVE-2023-30777: Advanced Custom Fields 5.8.10… Reflected XSS
CVE-2023-30777 - 6.1CVE-2020-36172: Advanced Custom Fields <= 5.8.11 Cross-Site Scripting
CVE-2020-36172 - 5.5CVE-2024-45429: Advanced Custom Fields <= 6.3.5 Stored XSS
CVE-2024-45429
Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C