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

Security issue: resolve GHSA-2c7c-3mj9-8fqh #381

Conversation

mikecook
Copy link
Contributor

An attacker specifying a large "p2c" value can cause JSONWebEncryption.Decrypt and JSONWebEncryption.DecryptMulti to consume large amounts of CPU, causing a DoS.

Update package github.com/coreos/go-oidc to version that requires fixed version of go-jose. Note that github.com/square/go-jose is deprecated and has been replaced by github.com/go-jose/go-jose

commands run:

  • go get -u github.com/coreos/go-oidc/v3@v3.9.0
  • go mod tidy -go=1.16

see:

An attacker specifying a large "p2c" value can cause
JSONWebEncryption.Decrypt and JSONWebEncryption.DecryptMulti to
consume large amounts of CPU, causing a DoS.

Update package github.com/coreos/go-oidc to version that requires
fixed version of go-jose. Note that github.com/square/go-jose is
deprecated and has been replaced by github.com/go-jose/go-jose

commands run:
- go get -u github.com/coreos/go-oidc/v3@v3.9.0
- go mod tidy -go=1.16

see:
- GHSA-2c7c-3mj9-8fqh
- coreos/go-oidc#399
- https://github.com/square/go-jose
- https://github.com/go-jose/go-jose
@mikecook
Copy link
Contributor Author

mikecook commented Feb 5, 2024

@techknowlogick Can you please review.

@techknowlogick
Copy link
Collaborator

@mikecook thanks for ping/PR. I've just kicked off CI and once passes I'll be able to merge :)

@techknowlogick techknowlogick merged commit 6d81420 into cesanta:main Feb 5, 2024
8 checks passed
@mikecook mikecook deleted the mcook/nim-694-update-go-jose-for-docker-auth branch February 5, 2024 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants