CVE-2026-115731
Perforce Puppet Enterprise Deserialization of Untrusted Data Vulnerability
Puppet Server has a flaw where it trusts malicious data sent by agents, allowing attackers to run unauthorized commands on the server.
What is it?
This is a deserialization vulnerability. When the Puppet Server receives a report from an agent, it converts the data back into an object. If the server does not properly check this data, an attacker can send a specially crafted file that forces the server to execute malicious code.
Think of it like this
Imagine a mailroom that automatically opens and follows instructions found inside every package it receives, without checking if the package came from a trusted sender or if the instructions are safe.
How the attack works
- An attacker obtains a valid agent certificate.
- The attacker creates a malicious report containing a crafted rich-data type.
- The attacker sends this report to the Puppet Server via a PUT request.
- The server processes the report and deserializes the malicious data.
- The server executes the attacker's code with the privileges of the Puppet service user.
Real-world example
Imagine an attacker gains access to a network and uses an autosigned certificate to impersonate a legitimate agent, then sends a malicious report to the central server to gain full control over it.
Who is affected
Puppet and Puppet Enterprise in affected releases.
Impact
An attacker can gain full control over the Puppet Server, allowing them to steal data, modify configurations, or disrupt services.
How to fix it
- Apply the security patches provided by Puppet immediately.
- Disable autosigning of certificates to prevent unauthorized agents from joining.
- Review and restrict network access to the Puppet Server.
- Follow CISA BOD 26-04 guidance for patching and forensics.
Key terms
- Deserialization
- The process of turning stored data back into a complex object that a program can use.
- Arbitrary Code Execution
- A vulnerability that allows an attacker to run any command or program they choose on a target system.
- Autosigning
- A feature that automatically approves new agent certificates, which can be dangerous if not strictly controlled.
- CWE-502
- A common weakness identifier for insecure deserialization of untrusted data.
Official description (NVD)
Deserialization of untrusted data in the report-processing code of Puppet, as used by Puppet Server, in the affected releases, allows a client that holds any CA-signed agent certificate to execute arbitrary code on the Puppet Server as its service user by submitting a report containing a crafted rich-data type via PUT request. Where the certificate authority autosigns requests without strong verification, an unauthenticated network attacker can obtain such a certificate.