Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 873637 (CVE-2022-2879, CVE-2022-2880, CVE-2022-41715) - <dev-lang/go-{1.18.7,1.19.2}: multiple vulnerabilities
Summary: <dev-lang/go-{1.18.7,1.19.2}: multiple vulnerabilities
Status: RESOLVED FIXED
Alias: CVE-2022-2879, CVE-2022-2880, CVE-2022-41715
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Security
URL: https://groups.google.com/d/msgid/gol...
Whiteboard: B3 [glsa+]
Keywords:
Depends on: 875554
Blocks:
  Show dependency tree
 
Reported: 2022-09-30 13:28 UTC by John Helmert III
Modified: 2023-11-25 08:58 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-09-30 13:28:25 UTC
https://groups.google.com/d/msgid/golang-announce/2R-mSO6lQiWNZCgnH0gJdw%40geopod-ismtpd-6-2 :

"We plan to issue Go 1.19.2 and Go 1.18.7 on Tuesday, October 4.

These minor releases include PRIVATE security fixes to the standard library.

Following our security policy, this is the pre-announcement of those releases."
Comment 1 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-10-05 13:48:10 UTC
    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.

Please bump to 1.18.7 and 1.19.2.
Comment 2 Larry the Git Cow gentoo-dev 2022-10-06 01:36:36 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=840cbb4676771234cdbaa4c55f88cc34ff64b399

commit 840cbb4676771234cdbaa4c55f88cc34ff64b399
Author:     William Hubbs <williamh@gentoo.org>
AuthorDate: 2022-10-06 01:35:32 +0000
Commit:     William Hubbs <williamh@gentoo.org>
CommitDate: 2022-10-06 01:35:53 +0000

    dev-lang/go: add 1.18.7, 1.19.2
    
    Bug: https://bugs.gentoo.org/873637
    Signed-off-by: William Hubbs <williamh@gentoo.org>

 dev-lang/go/Manifest         |   2 +
 dev-lang/go/go-1.18.7.ebuild | 196 +++++++++++++++++++++++++++++++++++++++++
 dev-lang/go/go-1.19.2.ebuild | 201 +++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 399 insertions(+)
Comment 3 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-10-06 13:41:17 UTC
Please cleanup
Comment 4 Larry the Git Cow gentoo-dev 2022-10-07 15:17:02 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b3d023bbda6a044664e75c068776acda7485049

commit 3b3d023bbda6a044664e75c068776acda7485049
Author:     William Hubbs <williamh@gentoo.org>
AuthorDate: 2022-10-07 15:16:11 +0000
Commit:     William Hubbs <williamh@gentoo.org>
CommitDate: 2022-10-07 15:16:11 +0000

    dev-lang/go: drop 1.18.5, 1.18.6, 1.19.1
    
    Bug: https://bugs.gentoo.org/873637
    Signed-off-by: William Hubbs <williamh@gentoo.org>

 dev-lang/go/Manifest         |   3 -
 dev-lang/go/go-1.18.5.ebuild | 196 -----------------------------------------
 dev-lang/go/go-1.18.6.ebuild | 196 -----------------------------------------
 dev-lang/go/go-1.19.1.ebuild | 201 -------------------------------------------
 4 files changed, 596 deletions(-)
Comment 5 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-10-07 15:35:48 UTC
Thanks!
Comment 6 Larry the Git Cow gentoo-dev 2023-11-25 08:57:30 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/data/glsa.git/commit/?id=7f1e599c82e7f7f6b21bf1127d01d7dfa903e21c

commit 7f1e599c82e7f7f6b21bf1127d01d7dfa903e21c
Author:     GLSAMaker <glsamaker@gentoo.org>
AuthorDate: 2023-11-25 08:56:49 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2023-11-25 08:57:21 +0000

    [ GLSA 202311-09 ] Go: Multiple Vulnerabilities
    
    Bug: https://bugs.gentoo.org/873637
    Bug: https://bugs.gentoo.org/883783
    Bug: https://bugs.gentoo.org/894478
    Bug: https://bugs.gentoo.org/903979
    Bug: https://bugs.gentoo.org/908255
    Bug: https://bugs.gentoo.org/915555
    Bug: https://bugs.gentoo.org/916494
    Signed-off-by: GLSAMaker <glsamaker@gentoo.org>
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

 glsa-202311-09.xml | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 73 insertions(+)