CVE-2024-12238: Ninja Forms - Template Injection
- Cve: CVE-2024-12238
- Name: Ninja Forms - Template Injection
- Description: The The Ninja Forms – The Contact Form Builder That Grows With You plugin for WordPress is vulnerable to arbitrary shortcode execution in all versions up to, and including, 3.8.22. This is due to the software allowing users to execute an action that does not properly validate a value before running do_shortcode. This makes it possible for authenticated attackers, with Subscriber-level access and above, to execute arbitrary shortcodes.
- Impact: Authenticated attackers can execute arbitrary shortcodes, potentially leading to code execution or privilege escalation.
- Remediation: Update to the latest version of Ninja Forms plugin, version 3.8.23 or later.
- Vulnerability type: template_injection
- Vulnerability impact: remote_code_execution, privilege_escalation
- Requirement type: logged_in
- Requirements: Attacker needs to be logged in with Subscriber-level access or higher
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.3
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
- Epss score: 0.00494
- Epss percentile: 0.42959
- Assignee: [email protected]
- Published at: 2024-12-29T06:15:05Z
- Age in days: 695
- Modified at: 2026-06-17T06:59:18Z
- Patch available: yes
- References total: 2
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-12238
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-94 | Improper Control of Generation of Code |
References
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| ninjaforms:ninja_forms | < 3.8.23 | no | nvd | /v1/products/ninjaforms/ninja_forms |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Exposed hosts: 42
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports