6.7
MEDIUM
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.

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.

Affected Products

The following products are affected by CVE-2022-29256 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Sharp_project sharp
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

Updated: 3 years, 6 months ago
0 stars 0 fork 0 watcher
Born at : May 2, 2021, 4:50 p.m. This repo has been linked 22 different CVEs too.

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
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
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:

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

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability
© cvefeed.io
Latest DB Update: May. 01, 2025 11:01