pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/pkgsrc-2022Q3]: pkgsrc/lang Pullup ticket #6679 - requested by taca



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5e711eecbf0e
branches:  pkgsrc-2022Q3
changeset: 386391:5e711eecbf0e
user:      bsiegert <bsiegert%pkgsrc.org@localhost>
date:      Fri Oct 07 16:34:02 2022 +0000

description:
Pullup ticket #6679 - requested by taca
lang/go118: security fix

Revisions pulled up:
- lang/go/version.mk                                            1.162
- lang/go118/PLIST                                              1.8
- lang/go118/distinfo                                           1.8

---
   Module Name: pkgsrc
   Committed By:        bsiegert
   Date:                Wed Oct  5 09:51:52 UTC 2022

   Modified Files:
        pkgsrc/lang/go: version.mk
        pkgsrc/lang/go118: PLIST distinfo

   Log Message:
   go118: update to 1.18.7

   This minor release includes 3 security fixes following the security policy:

   - archive/tar: unbounded memory consumption when reading headers

     Reader.Read did not set a limit on the maximum size of file headers.
     A maliciously crafted archive could cause Read to allocate unbounded
     amounts of memory, potentially causing resource exhaustion or panics.
     Reader.Read now limits the maximum size of header blocks to 1 MiB.

     Thanks to Adam Korczynski (ADA Logics) and OSS-Fuzz for reporting this issue.

     This is CVE-2022-2879 and Go issue https://go.dev/issue/54853.

   - net/http/httputil: ReverseProxy should not forward unparseable query parameters

     Requests forwarded by ReverseProxy included the raw query parameters from the
     inbound request, including unparseable parameters rejected by net/http. This
     could permit query parameter smuggling when a Go proxy forwards a parameter
     with an unparseable value.

     ReverseProxy will now sanitize the query parameters in the forwarded query
     when the outbound request's Form field is set after the ReverseProxy.Director
     function returns, indicating that the proxy has parsed the query parameters.
     Proxies which do not parse query parameters continue to forward the original
     query parameters unchanged.

     Thanks to Gal Goldstein (Security Researcher, Oxeye) and
     Daniel Abeles (Head of Research, Oxeye) for reporting this issue.

     This is CVE-2022-2880 and Go issue https://go.dev/issue/54663.

   - regexp/syntax: limit memory used by parsing regexps

     The parsed regexp representation is linear in the size of the input,
     but in some cases the constant factor can be as high as 40,000,
     making relatively small regexps consume much larger amounts of memory.

     Each regexp being parsed is now limited to a 256 MB memory footprint.
     Regular expressions whose representation would use more space than that
     are now rejected. Normal use of regular expressions is unaffected.

     Thanks to Adam Korczynski (ADA Logics) and OSS-Fuzz for reporting this issue.

     This is CVE-2022-41715 and Go issue https://go.dev/issue/55949.

diffstat:

 lang/go/version.mk  |  4 ++--
 lang/go118/PLIST    |  6 +++++-
 lang/go118/distinfo |  8 ++++----
 3 files changed, 11 insertions(+), 7 deletions(-)

diffs (68 lines):

diff -r 8da5034db63b -r 5e711eecbf0e lang/go/version.mk
--- a/lang/go/version.mk        Mon Oct 03 15:33:39 2022 +0000
+++ b/lang/go/version.mk        Fri Oct 07 16:34:02 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: version.mk,v 1.159 2022/09/12 12:16:05 jperkin Exp $
+# $NetBSD: version.mk,v 1.159.2.1 2022/10/07 16:34:02 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"
 
 GO119_VERSION= 1.19.1
-GO118_VERSION= 1.18.6
+GO118_VERSION= 1.18.7
 GO117_VERSION= 1.17.13
 GO116_VERSION= 1.16.15
 GO110_VERSION= 1.10.8
diff -r 8da5034db63b -r 5e711eecbf0e lang/go118/PLIST
--- a/lang/go118/PLIST  Mon Oct 03 15:33:39 2022 +0000
+++ b/lang/go118/PLIST  Fri Oct 07 16:34:02 2022 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.7 2022/09/07 06:36:33 bsiegert Exp $
+@comment $NetBSD: PLIST,v 1.7.2.1 2022/10/07 16:34:03 bsiegert Exp $
 bin/go${GOVERSSUFFIX}
 bin/gofmt${GOVERSSUFFIX}
 go118/AUTHORS
@@ -933,6 +933,7 @@
 go118/src/archive/tar/testdata/neg-size.tar
 go118/src/archive/tar/testdata/nil-uid.tar
 go118/src/archive/tar/testdata/pax-bad-hdr-file.tar
+go118/src/archive/tar/testdata/pax-bad-hdr-large.tar.bz2
 go118/src/archive/tar/testdata/pax-bad-mtime-file.tar
 go118/src/archive/tar/testdata/pax-global-records.tar
 go118/src/archive/tar/testdata/pax-multi-hdrs.tar
@@ -10820,6 +10821,8 @@
 go118/test/fixedbugs/issue5470.dir/b.go
 go118/test/fixedbugs/issue5470.go
 go118/test/fixedbugs/issue5493.go
+go118/test/fixedbugs/issue55122.go
+go118/test/fixedbugs/issue55122b.go
 go118/test/fixedbugs/issue5515.go
 go118/test/fixedbugs/issue5581.go
 go118/test/fixedbugs/issue5607.go
@@ -11662,6 +11665,7 @@
 go118/test/typeparam/issue52241.go
 go118/test/typeparam/issue53419.go
 go118/test/typeparam/issue53477.go
+go118/test/typeparam/issue54911.go
 go118/test/typeparam/list.go
 go118/test/typeparam/list2.go
 go118/test/typeparam/listimp.dir/a.go
diff -r 8da5034db63b -r 5e711eecbf0e lang/go118/distinfo
--- a/lang/go118/distinfo       Mon Oct 03 15:33:39 2022 +0000
+++ b/lang/go118/distinfo       Fri Oct 07 16:34:02 2022 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.7 2022/09/07 06:36:33 bsiegert Exp $
+$NetBSD: distinfo,v 1.7.2.1 2022/10/07 16:34:03 bsiegert Exp $
 
-BLAKE2s (go1.18.6.src.tar.gz) = 71c3a452522d81e751845cc89a341a7164d80c2d3368d36c6bf71191185117b2
-SHA512 (go1.18.6.src.tar.gz) = 2af66b09bfe033b413eb7603a73a490319bf49fec0a2e20c40350e60b9ef35250a6dc8544c5fc67bd1ede55e242d056e7749f69ef500a38b1efe4b8f93078de3
-Size (go1.18.6.src.tar.gz) = 22865753 bytes
+BLAKE2s (go1.18.7.src.tar.gz) = 90a986b01c2ff99dc45c08aa05e35c3c3495bc0265a057aead2d64656e321780
+SHA512 (go1.18.7.src.tar.gz) = cf1ff024e94b900b87cc52d3ec04b0f7f853880a99c416791ad4b9af5f8e50ec82fbe00788bc8dcc184ef5ce1a9df17f5f5e95cf01c0c8138f28f53d691ca5d4
+Size (go1.18.7.src.tar.gz) = 22872579 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