5.9med
CVE-2018-20744
github.com/gofiber/fiber/v2 vulnerable to Origin Validation Error
Also known as GHSA-927h-x4qj-r242, GO-2023-1792
Published 7 y ago · modified 4 mo ago · JSON
CVSS
5.9
v3.0 · NVD
CISA KEV
No
not known exploited
EPSS
0.7%
percentile 54%
Public exploits
0
none known
Summary
The Olivier Poitrey Go CORS handler through 1.3.0 actively converts a wildcard CORS policy into reflecting an arbitrary Origin header value, which is incompatible with the CORS security design, and could lead to CORS misconfiguration security problems.
Exploit prediction (EPSS)
0.72% probability of exploitation in the next 30 days, higher than 54% of all scored CVEs.
CVSS scores
| Assigned by | Version | Score | Vector |
|---|---|---|---|
| NVD | 3.0 | 5.9 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| GitHub | 3.0 | 5.9 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| go | github.com/gofiber/fiber/v2 | >=2.0.0, <2.43.0 | 2.43.0 |
| go | github.com/rs/cors | <1.5.0 | 1.5.0 |
Classification
- Weakness
- CWE-346 Origin Validation Error
References
- securityfocus.com /bid/106834 · vdb-entry, x_refsource_BID, x_transferred
- github.com /rs/cors/issues/55 · x_refsource_MISC, x_transferred
- usenix.org /system/files/conference/usenixsecurity18/sec18-chen.pdf · x_refsource_MISC, x_transferred
- nvd.nist.gov /vuln/detail/CVE-2018-20744 · advisory
- github.com /gofiber/fiber/issues/2338 · web
- github.com /gofiber/fiber/pull/2339 · web
- github.com /rs/cors/pull/57 · web
- github.com /gofiber/fiber · package
- web.archive.org /web/20200227091122/http://www.securityfocus.com/bid/106834 · web
Sources
- CVE List: CVE-2018-20744
- GitHub Advisory: GHSA-927h-x4qj-r242
- NVD: CVE-2018-20744
- OSV: GO-2023-1792
vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.