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 13:55:55 UTC 2023
Modified Files:
pkgsrc/lang/go: version.mk
pkgsrc/lang/go119: PLIST distinfo
Log Message:
go119: update to 1.19.6 (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.172 -r1.173 pkgsrc/lang/go/version.mk
cvs rdiff -u -r1.6 -r1.7 pkgsrc/lang/go119/PLIST
cvs rdiff -u -r1.7 -r1.8 pkgsrc/lang/go119/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.172 pkgsrc/lang/go/version.mk:1.173
--- pkgsrc/lang/go/version.mk:1.172 Thu Feb 16 10:39:59 2023
+++ pkgsrc/lang/go/version.mk Thu Feb 16 13:55:55 2023
@@ -1,4 +1,4 @@
-# $NetBSD: version.mk,v 1.172 2023/02/16 10:39:59 bsiegert Exp $
+# $NetBSD: version.mk,v 1.173 2023/02/16 13:55:55 bsiegert Exp $
#
# If bsd.prefs.mk is included before go-package.mk in a package, then this
@@ -7,7 +7,7 @@
.include "go-vars.mk"
GO120_VERSION= 1.20.1
-GO119_VERSION= 1.19.5
+GO119_VERSION= 1.19.6
GO118_VERSION= 1.18.10
GO14_VERSION= 1.4.3
Index: pkgsrc/lang/go119/PLIST
diff -u pkgsrc/lang/go119/PLIST:1.6 pkgsrc/lang/go119/PLIST:1.7
--- pkgsrc/lang/go119/PLIST:1.6 Wed Jan 11 17:24:29 2023
+++ pkgsrc/lang/go119/PLIST Thu Feb 16 13:55:55 2023
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.6 2023/01/11 17:24:29 bsiegert Exp $
+@comment $NetBSD: PLIST,v 1.7 2023/02/16 13:55:55 bsiegert Exp $
bin/go${GOVERSSUFFIX}
bin/gofmt${GOVERSSUFFIX}
go119/CONTRIBUTING.md
@@ -3145,6 +3145,7 @@ go119/src/cmd/go/testdata/script/version
go119/src/cmd/go/testdata/script/version_buildvcs_git.txt
go119/src/cmd/go/testdata/script/version_buildvcs_hg.txt
go119/src/cmd/go/testdata/script/version_buildvcs_nested.txt
+go119/src/cmd/go/testdata/script/version_gc_sections.txt
go119/src/cmd/go/testdata/script/version_goexperiment.txt
go119/src/cmd/go/testdata/script/version_replace.txt
go119/src/cmd/go/testdata/script/vet.txt
@@ -6773,6 +6774,7 @@ go119/src/mime/multipart/formdata.go
go119/src/mime/multipart/formdata_test.go
go119/src/mime/multipart/multipart.go
go119/src/mime/multipart/multipart_test.go
+go119/src/mime/multipart/readmimeheader.go
go119/src/mime/multipart/testdata/nested-mime
go119/src/mime/multipart/writer.go
go119/src/mime/multipart/writer_test.go
Index: pkgsrc/lang/go119/distinfo
diff -u pkgsrc/lang/go119/distinfo:1.7 pkgsrc/lang/go119/distinfo:1.8
--- pkgsrc/lang/go119/distinfo:1.7 Wed Jan 11 17:24:29 2023
+++ pkgsrc/lang/go119/distinfo Thu Feb 16 13:55:55 2023
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.7 2023/01/11 17:24:29 bsiegert Exp $
+$NetBSD: distinfo,v 1.8 2023/02/16 13:55:55 bsiegert Exp $
-BLAKE2s (go1.19.5.src.tar.gz) = 850e4a16be921fcd95c40e406310eae811e64731fa7fcdd546b772cdbcfd2d22
-SHA512 (go1.19.5.src.tar.gz) = 26754f2a4870d0a5484162b626dad5109a33c116675898c84de46155659dadeff2b3fa9ea3dd0c7da8d23c8ff0974cfe42bdd07484e6f784617de3a577b3c883
-Size (go1.19.5.src.tar.gz) = 26545858 bytes
+BLAKE2s (go1.19.6.src.tar.gz) = fbcfbd573d45170d63282843ef07ffc033c4ba78425abdc11d02f76f8810cd18
+SHA512 (go1.19.6.src.tar.gz) = f817ea6bcd83b60d9bf2ae9d0afdaa21651ac6cf5a32c260f40a691cd0ccce556ec9a483e10fa1a5dc244d6ea512407f5dae9c99ac004393b196a80284e63977
+Size (go1.19.6.src.tar.gz) = 26549360 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