CVE-2024-9529

Advanced Custom Fields <= 6.3.8 - Authenticated (Admin+) Limited Arbitrary Function Call

2024-10-07 00:00
Automattic

Strategic Overview

Status
Patched in 6.3.9
Affected Version
<= 6.3.8
CVSS
5.1Medium
Weakness type
CWE-94 · Improper Control of Generation of Code ('Code Injection')
CVE
CVE-2024-9529
View all Advanced Custom Fields Pro vulnerabilities

At a glance

CVE-2024-9529 is a medium-severity Improper Control of Generation of Code ('Code Injection') vulnerability in the Advanced Custom Fields Pro WordPress plugin, affecting versions <= 6.3.8. It carries a CVSS score of 5.1 (reachable over the network). Exploitation requires an authenticated account at Admin level or above. The issue is fixed in version 6.3.9; sites on affected versions should update now. Disclosed October 2024, reported by Automattic.

Vulnerability Overview

The Advanced Custom Fields (ACF) plugin for WordPress is vulnerable to limited arbitrary function calls via the 'register_meta_box_cb' and 'meta_box_cb' parameters in all versions up to, and including, 6.3.8 (excluding 6.3.6.2) due to insufficient input validation on those parameters. This makes it possible for authenticated attackers, with administrator-level access, to inject arbitrary functions, like WordPress functions, in custom post types that will execute whenever a user accesses the injected post type. This can be leveraged to trick other users like administrators accessing posts into performing unauthorized actions through functions, and is not a very serious risk for the vast majority of site owners. Please follow the reference listed in this vulnerability record for instructions on how to update to the latest version of ACF that patches this issue and ensures accessibility to updates moving forward. Please note this issue was partially patched in 6.3.8 and 6.3.6.1 - 6.3.6.2, however, was hardened further in 6.3.6.3 and 6.3.9.

Technical Analysis

The vector marks this flaw as remotely reachable over the network.

CWE-94: Improper Control of Generation of Code ('Code Injection')

Advanced Custom Fields Pro <= 6.3.8 carries this weakness at register_meta_box_cb, and reaching it takes an account at Admin level or above. Code injection means input from a request reaches a language construct that evaluates code, so the attacker's text is executed rather than treated as data.

The injected code runs with the web server's privileges, giving the attacker the same access to the database and filesystem as WordPress itself. For Advanced Custom Fields Pro the fix is 6.3.9: builds <= 6.3.8 are affected, anything from 6.3.9 onward is not.

Remediation

Update to version 6.3.9, or a newer patched version

How does WordSec protect against this?

An attacker needs Admin access first, so the firewall sees the attempt as traffic from a logged-in account: 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 Pro 6.3.9 closes this, and updating the plugin is the step that ends it.

  • Firewall
  • Scanner
  • Alerts

External References

Related records

Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C