CVE-2022-25350: Command Injection in puppet-facter
7.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.47745%
CWE
Published
1/26/2023
Updated
2/2/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
puppet-facter | npm | <= 0.0.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability manifests in the getFact
function where user input (factName) is unsafely interpolated into an exec()
call. The code analysis shows no input validation/sanitization, and the Snyk PoC demonstrates exploitation via command injection payloads. The CWE-77 mapping confirms this is a command injection vulnerability through improper neutralization of special elements.