GHSA-77jf-fjjf-xcww

Suggest an improvement
Source
https://github.com/advisories/GHSA-77jf-fjjf-xcww
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/08/GHSA-77jf-fjjf-xcww/GHSA-77jf-fjjf-xcww.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-77jf-fjjf-xcww
Aliases
Published
2019-08-23T21:42:22Z
Modified
2023-11-08T04:01:46Z
Severity
  • 5.9 (Medium) CVSS_V3 - CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
Invalid Curve Attack in openpgp
Details

Versions of openpgp prior to 4.3.0 are vulnerable to an Invalid Curve Attack. The package's implementation of ECDH fails to verify the validity of the communication partner's public key. The package calculates the resulting key secret based on an altered curve instead of the specified elliptic curve. Attackers may exfiltrate the victim's private key by choosing the altered curve. An attack requires the attacker being able to initiate message decryption and record the result. Furthermore the victim's key must offer an ECDH public key.

Recommendation

Upgrade to version 4.3.0 or later. If you are upgrading from a version <4.0.0 it is highly recommended to read the High-Level API Changes section of the openpgp 4.0.0 release: https://github.com/openpgpjs/openpgpjs/releases/tag/v4.0.0

Database specific
{
    "cwe_ids":  [
        "CWE-327"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2019-08-23T21:39:35Z",
    "nvd_published_at":  "2019-08-22T16:15:00Z",
    "severity":  "MODERATE"
}
References

Affected packages

npm / openpgp

Package

Affected ranges

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

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/08/GHSA-77jf-fjjf-xcww/GHSA-77jf-fjjf-xcww.json"