// For flags

CVE-2022-29256

Possible vulnerability at 'npm install' time in sharp if an attacker has control over build environment

Severity Score

6.7
*CVSS v3.1

Exploit Likelihood

*EPSS

Affected Versions

*CPE

Public Exploits

0
*Multiple Sources

Exploited in Wild

-
*KEV

Decision

-
*SSVC
Descriptions

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.

sharp es una aplicación para el procesamiento de imágenes en Node.js. En versiones anteriores a 0.30.5, se presenta una posible vulnerabilidad en la lógica que es ejecutada sólo en el momento de "npm install" cuando son instaladas versiones de "sharp" anteriores a la última v0.30.5. Si un atacante presenta la capacidad de establecer el valor de la variable de entorno "PKG_CONFIG_PATH" en un entorno de construcción, entonces podría ser capaz de usar esto para inyectar un comando arbitrario en el momento de "npm install". Esto no es parte de ningún código en tiempo de ejecución, no afecta a usuarios de Windows en absoluto, y es poco probable que afecte a cualquier persona que ya se preocupa por la seguridad de su entorno de construcción. Este problema ha sido corregido en versión 0.30.5

*Credits: N/A
CVSS Scores
Attack Vector
Local
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
Attack Vector
Local
Attack Complexity
Low
Privileges Required
High
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
Attack Vector
Local
Attack Complexity
Low
Authentication
None
Confidentiality
Partial
Integrity
Partial
Availability
Partial
* Common Vulnerability Scoring System
SSVC
  • Decision:-
Exploitation
-
Automatable
-
Tech. Impact
-
* Organization's Worst-case Scenario
Timeline
  • 2022-04-13 CVE Reserved
  • 2022-05-25 CVE Published
  • 2023-12-16 EPSS Updated
  • 2024-08-03 CVE Updated
  • ---------- Exploited in Wild
  • ---------- KEV Due Date
  • ---------- First Exploit
CWE
  • CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
CAPEC
Affected Vendors, Products, and Versions
Vendor Product Version Other Status
Vendor Product Version Other Status <-- --> Vendor Product Version Other Status
Sharp Project
Search vendor "Sharp Project"
Sharp
Search vendor "Sharp Project" for product "Sharp"
< 0.30.5
Search vendor "Sharp Project" for product "Sharp" and version " < 0.30.5"
node.js
Affected