VYPR
High severityNVD Advisory· Published Jan 24, 2023· Updated Apr 1, 2025

CVE-2022-25350

CVE-2022-25350

Description

All versions of puppet-facter contain a command injection flaw in the getFact function due to unsanitized input.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

All versions of puppet-facter contain a command injection flaw in the getFact function due to unsanitized input.

Vulnerability

Overview

The package puppet-facter is vulnerable to Command Injection in all versions via the getFact function, which improperly sanitizes user-supplied input before executing commands [1][2]. The flaw exists because the function passes unsanitized arguments directly to the shell, allowing arbitrary command execution [3].

Exploitation

Details

An attacker can exploit this vulnerability by passing a specially crafted string to the getFact function. For example, a proof-of-concept payload such as "& touch JHU" demonstrates that arbitrary commands can be injected alongside the intended fact query [3]. No authentication is required if the function is exposed to untrusted input, making it accessible to anyone who can supply arguments to this function [1].

Impact

Successful exploitation grants an attacker the ability to execute arbitrary operating system commands with the privileges of the application using puppet-facter. This can lead to full system compromise, data exfiltration, or further lateral movement within the affected environment [1][3].

Mitigation

As of the publication date, no fixed version of puppet-facter is available [3]. Users are advised to avoid passing untrusted input to the getFact function or to sanitize inputs rigorously as a workaround. The vulnerability has been reported and is tracked in security databases like Snyk [3] and NVD [1].

AI Insight generated on May 20, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
puppet-facternpm
<= 0.0.2

Affected products

2

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

5

News mentions

0

No linked articles in our index yet.