CVE-2022-29256
Sharp NPM Install Path Injection Vulnerability
Description
sharp is an application for Node.js image processing. Prior to version 0.30.5, there is a possible vulnerability in logic that is run only at `npm install` time when installing versions of `sharp` prior to the latest v0.30.5. If an attacker has the ability to set the value of the `PKG_CONFIG_PATH` environment variable in a build environment then they might be able to use this to inject an arbitrary command at `npm install` time. This is not part of any runtime code, does not affect Windows users at all, and is unlikely to affect anyone that already cares about the security of their build environment. This problem is fixed in version 0.30.5.
INFO
Published Date :
May 25, 2022, 10:15 p.m.
Last Modified :
Nov. 21, 2024, 6:58 a.m.
Source :
[email protected]
Remotely Exploitable :
No
Impact Score :
5.9
Exploitability Score :
0.8
Public PoC/Exploit Available at Github
CVE-2022-29256 has a 1 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2022-29256
.
URL | Resource |
---|---|
https://github.com/lovell/sharp/commit/a6aeef612be50f5868a77481848b1de674216f0c | Patch Third Party Advisory |
https://github.com/lovell/sharp/security/advisories/GHSA-gp95-ppv5-3jc5 | Patch Third Party Advisory |
https://github.com/lovell/sharp/commit/a6aeef612be50f5868a77481848b1de674216f0c | Patch Third Party Advisory |
https://github.com/lovell/sharp/security/advisories/GHSA-gp95-ppv5-3jc5 | Patch Third Party Advisory |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
None
JavaScript Vue TypeScript SCSS CSS
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2022-29256
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2022-29256
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://github.com/lovell/sharp/commit/a6aeef612be50f5868a77481848b1de674216f0c Added Reference https://github.com/lovell/sharp/security/advisories/GHSA-gp95-ppv5-3jc5 -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
Reanalysis by [email protected]
Jun. 28, 2023
Action Type Old Value New Value Removed CWE NIST CWE-77 Added CWE NIST CWE-78 -
Initial Analysis by [email protected]
Jun. 07, 2022
Action Type Old Value New Value Added CVSS V2 NIST (AV:L/AC:L/Au:N/C:P/I:P/A:P) Added CVSS V3.1 NIST AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H Changed Reference Type https://github.com/lovell/sharp/commit/a6aeef612be50f5868a77481848b1de674216f0c No Types Assigned https://github.com/lovell/sharp/commit/a6aeef612be50f5868a77481848b1de674216f0c Patch, Third Party Advisory Changed Reference Type https://github.com/lovell/sharp/security/advisories/GHSA-gp95-ppv5-3jc5 No Types Assigned https://github.com/lovell/sharp/security/advisories/GHSA-gp95-ppv5-3jc5 Patch, Third Party Advisory Added CWE NIST CWE-77 Added CPE Configuration OR *cpe:2.3:a:sharp_project:sharp:*:*:*:*:*:node.js:*:* versions up to (excluding) 0.30.5
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2022-29256
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2022-29256
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.09 }} 0.05%
score
0.26540
percentile