Build 2060 failure

vuln on main · 5f2adce375 · queued 2026-11-13 03:00 UTC · finished 2026-11-13 03:01 UTC · ran 44s · Jump to failure

setup
$ git clone ssh://git@127.0.0.1/krz/gitbay.git (5f2adce375)
step 1/3 go run golang.org/x/vuln/cmd/govulncheck@latest ./... failed
go: downloading golang.org/x/vuln v1.9.0
go: downloading golang.org/x/telemetry v0.0.0-20261010193011-f71dc92da45e
go: downloading golang.org/x/mod v0.42.0
go: downloading golang.org/x/tools v0.52.0
go: downloading golang.org/x/sync v0.24.0
=== Symbol Results ===

Vulnerability #1: GO-2026-6859
    HTTP/1 server crash due to MaxBytesReader header race in net/http
  More info: https://pkg.go.dev/vuln/GO-2026-6859
  Standard library
    Found in: net/http@go1.27.3
    Fixed in: net/http@go1.27.4
    Example traces found:
      #1: internal/cliconfig/cliconfig.go:83:38: cliconfig.Save calls toml.Encoder.Encode, which eventually calls http.CanonicalHeaderKey
      #2: internal/push/apns.go:155:24: push.Client.Send calls http.Client.Do
      #3: internal/httpd/compress.go:57:7: httpd.gzipWriter.decide calls http.Header.Add
      #4: internal/httpd/compress.go:55:7: httpd.gzipWriter.decide calls http.Header.Del
      #5: internal/push/apns.go:168:25: push.Client.Send calls http.Header.Get
      #6: internal/push/apns.go:149:16: push.Client.Send calls http.Header.Set
      #7: internal/control/ghimport.go:117:29: control.ghClient.get calls http.NewRequest
      #8: internal/push/apns.go:145:40: push.Client.Send calls http.NewRequestWithContext
      #9: internal/imapc/imapc.go:93:25: imapc.Dial calls tls.Conn.Handshake, which eventually calls http.ParseTime
      #10: internal/httpd/builds.go:411:22: httpd.htmlStream.Write calls http.ResponseController.Flush
      #11: internal/httpd/routes.go:263:17: httpd.Server.Handler calls http.ServeMux.HandleFunc
      #12: cmd/gitbayd/main.go:311:32: gitbayd.serveCmd calls http.Server.ListenAndServe
      #13: cmd/gitbayd/main.go:314:35: gitbayd.serveCmd calls http.Server.ListenAndServeTLS
      #14: cmd/gitbayd/main.go:408:25: gitbayd.serveCmd calls http.Server.Shutdown
      #15: internal/push/apns.go:159:2: push.Client.Send calls http.body.Close
      #16: internal/config/config.go:482:24: config.MailInbound.Password calls io.ReadAll, which calls http.body.Read
      #17: internal/push/apns.go:159:2: push.Client.Send calls http.bodyEOFSignal.Close
      #18: internal/config/config.go:482:24: config.MailInbound.Password calls io.ReadAll, which calls http.bodyEOFSignal.Read
      #19: internal/gitutil/read.go:206:9: gitutil.ShowPatch calls io.Copy, which eventually calls http.bodyLocked.Read
      #20: internal/gitutil/batch.go:44:29: gitutil.BlobBatch.Read calls io.WriteString, which calls http.bufioFlushWriter.Write
      #21: internal/push/apns.go:159:2: push.Client.Send calls http.cancelTimerBody.Close
      #22: internal/config/config.go:482:24: config.MailInbound.Password calls io.ReadAll, which calls http.cancelTimerBody.Read
      #23: internal/cliconfig/cliconfig.go:83:38: cliconfig.Save calls toml.Encoder.Encode, which eventually calls http.checkConnErrorWriter.Write
      #24: internal/cliconfig/cliconfig.go:83:38: cliconfig.Save calls toml.Encoder.Encode, which eventually calls http.chunkWriter.Write
      #25: internal/gitutil/read.go:206:9: gitutil.ShowPatch calls io.Copy, which eventually calls http.connReader.Read
      #26: internal/sshd/sshd.go:572:12: sshd.cutStalledPush calls http.expectContinueReader.Close
      #27: internal/config/config.go:482:24: config.MailInbound.Password calls io.ReadAll, which calls http.expectContinueReader.Read
      #28: internal/push/apns.go:159:2: push.Client.Send calls http.gzipReader.Close
      #29: internal/config/config.go:482:24: config.MailInbound.Password calls io.ReadAll, which calls http.gzipReader.Read
      #30: internal/gitutil/batch.go:71:26: gitutil.BlobBatch.Read calls io.ReadFull, which eventually calls http.loggingConn.Read
      #31: internal/sshd/sshd.go:502:14: sshd.Exec calls fmt.Fprintf, which calls http.loggingConn.Write
      #32: internal/sshd/sshd.go:572:12: sshd.cutStalledPush calls http.maxBytesReader.Close
      #33: internal/config/config.go:482:24: config.MailInbound.Password calls io.ReadAll, which calls http.maxBytesReader.Read
      #34: internal/sshd/sshd.go:283:15: sshd.Server.Stop calls sync.Once.Do, which eventually calls http.onceCloseListener.Close
      #35: internal/gitutil/read.go:206:9: gitutil.ShowPatch calls io.Copy, which eventually calls http.persistConn.Read
      #36: internal/gitutil/read.go:206:9: gitutil.ShowPatch calls io.Copy, which eventually calls http.persistConnWriter.ReadFrom
      #37: internal/cliconfig/cliconfig.go:83:38: cliconfig.Save calls toml.Encoder.Encode, which eventually calls http.persistConnWriter.Write
      #38: internal/sshd/sshd.go:572:12: sshd.cutStalledPush calls http.readTrackingBody.Close
      #39: internal/config/config.go:482:24: config.MailInbound.Password calls io.ReadAll, which calls http.readTrackingBody.Read
      #40: internal/config/config.go:482:24: config.MailInbound.Password calls io.ReadAll, which calls http.readWriteCloserBody.Read
      #41: internal/gitutil/read.go:206:9: gitutil.ShowPatch calls io.Copy, which eventually calls http.response.ReadFrom
      #42: internal/httpd/builds.go:408:24: httpd.htmlStream.Write calls http.response.Write
      #43: internal/httpd/compress.go:63:30: httpd.gzipWriter.WriteHeader calls http.response.WriteHeader
      #44: internal/gitutil/batch.go:44:29: gitutil.BlobBatch.Read calls io.WriteString, which calls http.response.WriteString
      #45: internal/control/register.go:325:56: control.RegisterAccount calls http.transportReadFromServerError.Error

Your code is affected by 1 vulnerability from the Go standard library.
This scan also found 0 vulnerabilities in packages you import and 1
vulnerability in modules you require, but your code doesn't appear to call these
vulnerabilities.
Use '-show verbose' for more details.
exit status 3
step 1/3 failed: exit 1