CVE-2022-29256

MEDIUM

sharp <0.30.5 - Command Injection

Title source: llm
STIX 2.1

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.

References (2)

Core 2

Scores

CVSS v3 6.5
EPSS 0.0016
EPSS Percentile 36.9%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact total

Details

CWE
CWE-78 CWE-77
Status published
Products (2)
npm/sharp 0 - 0.30.5npm
sharp_project/sharp < 0.30.5
Published May 25, 2022
Tracked Since Feb 18, 2026