The Moby Project - a collaborative project for the container ecosystem to assemble container-based systems
Find a file
Sebastiaan van Stijn d3e52936c3
[23.0] update go to go1.19.8
go1.19.8 (released 2023-04-04) includes security fixes to the go/parser,
html/template, mime/multipart, net/http, and net/textproto packages, as well as
bug fixes to the linker, the runtime, and the time package. See the Go 1.19.8
milestone on our issue tracker for details:

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

full diff: https://github.com/golang/go/compare/go1.19.7...go1.19.8

Further details from the announcement on the mailing list:

We have just released Go versions 1.20.3 and 1.19.8, minor point releases.
These minor releases include 4 security fixes following the security policy:

- go/parser: infinite loop in parsing

  Calling any of the Parse functions on Go source code which contains `//line`
  directives with very large line numbers can cause an infinite loop due to
  integer overflow.
  Thanks to Philippe Antoine (Catena cyber) for reporting this issue.
  This is CVE-2023-24537 and Go issue https://go.dev/issue/59180.

- html/template: backticks not treated as string delimiters

  Templates did not properly consider backticks (`) as Javascript string
  delimiters, and as such did not escape them as expected. Backticks are
  used, since ES6, for JS template literals. If a template contained a Go
  template action within a Javascript template literal, the contents of the
  action could be used to terminate the literal, injecting arbitrary Javascript
  code into the Go template.

  As ES6 template literals are rather complex, and themselves can do string
  interpolation, we've decided to simply disallow Go template actions from being
  used inside of them (e.g. "var a = {{.}}"), since there is no obviously safe
  way to allow this behavior. This takes the same approach as
  github.com/google/safehtml. Template.Parse will now return an Error when it
  encounters templates like this, with a currently unexported ErrorCode with a
  value of 12. This ErrorCode will be exported in the next major release.

  Users who rely on this behavior can re-enable it using the GODEBUG flag
  jstmpllitinterp=1, with the caveat that backticks will now be escaped. This
  should be used with caution.

  Thanks to Sohom Datta, Manipal Institute of Technology, for reporting this issue.

  This is CVE-2023-24538 and Go issue https://go.dev/issue/59234.

- net/http, net/textproto: denial of service from excessive memory allocation

  HTTP and MIME header parsing could allocate large amounts of memory, even when
  parsing small inputs.

  Certain unusual patterns of input data could cause the common function used to
  parse HTTP and MIME headers to allocate substantially more memory than
  required to hold the parsed headers. An attacker can exploit this behavior to
  cause an HTTP server to allocate large amounts of memory from a small request,
  potentially leading to memory exhaustion and a denial of service.
  Header parsing now correctly allocates only the memory required to hold parsed
  headers.

  Thanks to Jakob Ackermann (@das7pad) for discovering this issue.

  This is CVE-2023-24534 and Go issue https://go.dev/issue/58975.

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

  Multipart form parsing can consume large amounts of CPU and memory when
  processing form inputs containing very large numbers of parts. This stems from
  several causes:

  mime/multipart.Reader.ReadForm limits the total memory a parsed multipart form
  can consume. ReadForm could undercount the amount of memory consumed, leading
  it to accept larger inputs than intended. Limiting total memory does not
  account for increased pressure on the garbage collector from large numbers of
  small allocations in forms with many parts. ReadForm could allocate a large
  number of short-lived buffers, further increasing pressure on the garbage
  collector. The combination of these factors can permit an attacker to cause an
  program that parses multipart forms to consume large amounts of CPU and
  memory, potentially resulting in a denial of service. This affects programs
  that use mime/multipart.Reader.ReadForm, as well as form parsing in the
  net/http package with the Request methods FormFile, FormValue,
  ParseMultipartForm, and PostFormValue.

  ReadForm now does a better job of estimating the memory consumption of parsed
  forms, and performs many fewer short-lived allocations.

  In addition, mime/multipart.Reader now imposes the following limits on the
  size of parsed forms:

  Forms parsed with ReadForm may contain no more than 1000 parts. This limit may
  be adjusted with the environment variable GODEBUG=multipartmaxparts=. Form
  parts parsed with NextPart and NextRawPart may contain no more than 10,000
  header fields. In addition, forms parsed with ReadForm may contain no more
  than 10,000 header fields across all parts. This limit may be adjusted with
  the environment variable GODEBUG=multipartmaxheaders=.

  Thanks to Jakob Ackermann for discovering this issue.

  This is CVE-2023-24536 and Go issue https://go.dev/issue/59153.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-04-05 22:02:01 +02:00
.github [23.0] update go to go1.19.8 2023-04-05 22:02:01 +02:00
api volumes: fix error-handling when removing volumes with swarm enabled 2023-03-14 11:38:04 +01:00
builder builder-next: disable mergeop and diffop 2023-03-16 08:27:26 -06:00
cli add instructions to generate events message table bin 2022-04-14 19:52:36 +02:00
client client: improve error messaging on crash 2023-01-30 15:03:01 +01:00
cmd cmd/dockerd: use default SIGQUIT behaviour 2023-01-17 13:41:01 +01:00
container state/Wait: Fix race when reading exit status 2022-07-29 16:49:56 +02:00
contrib contrib/dockerize-disk.sh: Fix indentation 2023-03-14 11:58:45 +01:00
daemon daemon: let libnetwork assign default bridge IPAM 2023-03-31 09:38:21 +02:00
distribution distribution/xfer: make off-by-one error a feature 2023-02-22 12:34:59 -05:00
dockerversion IAmStatic not used anymore 2023-01-02 18:46:02 +01:00
docs docs: api: synchronise versioned API docs (v1.39 - v1.41) 2023-01-10 16:46:25 +01:00
errdefs errdefs: FromStatusCode() don't log "FIXME" debug message 2022-12-20 16:07:07 +01:00
hack Merge pull request #45237 from thaJeztah/23.0_backport_update_runc_binary_1.1.5 2023-04-05 02:44:15 +02:00
image image/store: Use errdefs for errors 2022-12-09 00:17:57 +01:00
integration TestDaemonRestartKillContainers: Fix loop capture 2023-03-22 15:36:41 +01:00
integration-cli integration-cli: Enable TestExecStartFails on Windows 2023-03-28 11:10:24 +02: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 Remove uses of deprecated go-digest.NewDigestFromHex, go-digest.Digest.Hex 2022-12-09 00:17:18 +01:00
libcontainerd daemon: identify container exits by ProcessID 2023-01-31 12:14:50 -05:00
libnetwork Merge pull request #45240 from akerouanton/cherrypick-45211 2023-04-05 02:44:02 +02:00
oci runconfig, oci, image, layer, distribution: fix empty-lines (revive) 2022-10-01 00:01:14 +02:00
opts opts: fix empty-lines (revive) 2022-10-01 00:01:13 +02:00
pkg Migrate away from things deprecated in Go 1.20 2023-02-22 16:32:33 -05:00
plugin plugin: fix empty-lines (revive) 2022-09-30 23:59:30 +02:00
profiles seccomp: block socket calls to AF_VSOCK in default profile 2022-12-01 14:09:46 +01:00
project graphdriver/btrfs: needs kernel headers >= 4.12, not >= 4.7 2023-01-10 10:46:26 +01:00
quota gofmt GoDoc comments with go1.19 2022-07-13 22:42:29 +02:00
reference remove unneeded "digest" alias for "go-digest" 2022-03-04 14:49:42 +01:00
registry registry: session: remove unused id 2022-11-29 19:13:02 +01: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
runconfig runconfig, oci, image, layer, distribution: fix empty-lines (revive) 2022-10-01 00:01:14 +02:00
testutil StartWithLogFile: Fix d.cmd race 2023-03-22 15:36:44 +01:00
vendor vendor: github.com/moby/swarmkit/v2 v2.0.0-20230309194213-a745a8755ce3 2023-03-09 23:22:36 +01:00
volume Fix volume CreatedAt being altered on initialization 2023-01-03 17:55:26 +01:00
.dockerignore ignorefiles: cleanup 2022-11-30 11:15:56 +01:00
.gitattributes chore: fix linguist for Dockerfile 2022-04-27 06:38:41 +02:00
.gitignore hack: introduce validate/no-module 2022-12-13 14:42:07 -07:00
.mailmap .mailmap: cleanup and additions 2022-11-30 12:06:21 +01:00
AUTHORS AUTHORS: regenerate 2022-11-30 12:06:21 +01:00
codecov.yml codecov: disable "patch" status 2022-06-07 17:24:46 +02:00
CONTRIBUTING.md Removed the slack archives 2022-01-13 18:30:45 +01:00
docker-bake.hcl Dockerfile: smoke tests for static builds 2023-01-18 19:36:07 +01:00
Dockerfile [23.0] update go to go1.19.8 2023-04-05 22:02:01 +02:00
Dockerfile.e2e [23.0] update go to go1.19.8 2023-04-05 22:02:01 +02:00
Dockerfile.simple [23.0] update go to go1.19.8 2023-04-05 22:02:01 +02:00
Dockerfile.windows [23.0] update go to go1.19.8 2023-04-05 22:02:01 +02:00
Jenkinsfile Jenkinsfile: Fix dev image build fox ppc64le/s390x archs 2022-11-30 11:16:51 +01:00
LICENSE Update LICENSE 2018-09-12 14:27:53 +01:00
MAINTAINERS Add new people to the curators list 2022-06-23 16:14:04 +02:00
Makefile Dockerfile: rename dev stages 2023-01-02 18:46:03 +01:00
NOTICE switch kr/pty to creack/pty v1.1.7 2019-07-29 16:59:08 -07: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.mod [23.0] fix vendor.mod: add hashicorp/go-multierror as direct dependency 2023-04-05 17:31:29 +02:00
vendor.sum vendor: github.com/moby/swarmkit/v2 v2.0.0-20230309194213-a745a8755ce3 2023-03-09 23:22:36 +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.