Remote Code Execution Vulnerability in Memcached Cache Plugin of Ansible
CVE-2026-87874

8.1HIGH

What is CVE-2026-87874?

A significant flaw exists in the memcached cache plugin of the Ansible Community General Collection. The plugin documents that records should be stored in JSON format; however, it lacks explicit serialization, relying instead on python-memcached, which uses pickling on both write and read operations. This absence of authentication for memcached, combined with predictable cache keys, allows an attacker to exploit a network-exposed or shared memcached instance. By injecting a malicious pickle payload, the attacker can execute arbitrary code on the Ansible controller when the compromised cache is accessed. This vulnerability underscores serious risks related to improper handling of serialized data and insufficient security measures in caching mechanisms.

References

CVSS V3.1

Score:
8.1
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
High
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Red Hat would like to thank Jeong Woochang for reporting this issue.
.