Miggo Logo

CVE-2022-25350: Command Injection in puppet-facter

7.8

CVSS Score
3.1

Basic Information

EPSS Score
0.47745%
Published
1/26/2023
Updated
2/2/2023
KEV Status
No
Technology
TechnologyJavaScript

Technical Details

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
puppet-facternpm<= 0.0.2

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot 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.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

*ll v*rsions o* t** p**k*** pupp*t-***t*r *r* vuln*r**l* to *omm*n* Inj**tion vi* t** **t***t *un*tion *u* to improp*r input s*nitiz*tion.

Reasoning

T** vuln*r**ility m*ni**sts in t** `**t***t` *un*tion w**r* us*r input (***tN*m*) is uns***ly int*rpol*t** into *n `*x**()` **ll. T** *o** *n*lysis s*ows no input v*li**tion/s*nitiz*tion, *n* t** Snyk Po* **monstr*t*s *xploit*tion vi* *omm*n* inj**ti