pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/lang
Module Name: pkgsrc
Committed By: bsiegert
Date: Thu Feb 16 10:40:00 UTC 2023
Modified Files:
pkgsrc/lang/go: version.mk
pkgsrc/lang/go120: PLIST distinfo
Log Message:
go120: update to 1.20.1 (security)
This minor release includes 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.
Thanks to RyotaK (https://ryotak.net) for reporting this issue.
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
entry 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.
Thanks to Arpad Ryszka and Jakob Ackermann (@das7pad) for reporting this
issue.
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).
Thanks to Marten Seemann for reporting this issue.
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.
Thanks to Philippe Antoine (Catena cyber) for reporting this issue.
This is CVE-2022-41723 and Go issue https://go.dev/issue/57855.
To generate a diff of this commit:
cvs rdiff -u -r1.171 -r1.172 pkgsrc/lang/go/version.mk
cvs rdiff -u -r1.1 -r1.2 pkgsrc/lang/go120/PLIST pkgsrc/lang/go120/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/lang/go/version.mk
diff -u pkgsrc/lang/go/version.mk:1.171 pkgsrc/lang/go/version.mk:1.172
--- pkgsrc/lang/go/version.mk:1.171 Sun Feb 5 13:25:25 2023
+++ pkgsrc/lang/go/version.mk Thu Feb 16 10:39:59 2023
@@ -1,4 +1,4 @@
-# $NetBSD: version.mk,v 1.171 2023/02/05 13:25:25 bsiegert Exp $
+# $NetBSD: version.mk,v 1.172 2023/02/16 10:39:59 bsiegert Exp $
#
# If bsd.prefs.mk is included before go-package.mk in a package, then this
@@ -6,7 +6,7 @@
#
.include "go-vars.mk"
-GO120_VERSION= 1.20
+GO120_VERSION= 1.20.1
GO119_VERSION= 1.19.5
GO118_VERSION= 1.18.10
GO14_VERSION= 1.4.3
Index: pkgsrc/lang/go120/PLIST
diff -u pkgsrc/lang/go120/PLIST:1.1 pkgsrc/lang/go120/PLIST:1.2
--- pkgsrc/lang/go120/PLIST:1.1 Sun Feb 5 13:25:26 2023
+++ pkgsrc/lang/go120/PLIST Thu Feb 16 10:39:59 2023
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2023/02/05 13:25:26 bsiegert Exp $
+@comment $NetBSD: PLIST,v 1.2 2023/02/16 10:39:59 bsiegert Exp $
bin/go${GOVERSSUFFIX}
bin/gofmt${GOVERSSUFFIX}
go120/CONTRIBUTING.md
@@ -1619,6 +1619,8 @@ go120/src/cmd/go/internal/robustio/robus
go120/src/cmd/go/internal/robustio/robustio_windows.go
go120/src/cmd/go/internal/run/run.go
go120/src/cmd/go/internal/script/cmds.go
+go120/src/cmd/go/internal/script/cmds_other.go
+go120/src/cmd/go/internal/script/cmds_posix.go
go120/src/cmd/go/internal/script/conds.go
go120/src/cmd/go/internal/script/engine.go
go120/src/cmd/go/internal/script/errors.go
@@ -2574,6 +2576,7 @@ go120/src/cmd/go/testdata/script/version
go120/src/cmd/go/testdata/script/version_buildvcs_hg.txt
go120/src/cmd/go/testdata/script/version_buildvcs_nested.txt
go120/src/cmd/go/testdata/script/version_cshared.txt
+go120/src/cmd/go/testdata/script/version_gc_sections.txt
go120/src/cmd/go/testdata/script/version_goexperiment.txt
go120/src/cmd/go/testdata/script/version_replace.txt
go120/src/cmd/go/testdata/script/vet.txt
@@ -6371,6 +6374,7 @@ go120/src/mime/multipart/formdata.go
go120/src/mime/multipart/formdata_test.go
go120/src/mime/multipart/multipart.go
go120/src/mime/multipart/multipart_test.go
+go120/src/mime/multipart/readmimeheader.go
go120/src/mime/multipart/testdata/nested-mime
go120/src/mime/multipart/writer.go
go120/src/mime/multipart/writer_test.go
@@ -10993,6 +10997,8 @@ go120/test/fixedbugs/issue57846.go
go120/test/fixedbugs/issue5793.go
go120/test/fixedbugs/issue5809.go
go120/test/fixedbugs/issue5820.go
+go120/test/fixedbugs/issue58293.go
+go120/test/fixedbugs/issue58325.go
go120/test/fixedbugs/issue5841.go
go120/test/fixedbugs/issue5856.go
go120/test/fixedbugs/issue5910.dir/a.go
Index: pkgsrc/lang/go120/distinfo
diff -u pkgsrc/lang/go120/distinfo:1.1 pkgsrc/lang/go120/distinfo:1.2
--- pkgsrc/lang/go120/distinfo:1.1 Sun Feb 5 13:25:26 2023
+++ pkgsrc/lang/go120/distinfo Thu Feb 16 10:39:59 2023
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.1 2023/02/05 13:25:26 bsiegert Exp $
+$NetBSD: distinfo,v 1.2 2023/02/16 10:39:59 bsiegert Exp $
-BLAKE2s (go1.20.src.tar.gz) = 8716ec74761b48c04afe1055979b133cf4795ffafb7096fd27f03b9f7048b2ce
-SHA512 (go1.20.src.tar.gz) = 6b59af1094fafbf2dba6b26a5da0c6363d87b0997dd399cde40d9150e00bedd15100c0c8c12e31cfe7e153d2ea45b403764b2d83479d1cda74077179c8cca4d3
-Size (go1.20.src.tar.gz) = 26163076 bytes
+BLAKE2s (go1.20.1.src.tar.gz) = a2ef30fc895864ea174ab000c75ac8f463046ed671d598a51d8dbfabab36c463
+SHA512 (go1.20.1.src.tar.gz) = 57453419fafac8af10f4037b0162326555aab0e87cd1d246d5e977246c075a0504c23022d5c14bfcae9ca1c3250652ddd7c6fcf2209a926525e5f7d0d40ab52d
+Size (go1.20.1.src.tar.gz) = 26172675 bytes
SHA1 (patch-misc_ios_clangwrap.sh) = 0a06403609cb7bce2e6f65444fd322f486761afe
SHA1 (patch-src_cmd_dist_util.go) = 2d9c2f59e27672d56f5f1a0e3f9d5101a05546a7
SHA1 (patch-src_crypto_x509_root__bsd.go) = 0b5dead901450967109303f873a2696c65ccac35
Home |
Main Index |
Thread Index |
Old Index