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

go-jose.v2 Vulnerability #761

Closed
Ignaciojeria opened this issue Oct 2, 2024 · 1 comment
Closed

go-jose.v2 Vulnerability #761

Ignaciojeria opened this issue Oct 2, 2024 · 1 comment
Assignees
Labels
defect Something isn't working
Milestone

Comments

@Ignaciojeria
Copy link

Ignaciojeria commented Oct 2, 2024

I am using zrok as part of the einarCLI Installation, and Dependabot has alerted me to a vulnerability related to the following package:

Go JOSE vulnerable to Improper Handling of Highly Compressed Data (Data Amplification)

go mod why -m gopkg.in/square/go-jose.v2

go: downloading go.einride.tech/aip v0.68.0
# gopkg.in/square/go-jose.v2
archetype/app/shared/infrastructure/zrok
github.com/openziti/zrok/sdk/golang/sdk
github.com/openziti/sdk-golang/ziti
github.com/openziti/sdk-golang/edge-apis
github.com/zitadel/oidc/v2/pkg/client/rp
gopkg.in/square/go-jose.v2

Impact
An attacker could send a JWE containing compressed data, which would use large amounts of memory and CPU when decompressed by the Decrypt or DecryptMulti functions. These functions now return an error if the decompressed data exceeds 250kB or 10x the compressed size (whichever is larger). Thanks to Enze Wang@Alioth and Jianjun Chen@Zhongguancun Lab (@zer0yu and @chenjj) for reporting this issue.

Patches
The problem has been fixed in the following packages and versions:

github.com/go-jose/go-jose/v4 version 4.0.1
github.com/go-jose/go-jose/v3 version 3.0.3
gopkg.in/go-jose/go-jose.v2 version 2.6.3
Note: The issue will not be fixed in the gopkg.in/square/go-jose.v2 package as it has been archived.

@michaelquigley michaelquigley changed the title Vulnerability Issue on my deps go-jose.v2 Vulnerability Oct 3, 2024
@michaelquigley michaelquigley self-assigned this Oct 3, 2024
@michaelquigley michaelquigley added the defect Something isn't working label Oct 3, 2024
@michaelquigley michaelquigley added this to the v0.4 milestone Oct 3, 2024
@michaelquigley
Copy link
Collaborator

Indirect dependecy from github.com/openziti/sdk-golang.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect Something isn't working
Projects
Development

No branches or pull requests

2 participants