CVE-2024-2242 Contact Form 7 <= 5.9 - Reflected Cross-Site Scripting
Unauthenticated attackers can inject arbitrary web scripts via the active-tab parameter, requiring user interaction to execute.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2024-2242?
CVE-2024-2242 is a medium-severity cross-site scripting vulnerability in rocklobsterinc Contact Form 7, published on 13 Mar 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
The Contact Form 7 plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the ‘active-tab’ parameter in all versions up to, and including, 5.9 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.
Weakness: CWE-79
Which versions are affected by CVE-2024-2242?
It affects 1 product.
Products include Rocklobster Contact Form 7.
How do I fix CVE-2024-2242?
No fix has been published for CVE-2024-2242 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2024-2242 being exploited?
There is no known exploitation of CVE-2024-2242 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in rocklobsterinc Contact Form 7
- CVE-2020-35489 File upload in n/a
- CVE-2018-20979 Privilege escalation in n/a
- CVE-2021-24159 Contact Form 7 Style <= 3.1.9 - Cross-Site Request Forgery to Stored Cross-Site Scripting
- CVE-2023-6449 Contact Form 7 <= 5.8.3 - Authenticated (Editor+) Arbitrary File Upload
- CVE-2024-4704 Contact Form 7 < 5.9.5 - Unauthenticated Open Redirect
Sources
Also known as GHSA-4844-58hp-rqwx.