Skip to content

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

Merged
techknowlogick merged 1 commit intocesanta:mainfrom
octoml:mcook/nim-694-update-go-jose-for-docker-auth
Feb 5, 2024
Merged

Security issue: resolve GHSA-2c7c-3mj9-8fqh#381
techknowlogick merged 1 commit intocesanta:mainfrom
octoml:mcook/nim-694-update-go-jose-for-docker-auth

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:

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/[email protected]
- 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
@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.

2 participants