GHSA-86r9-39j9-99wp

Suggest an improvement
Source
https://github.com/advisories/GHSA-86r9-39j9-99wp
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/06/GHSA-86r9-39j9-99wp/GHSA-86r9-39j9-99wp.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-86r9-39j9-99wp
Aliases
Published
2021-06-23T17:17:52Z
Modified
2023-11-01T04:47:14.052132Z
Severity
  • 9.1 (Critical) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N CVSS Calculator
Summary
Elliptic Curve Key Disclosure in go-jose
Details

go-jose before 1.0.4 suffers from an invalid curve attack for the ECDH-ES algorithm. When deriving a shared key using ECDH-ES for an encrypted message, go-jose neglected to check that the received public key on a message is on the same curve as the static private key of the receiver, thus making it vulnerable to an invalid curve attack.

Database specific
{
    "nvd_published_at": null,
    "github_reviewed_at": "2021-05-20T16:54:50Z",
    "severity": "CRITICAL",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-326"
    ]
}
References

Affected packages

Go / gopkg.in/square/go-jose.v1

Package

Name
gopkg.in/square/go-jose.v1
View open source insights on deps.dev
Purl
pkg:golang/gopkg.in/square/go-jose.v1

Affected ranges

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

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
Fixed
1.0.4