PoC Watch
Puppet Server code execution through agent report deserialization
Exploited in the wildCritical 9.4
Puppet Server deserializes untrusted data when processing agent run reports, so a client holding any CA-signed agent certificate can run code as the Puppet service user. That user can read the CA signing key, and researchers showed a stolen key can be used to run commands as root on managed nodes. Perforce shipped fixes on November 3. CISA added it to KEV on November 17.
Mitigation by layer
Patch
- Upgrade Puppet Enterprise to 2026.0.1, 2025.12.1 or 2023.8.13, or Puppet Core to 9.1.3 or 8.22.2, on every server and compiler.
Step by step
- Check the server version.
puppetserver --version - Upgrade using your normal installer or package process, then confirm the version again on each compiler.
- Check the server version.
Reduce exposure
- Allow the Puppet Server port (8140 by default) only from managed nodes. It should never be reachable from the internet.
Harden access
- Make sure not just anyone can get a signed agent certificate. Exploitation needs one.
Step by step
- Check the autosign setting. Naive autosigning (true) signs every request.
puppet config print autosign --section serverExpected output
false, or a path to a policy executable or allow list. true means anyone who can reach the CA gets a certificate.
- List signed certificates and revoke any you cannot tie to a real node.
puppetserver ca list --all
- Check the autosign setting. Naive autosigning (true) signs every request.
Detect
- Review Puppet Server logs for report submissions from unexpected certificate names, and alert on the Puppet service user spawning unexpected processes.
Contain and recover
- If the server was compromised, treat the CA key as stolen. Patching does not undo that. Plan to regenerate the CA and reissue agent certificates, and review what was run on managed nodes.