CVE-2015-8013: Openpgp OpenPGP 1.2.0 And Earlier Decrypts Vulnerability
HIGHCVE-2015-8013 is a HIGH (CVSS 7.5) openpgp 1.2.0 and earlier decrypts vulnerability (General Security Weakness) affecting Openpgp libraries in the npm ecosystem. The issue involves openpgp 1.2.0 and earlier decrypts arbitrary messages. Remediation is available by upgrading affected packages to version 1.3.0.
CVE-2015-8013 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2015-8013
To remediate this vulnerability, upgrade all affected Openpgp dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install openpgp@1.3.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls openpgp
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2015-8013, inspect your project dependencies using npm:
npm ls openpgp
Analyze the terminal output to locate any version of Openpgp in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.3.0), your application is affected.
Note: The npm ls openpgp command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under General Security Weakness. In Openpgp, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2015-8013 Affected Openpgp Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
openpgp
|
npm |
< 1.3.0
|
1.3.0
|
References
Frequently Asked Questions
What is CVE-2015-8013?
Which Openpgp versions are affected?
What version fixes CVE-2015-8013?
Is openpgp affected?
What is the CVSS score of CVE-2015-8013?
What CWE is associated with CVE-2015-8013?
How can I check npm dependencies for CVE-2015-8013?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-qmvq-f3fj-m3wg",
"modified" : "2022-06-17T21:22:31Z",
"published" : "2022-05-17T02:15:35Z",
"aliases" : [ "CVE-2015-8013" ],
"summary" : "OpenPGP 1.2.0 and earlier decrypts arbitrary messages",
"details" : "s2k.js in OpenPGP.js will decrypt arbitrary messages regardless of passphrase for crafted PGP keys which allows remote attackers to bypass authentication if message decryption is used as an authentication mechanism via a crafted symmetrically encrypted PGP message.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "openpgp"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.3.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-8013"
}, {
"type" : "WEB",
"url" : "https://github.com/openpgpjs/openpgpjs/commit/668a9bbe7033f3f475576209305eb57a54306d29"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/openpgpjs/openpgpjs"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2015/10/30/5"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-06-17T21:22:31Z",
"nvd_published_at" : "2017-07-25T18:29:00Z"
}
}