Skip to content

vendor: golang.org/x/net v0.23.0#47673

Merged
thaJeztah merged 2 commits intomoby:masterfrom
thaJeztah:vendor_x_net
Apr 4, 2024
Merged

vendor: golang.org/x/net v0.23.0#47673
thaJeztah merged 2 commits intomoby:masterfrom
thaJeztah:vendor_x_net

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

vendor: golang.org/x/net v0.22.0, golang.org/x/crypto v0.21.0

full diffs changes relevant to vendored code:

  • golang/net@v0.18.0...v0.22.0
    • websocket: add support for dialing with context
    • http2: remove suspicious uint32->v conversion in frame code
    • http2: send an error of FLOW_CONTROL_ERROR when exceed the maximum octets
  • golang/crypto@v0.17.0...v0.21.0
    • internal/poly1305: drop Go 1.12 compatibility
    • internal/poly1305: improve sum_ppc64le.s
    • ocsp: don't use iota for externally defined constants

vendor: golang.org/x/net v0.23.0

full diff: golang/net@v0.22.0...v0.23.0

Includes a fix for CVE-2023-45288, which is also addressed in go1.22.2
and go1.21.9;

http2: close connections when receiving too many headers

Maintaining HPACK state requires that we parse and process
all HEADERS and CONTINUATION frames on a connection.
When a request's headers exceed MaxHeaderBytes, we don't
allocate memory to store the excess headers but we do
parse them. This permits an attacker to cause an HTTP/2
endpoint to read arbitrary amounts of data, all associated
with a request which is going to be rejected.

Set a limit on the amount of excess header frames we
will process before closing a connection.

Thanks to Bartek Nowotarski for reporting this issue.

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

full diffs changes relevant to vendored code:

- golang/net@v0.18.0...v0.22.0
    - websocket: add support for dialing with context
    - http2: remove suspicious uint32->v conversion in frame code
    - http2: send an error of FLOW_CONTROL_ERROR when exceed the maximum octets
- golang/crypto@v0.17.0...v0.21.0
    - internal/poly1305: drop Go 1.12 compatibility
    - internal/poly1305: improve sum_ppc64le.s
    - ocsp: don't use iota for externally defined constants

Signed-off-by: Sebastiaan van Stijn <[email protected]>
full diff: golang/net@v0.22.0...v0.23.0

Includes a fix for CVE-2023-45288, which is also addressed in go1.22.2
and go1.21.9;

> http2: close connections when receiving too many headers
>
> Maintaining HPACK state requires that we parse and process
> all HEADERS and CONTINUATION frames on a connection.
> When a request's headers exceed MaxHeaderBytes, we don't
> allocate memory to store the excess headers but we do
> parse them. This permits an attacker to cause an HTTP/2
> endpoint to read arbitrary amounts of data, all associated
> with a request which is going to be rejected.
>
> Set a limit on the amount of excess header frames we
> will process before closing a connection.
>
> Thanks to Bartek Nowotarski for reporting this issue.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants