CVE-2024-51479
Authorization bypass in Next.js
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
0Exploited in Wild
-Decision
Descriptions
Next.js is a React framework for building full-stack web applications. In affected versions if a Next.js application is performing authorization in middleware based on pathname, it was possible for this authorization to be bypassed for pages directly under the application's root directory. For example: * [Not affected] `https://example.com/` * [Affected] `https://example.com/foo` * [Not affected] `https://example.com/foo/bar`. This issue is patched in Next.js `14.2.15` and later. If your Next.js application is hosted on Vercel, this vulnerability has been automatically mitigated, regardless of Next.js version. There are no official workarounds for this vulnerability.
A flaw was found in the Next.js framework. An incorrectly sanitized query parameter can cause an invalid routing condition, resulting in the wrong route being served to users and allowing authorization bypass when an application is performing path-based middleware authorization.
The 1.1.2 release of Red Hat Trusted Artifact Signer OpenShift Operator.
CVSS Scores
SSVC
- Decision:Attend
Timeline
- 2024-10-28 CVE Reserved
- 2024-12-17 CVE Published
- 2024-12-17 CVE Updated
- 2025-04-15 EPSS Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
- ---------- First Exploit
CWE
- CWE-285: Improper Authorization
CAPEC
References (4)
URL | Tag | Source |
---|---|---|
https://github.com/vercel/next.js/releases/tag/v14.2.15 | X_refsource_misc | |
https://github.com/vercel/next.js/security/advisories/GHSA-7gfc-8cq8-jh5f | X_refsource_confirm |
URL | Date | SRC |
---|
URL | Date | SRC |
---|
URL | Date | SRC |
---|---|---|
https://access.redhat.com/security/cve/CVE-2024-51479 | 2025-04-10 | |
https://bugzilla.redhat.com/show_bug.cgi?id=2332884 | 2025-04-10 |
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Vercel Search vendor "Vercel" | Next.js Search vendor "Vercel" for product "Next.js" | >= 9.5.5 < 14.2.15 Search vendor "Vercel" for product "Next.js" and version " >= 9.5.5 < 14.2.15" | en |
Affected
|