9.8
CRITICAL
CVE-2024-25124
Fiber Insecure CORS Configuration Vulnerability
Description

Fiber is a web framework written in go. Prior to version 2.52.1, the CORS middleware allows for insecure configurations that could potentially expose the application to multiple CORS-related vulnerabilities. Specifically, it allows setting the Access-Control-Allow-Origin header to a wildcard (`*`) while also having the Access-Control-Allow-Credentials set to true, which goes against recommended security best practices. The impact of this misconfiguration is high as it can lead to unauthorized access to sensitive user data and expose the system to various types of attacks listed in the PortSwigger article linked in the references. Version 2.52.1 contains a patch for this issue. As a workaround, users may manually validate the CORS configurations in their implementation to ensure that they do not allow a wildcard origin when credentials are enabled. The browser fetch api, as well as browsers and utilities that enforce CORS policies, are not affected by this.

INFO

Published Date :

Feb. 21, 2024, 9:15 p.m.

Last Modified :

Feb. 5, 2025, 10:03 p.m.

Remotely Exploitable :

Yes !

Impact Score :

5.9

Exploitability Score :

3.9
Affected Products

The following products are affected by CVE-2024-25124 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Gofiber fiber
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2024-25124.

URL Resource
http://blog.portswigger.net/2016/10/exploiting-cors-misconfigurations-for.html Exploit Third Party Advisory
https://codeql.github.com/codeql-query-help/javascript/js-cors-misconfiguration-for-credentials Technical Description
https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSNotSupportingCredentials Technical Description
https://fetch.spec.whatwg.org/#cors-protocol-and-credentials Technical Description
https://github.com/gofiber/fiber/commit/f0cd3b44b086544a37886232d0530601f2406c23 Patch
https://github.com/gofiber/fiber/releases/tag/v2.52.1 Release Notes
https://github.com/gofiber/fiber/security/advisories/GHSA-fmg4-x8pw-hjhg Exploit Vendor Advisory
https://saturncloud.io/blog/cors-cannot-use-wildcard-in-accesscontrolalloworigin-when-credentials-flag-is-true Broken Link
http://blog.portswigger.net/2016/10/exploiting-cors-misconfigurations-for.html Exploit Third Party Advisory
https://codeql.github.com/codeql-query-help/javascript/js-cors-misconfiguration-for-credentials Technical Description
https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSNotSupportingCredentials Technical Description
https://fetch.spec.whatwg.org/#cors-protocol-and-credentials Technical Description
https://github.com/gofiber/fiber/commit/f0cd3b44b086544a37886232d0530601f2406c23 Patch
https://github.com/gofiber/fiber/releases/tag/v2.52.1 Release Notes
https://github.com/gofiber/fiber/security/advisories/GHSA-fmg4-x8pw-hjhg Exploit Vendor Advisory
https://saturncloud.io/blog/cors-cannot-use-wildcard-in-accesscontrolalloworigin-when-credentials-flag-is-true Broken Link

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2024-25124 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2024-25124 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Feb. 05, 2025

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    Added CWE NIST CWE-346
    Added CPE Configuration OR *cpe:2.3:a:gofiber:fiber:*:*:*:*:*:go:*:* versions up to (excluding) 2.52.1
    Changed Reference Type http://blog.portswigger.net/2016/10/exploiting-cors-misconfigurations-for.html No Types Assigned http://blog.portswigger.net/2016/10/exploiting-cors-misconfigurations-for.html Exploit, Third Party Advisory
    Changed Reference Type http://blog.portswigger.net/2016/10/exploiting-cors-misconfigurations-for.html No Types Assigned http://blog.portswigger.net/2016/10/exploiting-cors-misconfigurations-for.html Exploit, Third Party Advisory
    Changed Reference Type https://codeql.github.com/codeql-query-help/javascript/js-cors-misconfiguration-for-credentials No Types Assigned https://codeql.github.com/codeql-query-help/javascript/js-cors-misconfiguration-for-credentials Technical Description
    Changed Reference Type https://codeql.github.com/codeql-query-help/javascript/js-cors-misconfiguration-for-credentials No Types Assigned https://codeql.github.com/codeql-query-help/javascript/js-cors-misconfiguration-for-credentials Technical Description
    Changed Reference Type https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSNotSupportingCredentials No Types Assigned https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSNotSupportingCredentials Technical Description
    Changed Reference Type https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSNotSupportingCredentials No Types Assigned https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSNotSupportingCredentials Technical Description
    Changed Reference Type https://fetch.spec.whatwg.org/#cors-protocol-and-credentials No Types Assigned https://fetch.spec.whatwg.org/#cors-protocol-and-credentials Technical Description
    Changed Reference Type https://fetch.spec.whatwg.org/#cors-protocol-and-credentials No Types Assigned https://fetch.spec.whatwg.org/#cors-protocol-and-credentials Technical Description
    Changed Reference Type https://github.com/gofiber/fiber/commit/f0cd3b44b086544a37886232d0530601f2406c23 No Types Assigned https://github.com/gofiber/fiber/commit/f0cd3b44b086544a37886232d0530601f2406c23 Patch
    Changed Reference Type https://github.com/gofiber/fiber/commit/f0cd3b44b086544a37886232d0530601f2406c23 No Types Assigned https://github.com/gofiber/fiber/commit/f0cd3b44b086544a37886232d0530601f2406c23 Patch
    Changed Reference Type https://github.com/gofiber/fiber/releases/tag/v2.52.1 No Types Assigned https://github.com/gofiber/fiber/releases/tag/v2.52.1 Release Notes
    Changed Reference Type https://github.com/gofiber/fiber/releases/tag/v2.52.1 No Types Assigned https://github.com/gofiber/fiber/releases/tag/v2.52.1 Release Notes
    Changed Reference Type https://github.com/gofiber/fiber/security/advisories/GHSA-fmg4-x8pw-hjhg No Types Assigned https://github.com/gofiber/fiber/security/advisories/GHSA-fmg4-x8pw-hjhg Exploit, Vendor Advisory
    Changed Reference Type https://github.com/gofiber/fiber/security/advisories/GHSA-fmg4-x8pw-hjhg No Types Assigned https://github.com/gofiber/fiber/security/advisories/GHSA-fmg4-x8pw-hjhg Exploit, Vendor Advisory
    Changed Reference Type https://saturncloud.io/blog/cors-cannot-use-wildcard-in-accesscontrolalloworigin-when-credentials-flag-is-true No Types Assigned https://saturncloud.io/blog/cors-cannot-use-wildcard-in-accesscontrolalloworigin-when-credentials-flag-is-true Broken Link
    Changed Reference Type https://saturncloud.io/blog/cors-cannot-use-wildcard-in-accesscontrolalloworigin-when-credentials-flag-is-true No Types Assigned https://saturncloud.io/blog/cors-cannot-use-wildcard-in-accesscontrolalloworigin-when-credentials-flag-is-true Broken Link
  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference http://blog.portswigger.net/2016/10/exploiting-cors-misconfigurations-for.html
    Added Reference https://codeql.github.com/codeql-query-help/javascript/js-cors-misconfiguration-for-credentials
    Added Reference https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSNotSupportingCredentials
    Added Reference https://fetch.spec.whatwg.org/#cors-protocol-and-credentials
    Added Reference https://github.com/gofiber/fiber/commit/f0cd3b44b086544a37886232d0530601f2406c23
    Added Reference https://github.com/gofiber/fiber/releases/tag/v2.52.1
    Added Reference https://github.com/gofiber/fiber/security/advisories/GHSA-fmg4-x8pw-hjhg
    Added Reference https://saturncloud.io/blog/cors-cannot-use-wildcard-in-accesscontrolalloworigin-when-credentials-flag-is-true
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Received by [email protected]

    Feb. 21, 2024

    Action Type Old Value New Value
    Added Description Fiber is a web framework written in go. Prior to version 2.52.1, the CORS middleware allows for insecure configurations that could potentially expose the application to multiple CORS-related vulnerabilities. Specifically, it allows setting the Access-Control-Allow-Origin header to a wildcard (`*`) while also having the Access-Control-Allow-Credentials set to true, which goes against recommended security best practices. The impact of this misconfiguration is high as it can lead to unauthorized access to sensitive user data and expose the system to various types of attacks listed in the PortSwigger article linked in the references. Version 2.52.1 contains a patch for this issue. As a workaround, users may manually validate the CORS configurations in their implementation to ensure that they do not allow a wildcard origin when credentials are enabled. The browser fetch api, as well as browsers and utilities that enforce CORS policies, are not affected by this.
    Added Reference GitHub, Inc. https://github.com/gofiber/fiber/security/advisories/GHSA-fmg4-x8pw-hjhg [No types assigned]
    Added Reference GitHub, Inc. https://github.com/gofiber/fiber/commit/f0cd3b44b086544a37886232d0530601f2406c23 [No types assigned]
    Added Reference GitHub, Inc. https://codeql.github.com/codeql-query-help/javascript/js-cors-misconfiguration-for-credentials [No types assigned]
    Added Reference GitHub, Inc. https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSNotSupportingCredentials [No types assigned]
    Added Reference GitHub, Inc. https://fetch.spec.whatwg.org/#cors-protocol-and-credentials [No types assigned]
    Added Reference GitHub, Inc. https://github.com/gofiber/fiber/releases/tag/v2.52.1 [No types assigned]
    Added Reference GitHub, Inc. https://saturncloud.io/blog/cors-cannot-use-wildcard-in-accesscontrolalloworigin-when-credentials-flag-is-true [No types assigned]
    Added Reference GitHub, Inc. http://blog.portswigger.net/2016/10/exploiting-cors-misconfigurations-for.html [No types assigned]
    Added CWE GitHub, Inc. CWE-346
    Added CWE GitHub, Inc. CWE-942
    Added CVSS V3.1 GitHub, Inc. AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2024-25124 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2024-25124 weaknesses.

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability
© cvefeed.io
Latest DB Update: May. 23, 2025 9:08