Skip to content

Update module github.com/valyala/fasthttp to v1.34.0 [SECURITY] - #5

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
renovate/go-github.com-valyala-fasthttp-vulnerability
Open

Update module github.com/valyala/fasthttp to v1.34.0 [SECURITY]#5
github-actions[bot] wants to merge 1 commit into
mainfrom
renovate/go-github.com-valyala-fasthttp-vulnerability

Conversation

@github-actions

Copy link
Copy Markdown

This PR contains the following updates:

Package Change Age Confidence
github.com/valyala/fasthttp v1.19.0v1.34.0 age confidence

Path traversal in github.com/valyala/fasthttp

CVE-2022-21221 / GHSA-fx95-883v-4q4h / GO-2022-0355 / SNYK-GOLANG-GITHUBCOMVALYALAFASTHTTP-2407866

More information

Details

The package github.com/valyala/fasthttp before 1.34.0 is vulnerable to Directory Traversal via the ServeFile function, due to improper sanitization. It is possible to be exploited by using a backslash %5c character in the path. Note: This security issue impacts Windows users only.

Severity

  • CVSS Score: 7.5 / 10 (High)
  • Vector String: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


Path traversal in github.com/valyala/fasthttp

CVE-2022-21221 / GHSA-fx95-883v-4q4h / GO-2022-0355 / SNYK-GOLANG-GITHUBCOMVALYALAFASTHTTP-2407866

More information

Details

The fasthttp.FS request handler is vulnerable to directory traversal attacks on Windows systems, and can serve files from outside the provided root directory.

URL path normalization does not handle Windows path separators (backslashes), permitting an attacker to construct requests with relative paths.

Severity

Unknown

References

This data is provided by OSV and the Go Vulnerability Database (CC-BY 4.0).


Release Notes

valyala/fasthttp (github.com/valyala/fasthttp)

v1.34.0

Compare Source

  • 59f94a3 Update github.com/klauspost/compress (#​1237) (Mikhail Faraponov)
  • 62c15a5 Don't reset RequestCtx.s (#​1234) (Erik Dubbelboer)
  • 7670c6e Fix windows tests (#​1235) (Erik Dubbelboer)
  • f54ffa1 feature: Keep the memory usage of the service at a stable level (#​1216) (Rennbon)
  • 15262ec Warn about unsafe ServeFile usage (#​1228) (Erik Dubbelboer)
  • 1116d03 Fix panic while reading invalid trailers (Erik Dubbelboer)
  • 856ca8e Update dependencies (#​1230) (Mikhail Faraponov)
  • 6b5bc7b Add windows support to normalizePath (Erik Dubbelboer)
  • f0b0cfe Don't log ErrBadTrailer by default (Erik Dubbelboer)
  • 6937fee fix: (useless check), skip Response body if http method HEAD (#​1224) (Pavel Burak)
  • b85d2a2 Fix http proxy behavior (#​1221) (Aoang)
  • ad8a07a RequestHeader support set no default ContentType (#​1218) (Jack.Ju)
  • c94581c support configure HostClient (#​1214) (lin longhjui)
  • 632e222 Client examples (#​1208) (Sergey Ponomarev)
  • 6a3cc23 uri_test.go use example.com for clearness (#​1212) (Sergey Ponomarev)
  • 9d665e0 Update dependencies (#​1204) (Mikhail Faraponov)
  • 8d7953e Fix scheme check for not yet parsed requests (#​1203) (ArminBTVS)

v1.33.0

Compare Source

v1.32.0

Compare Source

v1.31.0

Compare Source

v1.30.0

Compare Source

v1.29.0

Compare Source

v1.28.0

Compare Source

  • 1504a84 Increase TestHostClientMaxConnWaitTimeoutSuccess timeout (Erik Dubbelboer)
  • f6560be Flush buffered responses if we have to wait for the next request (#​1050) (Erik Dubbelboer)

v1.27.0

Compare Source

  • 874c8ca Increase timeouts for Windows github actions (Erik Dubbelboer)
  • 924a63f Increase TestServerTLSReadTimeout timeout (Erik Dubbelboer)
  • 410bde6 Fix race condition in TestPipelineClientIssue832 (Erik Dubbelboer)
  • 9f2c636 Lower go test time (Erik Dubbelboer)
  • 4ed933a fix: set content-length properly when StreanRequestBody was enabled (#​1049) (Meng)
  • cec9953 Add IdleTimeout to Shutdown documentation (Erik Dubbelboer)
  • c12a061 TCPDialer :: DNSCacheDuration option (#​1046) (Ertuğrul Emre Ertekin)
  • 87fc958 Run go test on github actions (#​1047) (Erik Dubbelboer)
  • be13b50 Defined Transport for the client (#​1045) (Darío)
  • b8b065b Don't unwrap io.LimitedReader (Erik Dubbelboer)

v1.26.0

Compare Source

  • 6233fbc Fix header .Add functions (#​1036) (Erik Dubbelboer)
  • 5bb5cfc Remove unused peekRawHeader (Erik Dubbelboer)
  • 7d13e18 Add Request.TLS and try to avoid a new alloc if Request.Header is already allocated (#​1034) (Sergio Andrés Virviescas Santana)
  • b433ecf Make sure to reset the userValues always and at the exact time (#​1027) (Sergio Andrés Virviescas Santana)
  • a18c632 Fix cookie panic (Erik Dubbelboer)
  • f3e4118 Don't recommend Go 1.13 (Erik Dubbelboer)

v1.25.0

Compare Source

  • fa3e5d8 Run test with go 1.16.X (#​1028) (Sergio Andrés Virviescas Santana)
  • ffa0cab Use proper content-type when it is not present (#​1023) (MoreFreeze)
  • 04cde74 feature: add ConvertRequest func (#​1024) (Nícolas Barbosa)
  • 5898006 Upgrade dependencies and tidy (#​1029) (Sergio Andrés Virviescas Santana)
  • 097fa05 Fix ignoreBody still set content length (#​1022) (MoreFreeze)
  • b2f111b Fix(adaptor): Fixed an issue where the adapter did not convert all (#​1021) (Juan Chan)
  • 19fcd40 Fix chunked streaming (#​1015) (Roman Khimov)

v1.24.0

Compare Source

v1.23.0

Compare Source

  • 2a6f7db Adding support for securing error logs (#​1001) (Daniel Firsht)
  • e61c9d5 Improve Client/HostClient pooling when many HostClient structs created and removed during program execution (#​1000) (Mikhail Faraponov)
  • a583006 Use bytes.IndexByte instead of bytes.Index for single byte lookup (#​999) (Mike Faraponov)
  • 860c345 Fix unexpected panic when calling Do of a PipelineClient (#​997) (blanet)
  • 0cd7349 ImmediateHeaderFlush when no body (#​995) (Vladimir Shteinman)
  • 02e0722 Add PipelineClient name (#​994) (kiyon)
  • 1a7995b format err info (#​989) (peakle)
  • f40ea7e Improve socks proxy (#​990) (kiyon)
  • 34fa9a6 Add DisableHeaderNamesNormalizing to PipelineClient (#​991) (kiyon)

v1.22.0

Compare Source

v1.21.0

Compare Source

v1.20.0

Compare Source

  • a88030b fix gracefilly shutdown bug, issue #​958 (#​960) (AlphaBaby)
  • 1494fdc Fix clientGetURLDeadline (Erik Dubbelboer)
  • 0956208 Add request body streaming. Fixes #​622 (#​911) (Kirill Danshin)
  • fbe6a2d Add fasthttp.GenerateTestCertificate and use in tests (Erik Dubbelboer)
  • 838d3ab Allow concurrent ServeTLS (Erik Dubbelboer)
  • 3cec26d Allow stopping FS handler cleanup gorountine (#​942) (Erik Dubbelboer)
  • ed1cedd Fix race condition in Client.DoTimeout (Erik Dubbelboer)
  • 5661df8 Improve documentation about DelClientCookie which related with #​951. (#​956) (kiyon)
  • b4b40e9 Do not start connsCleaner on SetConnectionClosed requests. (#​950) (Mike Faraponov)
  • 70e00dc Ignore empty Transfer-Encoding headers (Erik Dubbelboer)

Configuration

📅 Schedule: (in timezone America/Toronto)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate CLI.

@github-actions

Copy link
Copy Markdown
Author

ℹ️ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 3 additional dependencies were updated

Details:

Package Change
github.com/andybalholm/brotli v1.0.1 -> v1.0.4
github.com/klauspost/compress v1.11.7 -> v1.15.0
golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4 -> v0.0.0-20220227234510-4e6760a101f9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants