The Moby Project - a collaborative project for the container ecosystem to assemble container-based systems
Find a file
Sebastiaan van Stijn 98c9e3f438 update to go1.19.6
go1.19.6 (released 2023-02-14) includes security fixes to the crypto/tls,
mime/multipart, net/http, and path/filepath packages, as well as bug fixes to
the go command, the linker, the runtime, and the crypto/x509, net/http, and
time packages. See the Go 1.19.6 milestone on our issue tracker for details:

https://github.com/golang/go/issues?q=milestone%3AGo1.19.6+label%3ACherryPickApproved

From the announcement on the security mailing:

We have just released Go versions 1.20.1 and 1.19.6, minor point releases.

These minor releases include 4 security fixes following the security policy:

- path/filepath: path traversal in filepath.Clean on Windows

  On Windows, the filepath.Clean function could transform an invalid path such
  as a/../c:/b into the valid path c:\b. This transformation of a relative (if
  invalid) path into an absolute path could enable a directory traversal attack.
  The filepath.Clean function will now transform this path into the relative
  (but still invalid) path .\c:\b.

  This is CVE-2022-41722 and Go issue https://go.dev/issue/57274.

- net/http, mime/multipart: denial of service from excessive resource
  consumption

  Multipart form parsing with mime/multipart.Reader.ReadForm can consume largely
  unlimited amounts of memory and disk files. This also affects form parsing in
  the net/http package with the Request methods FormFile, FormValue,
  ParseMultipartForm, and PostFormValue.

  ReadForm takes a maxMemory parameter, and is documented as storing "up to
  maxMemory bytes +10MB (reserved for non-file parts) in memory". File parts
  which cannot be stored in memory are stored on disk in temporary files. The
  unconfigurable 10MB reserved for non-file parts is excessively large and can
  potentially open a denial of service vector on its own. However, ReadForm did
  not properly account for all memory consumed by a parsed form, such as map
  ntry overhead, part names, and MIME headers, permitting a maliciously crafted
  form to consume well over 10MB. In addition, ReadForm contained no limit on
  the number of disk files created, permitting a relatively small request body
  to create a large number of disk temporary files.

  ReadForm now properly accounts for various forms of memory overhead, and
  should now stay within its documented limit of 10MB + maxMemory bytes of
  memory consumption. Users should still be aware that this limit is high and
  may still be hazardous.

  ReadForm now creates at most one on-disk temporary file, combining multiple
  form parts into a single temporary file. The mime/multipart.File interface
  type's documentation states, "If stored on disk, the File's underlying
  concrete type will be an *os.File.". This is no longer the case when a form
  contains more than one file part, due to this coalescing of parts into a
  single file. The previous behavior of using distinct files for each form part
  may be reenabled with the environment variable
  GODEBUG=multipartfiles=distinct.

  Users should be aware that multipart.ReadForm and the http.Request methods
  that call it do not limit the amount of disk consumed by temporary files.
  Callers can limit the size of form data with http.MaxBytesReader.

  This is CVE-2022-41725 and Go issue https://go.dev/issue/58006.

- crypto/tls: large handshake records may cause panics

  Both clients and servers may send large TLS handshake records which cause
  servers and clients, respectively, to panic when attempting to construct
  responses.

  This affects all TLS 1.3 clients, TLS 1.2 clients which explicitly enable
  session resumption (by setting Config.ClientSessionCache to a non-nil value),
  and TLS 1.3 servers which request client certificates (by setting
  Config.ClientAuth
  > = RequestClientCert).

  This is CVE-2022-41724 and Go issue https://go.dev/issue/58001.

- net/http: avoid quadratic complexity in HPACK decoding

  A maliciously crafted HTTP/2 stream could cause excessive CPU consumption
  in the HPACK decoder, sufficient to cause a denial of service from a small
  number of small requests.

  This issue is also fixed in golang.org/x/net/http2 v0.7.0, for users manually
  configuring HTTP/2.

  This is CVE-2022-41723 and Go issue https://go.dev/issue/57855.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 94feb31516)
Signed-off-by: Cory Snider <csnider@mirantis.com>
2023-02-27 11:28:45 -05:00
.github Remove refs to jhowardmsft from .go code 2019-09-25 10:51:18 -07:00
api set ReadHeaderTimeout to address G112: Potential Slowloris Attack (gosec) 2023-02-24 17:05:42 -05:00
builder gofmt GoDoc comments with go1.19 2023-02-24 17:05:41 -05:00
cli remove uses of deprecated pkg/term 2020-04-21 16:29:27 +02:00
client gofmt GoDoc comments with go1.19 2023-02-24 17:05:41 -05:00
cmd/dockerd set ReadHeaderTimeout to address G112: Potential Slowloris Attack (gosec) 2023-02-24 17:05:42 -05:00
container gofmt GoDoc comments with go1.19 2023-02-24 17:05:41 -05:00
contrib linting: gosec: fix or suppress G112, G114 in test code 2023-02-24 17:05:42 -05:00
daemon golangci-lint: update to v1.49.0 2023-02-24 17:05:42 -05:00
distribution fix some minor linting issues 2023-02-24 17:05:41 -05:00
dockerversion gofmt GoDoc comments with go1.19 2023-02-24 17:05:41 -05:00
docs swagger: update links to logo 2022-09-27 11:57:16 +02:00
errdefs errdefs: move GetHTTPErrorStatusCode to api/server/httpstatus 2022-03-24 14:16:40 -04:00
hack golangci-lint: update to v1.49.0 2023-02-24 17:05:42 -05:00
image refactor: move from io/ioutil to io and os package 2023-02-24 16:11:55 -05:00
integration linting: gosec: fix or suppress G112, G114 in test code 2023-02-24 17:05:42 -05:00
integration-cli linting: host:port in url should be constructed with net.JoinHostPort 2023-02-24 17:05:42 -05:00
internal/test/suite integration-cli: move each test suite to its own TestX testing function 2019-09-18 18:26:36 +00:00
layer refactor: move from io/ioutil to io and os package 2023-02-24 16:11:55 -05:00
libcontainerd gofmt GoDoc comments with go1.19 2023-02-24 17:05:41 -05:00
oci gofmt GoDoc comments with go1.19 2023-02-24 17:05:41 -05:00
opts linting: host:port in url should be constructed with net.JoinHostPort 2023-02-24 17:05:42 -05:00
patches update archive/tar patch for go 1.16 2021-07-16 19:45:14 +02:00
pkg golangci-lint: update to v1.49.0 2023-02-24 17:05:42 -05:00
plugin gofmt GoDoc comments with go1.19 2023-02-24 17:05:41 -05:00
profiles refactor: move from io/ioutil to io and os package 2023-02-24 16:11:55 -05:00
project vendor: opencontainers/selinux v1.8.0, and remove selinux build-tag and stubs 2020-12-24 00:47:16 +01:00
quota gofmt GoDoc comments with go1.19 2023-02-24 17:05:41 -05:00
reference refactor: move from io/ioutil to io and os package 2023-02-24 16:11:55 -05:00
registry refactor: move from io/ioutil to io and os package 2023-02-24 16:11:55 -05:00
reports Fix typos 2018-05-16 09:15:43 +08:00
restartmanager unconvert: remove unnescessary conversions 2019-09-18 12:57:33 +02:00
rootless refactor: move from io/ioutil to io and os package 2023-02-24 16:11:55 -05:00
runconfig refactor: move from io/ioutil to io and os package 2023-02-24 16:11:55 -05:00
testutil linting: gosec: fix or suppress G112, G114 in test code 2023-02-24 17:05:42 -05:00
vendor vendor: update stdlib archive/tar for go1.19.2 2023-02-27 11:28:45 -05:00
volume golangci-lint: update to v1.49.0 2023-02-24 17:05:42 -05:00
.DEREK.yml Update .DEREK.yml 2019-05-06 13:27:04 -07:00
.dockerignore update .dockerignore to prevent '-unsupported' builds 2020-01-13 12:55:15 +01:00
.gitignore Use -X ldflags to set dockerversion package vars 2019-12-02 10:21:41 -08:00
.mailmap Update authors and mailmap 2020-08-06 01:57:12 +02:00
AUTHORS Update authors and mailmap 2020-08-06 01:57:12 +02:00
CHANGELOG.md Fix some typos 2018-09-07 13:13:47 +08:00
codecov.yml Add code coverage report and codecov config 2018-01-16 16:50:56 -05:00
CONTRIBUTING.md Update CONTRIBUTING.md to have an option to keep name anonymous if requested 2019-07-15 16:04:11 +02:00
Dockerfile update to go1.19.6 2023-02-27 11:28:45 -05:00
Dockerfile.e2e update to go1.19.6 2023-02-27 11:28:45 -05:00
Dockerfile.simple update to go1.19.6 2023-02-27 11:28:45 -05:00
Dockerfile.windows update to go1.19.6 2023-02-27 11:28:45 -05:00
Jenkinsfile Jenkinsfile: add workaround for CVE-2022-24765 2022-04-13 16:07:32 +02:00
LICENSE Update LICENSE 2018-09-12 14:27:53 +01:00
MAINTAINERS Add myself as a curator 2020-01-09 15:03:38 -05:00
Makefile Makefile: update buildx to v0.8.2 2022-04-07 10:56:43 +02:00
NOTICE switch kr/pty to creack/pty v1.1.7 2019-07-29 16:59:08 -07:00
poule.yml Poule: remove random assign 2019-09-05 20:57:17 +02:00
README.md Add "Lego set" back in README.md 2017-10-10 14:10:39 +00:00
ROADMAP.md Fix some typos in ROADMAP.md 2019-01-25 14:27:13 +08:00
SECURITY.md Update SECURITY.md to have an option to keep name anonymous if requested. 2019-06-18 16:37:16 +00:00
TESTING.md TESTING.md: note that integration-cli is deprecated 2020-12-18 07:51:46 +01:00
vendor.conf [20.10] vendor: libnetwork 05b93e0d3a95952f70c113b0bc5bdb538d7afdd7 2023-01-18 13:25:55 +01:00
VENDORING.md fix the bare url and the Summary of http://semver.org 2017-01-17 16:20:11 +08:00

The Moby Project

Moby Project logo

Moby is an open-source project created by Docker to enable and accelerate software containerization.

It provides a "Lego set" of toolkit components, the framework for assembling them into custom container-based systems, and a place for all container enthusiasts and professionals to experiment and exchange ideas. Components include container build tools, a container registry, orchestration tools, a runtime and more, and these can be used as building blocks in conjunction with other tools and projects.

Principles

Moby is an open project guided by strong principles, aiming to be modular, flexible and without too strong an opinion on user experience. It is open to the community to help set its direction.

  • Modular: the project includes lots of components that have well-defined functions and APIs that work together.
  • Batteries included but swappable: Moby includes enough components to build fully featured container system, but its modular architecture ensures that most of the components can be swapped by different implementations.
  • Usable security: Moby provides secure defaults without compromising usability.
  • Developer focused: The APIs are intended to be functional and useful to build powerful tools. They are not necessarily intended as end user tools but as components aimed at developers. Documentation and UX is aimed at developers not end users.

Audience

The Moby Project is intended for engineers, integrators and enthusiasts looking to modify, hack, fix, experiment, invent and build systems based on containers. It is not for people looking for a commercially supported system, but for people who want to work and learn with open source code.

Relationship with Docker

The components and tools in the Moby Project are initially the open source components that Docker and the community have built for the Docker Project. New projects can be added if they fit with the community goals. Docker is committed to using Moby as the upstream for the Docker Product. However, other projects are also encouraged to use Moby as an upstream, and to reuse the components in diverse ways, and all these uses will be treated in the same way. External maintainers and contributors are welcomed.

The Moby project is not intended as a location for support or feature requests for Docker products, but as a place for contributors to work on open source code, fix bugs, and make the code more useful. The releases are supported by the maintainers, community and users, on a best efforts basis only, and are not intended for customers who want enterprise or commercial support; Docker EE is the appropriate product for these use cases.


Legal

Brought to you courtesy of our legal counsel. For more context, please see the NOTICE document in this repo.

Use and transfer of Moby may be subject to certain restrictions by the United States and other governments.

It is your responsibility to ensure that your use and/or transfer does not violate applicable laws.

For more information, please see https://www.bis.doc.gov

Licensing

Moby is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.