Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump puma from 6.4.1 to 6.4.2 #568

Merged
merged 2 commits into from
Feb 17, 2024
Merged

Bump puma from 6.4.1 to 6.4.2 #568

merged 2 commits into from
Feb 17, 2024

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 8, 2024

Bumps puma from 6.4.1 to 6.4.2.

Changelog

Sourced from puma's changelog.

6.4.2 / 2024-01-08

  • Security
    • Limit the size of chunk extensions. Without this limit, an attacker could cause unbounded resource (CPU, network bandwidth) consumption. (GHSA-c2f4-cvqm-65w2)
Commits

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot bot added dependencies ruby Pull requests that update Ruby code labels Jan 8, 2024
Copy link

github-actions bot commented Jan 8, 2024

Copy link

github-actions bot commented Jan 8, 2024

gem compare puma 6.4.1 6.4.2

Compared versions: ["6.4.1", "6.4.2"]
  DIFFERENT date:
    6.4.1: 2024-01-02 00:00:00 UTC
    6.4.2: 2024-01-08 00:00:00 UTC
  DIFFERENT require_paths:
    6.4.1: ["/opt/hostedtoolcache/Ruby/3.2.2/x64/lib/ruby/gems/3.2.0/extensions/x86_64-linux/3.2.0/puma-6.4.1", "lib"]
    6.4.2: ["/opt/hostedtoolcache/Ruby/3.2.2/x64/lib/ruby/gems/3.2.0/extensions/x86_64-linux/3.2.0/puma-6.4.2", "lib"]
  DIFFERENT version:
    6.4.1: 6.4.1
    6.4.2: 6.4.2
  DIFFERENT files:
    6.4.1->6.4.2:
      * Changed:
            History.md +10/-0
            lib/puma/client.rb +27/-0
            lib/puma/const.rb +1/-1

Copy link

github-actions bot commented Jan 8, 2024

gem compare --diff puma 6.4.1 6.4.2

Compared versions: ["6.4.1", "6.4.2"]
  DIFFERENT files:
    6.4.1->6.4.2:
      * Changed:
        History.md
                --- /tmp/d20240108-1965-pqhjc9/puma-6.4.1/History.md	2024-01-08 16:26:49.723496535 +0000
                +++ /tmp/d20240108-1965-pqhjc9/puma-6.4.2/History.md	2024-01-08 16:26:49.739496592 +0000
                @@ -0,0 +1,5 @@
                +## 6.4.2 / 2024-01-08
                +
                +* Security
                +  * Limit the size of chunk extensions. Without this limit, an attacker could cause unbounded resource (CPU, network bandwidth) consumption. ([GHSA-c2f4-cvqm-65w2](https://github.com/puma/puma/security/advisories/GHSA-c2f4-cvqm-65w2))
                +
                @@ -169,0 +175,5 @@
                +
                +## 5.6.8 / 2024-01-08
                +
                +* Security
                +  * Limit the size of chunk extensions. Without this limit, an attacker could cause unbounded resource (CPU, network bandwidth) consumption. ([GHSA-c2f4-cvqm-65w2](https://github.com/puma/puma/security/advisories/GHSA-c2f4-cvqm-65w2))
        lib/puma/client.rb
                --- /tmp/d20240108-1965-pqhjc9/puma-6.4.1/lib/puma/client.rb	2024-01-08 16:26:49.731496564 +0000
                +++ /tmp/d20240108-1965-pqhjc9/puma-6.4.2/lib/puma/client.rb	2024-01-08 16:26:49.743496606 +0000
                @@ -53,0 +54,8 @@
                +    # The maximum number of bytes we'll buffer looking for a valid
                +    # chunk header.
                +    MAX_CHUNK_HEADER_SIZE = 4096
                +
                +    # The maximum amount of excess data the client sends
                +    # using chunk size extensions before we abort the connection.
                +    MAX_CHUNK_EXCESS = 16 * 1024
                +
                @@ -498,0 +507 @@
                +      @excess_cr = 0
                @@ -579,0 +589,14 @@
                +          # Track the excess as a function of the size of the
                +          # header vs the size of the actual data. Excess can
                +          # go negative (and is expected to) when the body is
                +          # significant.
                +          # The additional of chunk_hex.size and 2 compensates
                +          # for a client sending 1 byte in a chunked body over
                +          # a long period of time, making sure that that client
                +          # isn't accidentally eventually punished.
                +          @excess_cr += (line.size - len - chunk_hex.size - 2)
                +
                +          if @excess_cr >= MAX_CHUNK_EXCESS
                +            raise HttpParserError, "Maximum chunk excess detected"
                +          end
                +
                @@ -606,0 +630,4 @@
                +          if @prev_chunk.size + chunk.size >= MAX_CHUNK_HEADER_SIZE
                +            raise HttpParserError, "maximum size of chunk header exceeded"
                +          end
                +
        lib/puma/const.rb
                --- /tmp/d20240108-1965-pqhjc9/puma-6.4.1/lib/puma/const.rb	2024-01-08 16:26:49.731496564 +0000
                +++ /tmp/d20240108-1965-pqhjc9/puma-6.4.2/lib/puma/const.rb	2024-01-08 16:26:49.747496619 +0000
                @@ -103 +103 @@
                -    PUMA_VERSION = VERSION = "6.4.1"
                +    PUMA_VERSION = VERSION = "6.4.2"

Bumps [puma](https://github.com/puma/puma) from 6.4.1 to 6.4.2.
- [Release notes](https://github.com/puma/puma/releases)
- [Changelog](https://github.com/puma/puma/blob/master/History.md)
- [Commits](puma/puma@v6.4.1...v6.4.2)

---
updated-dependencies:
- dependency-name: puma
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/bundler/puma-6.4.2 branch from c44cf26 to 604ba72 Compare January 19, 2024 17:08
@dentarg dentarg enabled auto-merge (squash) February 17, 2024 14:54
@dentarg dentarg merged commit 720595c into main Feb 17, 2024
5 checks passed
@dentarg dentarg deleted the dependabot/bundler/puma-6.4.2 branch February 17, 2024 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies ruby Pull requests that update Ruby code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant