CVE-2022-29256
Possible vulnerability at 'npm install' time in sharp if an attacker has control over build environment
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
0Exploited in Wild
-Decision
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
CVSS Scores
SSVC
- Decision:-
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
References (2)
URL | Tag | Source |
---|
URL | Date | SRC |
---|
URL | Date | SRC |
---|---|---|
https://github.com/lovell/sharp/commit/a6aeef612be50f5868a77481848b1de674216f0c | 2023-06-28 | |
https://github.com/lovell/sharp/security/advisories/GHSA-gp95-ppv5-3jc5 | 2023-06-28 |
URL | Date | SRC |
---|
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
|