Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

puppetlabs/facter
main @ c222602
2
Fixes
2
CVEs
MEDIUM
Peak severity
Highlights
Denial of Service: 2 prior fixes. Scrutinize any change in this area.
lib/facter/custom_facts/core/execution/base.rb: most-fixed (1 issue). Treat as high-risk during review.
0 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Denial of Service: Command execution can block indefinitely if subprocesses write large volumes of output to stdout or stderr sequentially. Using blocking, sequential reads on OS pipe buffers creates a deadlock condition that halts Facter's execution.
Denial of Service: Improper cleanup of sockets in Solaris FFI functions using shutdown(2) instead of close(2) leads to file descriptor leaks, which can exhaust system resources over prolonged execution runs.
Insecure Search Path: When running under older Ruby versions, an untrusted search path vulnerability allows local privilege escalation or arbitrary code execution via Trojan horse files placed in the current working directory.