GO-2023-2334

Source
https://pkg.go.dev/vuln/GO-2023-2334
Import Source
https://vuln.go.dev/ID/GO-2023-2334.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2023-2334
Aliases
Published
2023-11-21T15:39:17Z
Modified
2024-05-20T16:03:47Z
Summary
Denial of service via decryption of malicious PBES2 JWE objects in github.com/go-jose/go-jose/v3
Details

The go-jose package is subject to a "billion hashes attack" causing denial-of-service when decrypting JWE inputs. This occurs when an attacker can provide a PBES2 encrypted JWE blob with a very large p2c value that, when decrypted, produces a denial-of-service.

Database specific
{
    "review_status": "REVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2023-2334"
}
References

Affected packages

Go / github.com/go-jose/go-jose/v3

Package

Name
github.com/go-jose/go-jose/v3
View open source insights on deps.dev
Purl
pkg:golang/github.com/go-jose/go-jose/v3

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.0.1

Ecosystem specific

{
    "imports": [
        {
            "path": "github.com/go-jose/go-jose/v3",
            "symbols": [
                "JSONWebEncryption.Decrypt",
                "JSONWebEncryption.DecryptMulti",
                "symmetricKeyCipher.decryptKey"
            ]
        }
    ]
}

Go / github.com/square/go-jose

Package

Name
github.com/square/go-jose
View open source insights on deps.dev
Purl
pkg:golang/github.com/square/go-jose

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected

Ecosystem specific

{
    "imports": [
        {
            "path": "github.com/square/go-jose",
            "symbols": [
                "JSONWebEncryption.Decrypt",
                "JSONWebEncryption.DecryptMulti",
                "symmetricKeyCipher.decryptKey"
            ]
        }
    ]
}