CVE-2024-58342 Details
Description
XenForo before 2.2.17 and 2.3.1 allows open redirect via a specially crafted URL. The getDynamicRedirect() function does not adequately validate the redirect target, allowing attackers to redirect users to arbitrary external sites using crafted URLs containing newlines, user credentials, or host mismatches.
An open redirect vulnerability has been identified in XenForo versions prior to 2.2.17 and 2.3.0. The issue arises in the getDynamicRedirect() function, which fails to properly validate redirect targets. This flaw allows attackers to redirect users to arbitrary external sites using specially crafted URLs that include newlines, user credentials, or host mismatches.
Users are advised to upgrade to XenForo 2.2.17 or 2.3.1. For those on XenForo 2.2, a manual patch is available by editing the src/XF/App.php file. Instructions for applying the patch are included in the XenForo 2.2.17 release announcement.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 1, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://www.vulncheck.com/advisories/xenforo-open-redirect-via-getdynamicredirect | [email protected] | Third Party Advisory |
| https://xenforo.com/community/threads/xenforo-2-2-17-released-security-fix.227797/ | [email protected] | Release Notes |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-601 | URL Redirection to Untrusted Site ('Open Redirect') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| xenforo xenforo | < 2.2.17 2.3.0 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 1, 2026 | Initial Analysis | [email protected] |
| Apr 1, 2026 | New CVE Received | [email protected] |