Skip to content

Commit

Permalink
data/reports: add GO-2023-2052.yaml
Browse files Browse the repository at this point in the history
Aliases: CVE-2023-41338, GHSA-3q5p-3558-364f

Fixes #2052

Change-Id: I361ff89d8aa3adef28b78fc9a2d888260bc239a0
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/527756
LUCI-TryBot-Result: Go LUCI <[email protected]>
Reviewed-by: Zvonimir Pavlinovic <[email protected]>
  • Loading branch information
neild committed Sep 12, 2023
1 parent 85e04de commit b25afe1
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 0 deletions.
57 changes: 57 additions & 0 deletions data/osv/GO-2023-2052.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"schema_version": "1.3.1",
"id": "GO-2023-2052",
"modified": "0001-01-01T00:00:00Z",
"published": "0001-01-01T00:00:00Z",
"aliases": [
"CVE-2023-41338",
"GHSA-3q5p-3558-364f"
],
"summary": "IsFromLocal local address check can be circumvented in github.com/gofiber/fiber/v2",
"details": "The Ctx.IsFromLocal function can incorrectly report a request as being sent from localhost when the request contains an X-Forwarded-For header containing a localhost IP address.",
"affected": [
{
"package": {
"name": "github.com/gofiber/fiber/v2",
"ecosystem": "Go"
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.49.2-0.20230906112033-b8c9ede6efa2"
}
]
}
],
"ecosystem_specific": {
"imports": [
{
"path": "github.com/gofiber/fiber/v2",
"symbols": [
"Ctx.IsFromLocal",
"Ctx.isLocalHost"
]
}
]
}
}
],
"references": [
{
"type": "ADVISORY",
"url": "https://github.com/gofiber/fiber/security/advisories/GHSA-3q5p-3558-364f"
},
{
"type": "FIX",
"url": "https://github.com/gofiber/fiber/commit/b8c9ede6efa231116c4bd8bb9d5e03eac1cb76dc"
}
],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2023-2052"
}
}
24 changes: 24 additions & 0 deletions data/reports/GO-2023-2052.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
id: GO-2023-2052
modules:
- module: github.com/gofiber/fiber/v2
versions:
- fixed: 2.49.2-0.20230906112033-b8c9ede6efa2
vulnerable_at: 2.49.1
packages:
- package: github.com/gofiber/fiber/v2
symbols:
- Ctx.isLocalHost
derived_symbols:
- Ctx.IsFromLocal
summary: IsFromLocal local address check can be circumvented in github.com/gofiber/fiber/v2
description: |-
The Ctx.IsFromLocal function can incorrectly report a request as being sent from
localhost when the request contains an X-Forwarded-For header containing a
localhost IP address.
cves:
- CVE-2023-41338
ghsas:
- GHSA-3q5p-3558-364f
references:
- advisory: https://github.com/gofiber/fiber/security/advisories/GHSA-3q5p-3558-364f
- fix: https://github.com/gofiber/fiber/commit/b8c9ede6efa231116c4bd8bb9d5e03eac1cb76dc

0 comments on commit b25afe1

Please sign in to comment.