Strategic Overview
- Status
- Patched in 2.7.4
- Affected Plugin
- Simple Local Avatars
- Affected Version
<= 2.7.3- CVSS
- 8.1High
- Weakness type
- CWE-94 · Improper Control of Generation of Code ('Code Injection')
- CVE
CVE-2022-25860
At a glance
CVE-2022-25860 is a high-severity Improper Control of Generation of Code ('Code Injection') vulnerability in the Simple Local Avatars WordPress plugin, affecting versions <= 2.7.3. It carries a CVSS score of 8.1 (reachable over the network; high confidentiality, integrity, availability impact). Exploitation requires no authentication. The issue is fixed in version 2.7.4; sites on affected versions should update now. Disclosed February 2023.
Vulnerability Overview
The package simple-git is vulnerable to Remote Code Execution in versions before 3.16.0 via the clone(), pull(), push() and listRemote() methods due to improper input sanitization. This is due to an incomplete fix of CVE-2022-25912. WordPress plugins and themes may be using this package, however, they may not be vulnerable to exploitation.
Technical Analysis
The vector marks this flaw as remotely reachable over the network, and no privileges on the target site, and no interaction from a victim user. A successful exploit has high impact on confidentiality, integrity, availability — full site compromise territory.
CWE-94: Improper Control of Generation of Code ('Code Injection')
Simple Local Avatars <= 2.7.3 carries this weakness at clone(), and reaching it takes a caller who can reach the endpoint. 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 Simple Local Avatars the fix is 2.7.4: builds <= 2.7.3 are affected, anything from 2.7.4 onward is not.
Remediation
Update to version 2.7.4, or a newer patched version
How does WordSec protect against this?
The attempt arrives as an ordinary request to Simple Local Avatars: 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: Simple Local Avatars 2.7.4 closes this, and updating the plugin is the step that ends it.
- Firewall
- Scanner
- Alerts
External References
Related records
Other vulnerabilities in Simple Local Avatars
- 5.3CVE-2022-25881: http-cache-semantics Regular Expression DoS (ReDoS)
CVE-2022-25881 - 4.3CVE-2025-8482: Simple Local Avatars Authenticated (Subscriber+)
CVE-2025-8482 - 4.3CVE-2024-10786: Simple Local Avatars Authenticated (Subscriber+) User
CVE-2024-10786 - 4.3CVE-2024-43116: Simple Local Avatars <= 2.7.10 CSRF
CVE-2024-43116 - 3.7CVE-2022-25858: terser (JS Package) < 5.14.2 Denial of Service
CVE-2022-25858
Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C