A flaw was found in the memcached cache plugin of the community.general Ansible collection. (CVE-2026-87874)
Description
A vulnerability in the memcached cache plugin of the community.general Ansible collection allows remote code execution. The plugin relies on python-memcached which pickles data without explicit serialization, enabling an attacker with network access to a memcached instance to inject malicious pickle payloads. These payloads are deserialized and executed on the Ansible controller when the poisoned cache is read. The flaw affects multiple specific versions of the Ansible collection.
CVSS v3.1
Score 8.1high
Affected software
pkg:deb/ubuntu/ansible?arch=source&distro=esm-infra-legacy/trustypkg:deb/ubuntu/ansible?arch=source&distro=esm-apps/xenialpkg:deb/ubuntu/ansible?arch=source&distro=esm-apps/bionicpkg:deb/ubuntu/ansible?arch=source&distro=esm-apps/focalpkg:deb/ubuntu/ansible-core?arch=source&distro=jammypkg:deb/ubuntu/ansible?arch=source&distro=esm-apps/jammypkg:deb/ubuntu/ansible?arch=source&distro=noblepkg:deb/ubuntu/ansible-core?arch=source&distro=noblepkg:deb/ubuntu/ansible?arch=source&distro=stonkingpkg:deb/ubuntu/ansible-core?arch=source&distro=stonkingpkg:deb/ubuntu/ansible?arch=source&distro=resolutepkg:deb/ubuntu/ansible-core?arch=source&distro=resoluteRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The memcached cache plugin in the community.general Ansible collection does not perform explicit serialization and depends on python-memcached, which uses Python's pickle mechanism to serialize and deserialize cache values. Since memcached is unauthenticated and cache keys are predictable, an attacker who can access a network-exposed or shared memcached instance can write a crafted pickle payload. When the Ansible controller reads the poisoned fact cache, the malicious payload is deserialized and executed, resulting in remote code execution on the controller. This vulnerability is tracked as CVE-2026-87874 with a CVSS 3.1 score of 8.1 (high impact but medium severity assigned).
Potential Impact
Successful exploitation allows an unauthenticated attacker with network access to a memcached instance used by the Ansible controller to execute arbitrary code remotely on the controller. This compromises confidentiality, integrity, and availability of the controller system.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict network access to memcached instances used by Ansible controllers to trusted hosts only to prevent unauthorized access. Avoid exposing memcached instances to untrusted networks.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- UBUNTU-CVE-2026-87874
- Osv Schema Version
- 1.7.0
- Ecosystems
- ["Ubuntu:Pro:14.04:LTS","Ubuntu:Pro:16.04:LTS","Ubuntu:Pro:18.04:LTS","Ubuntu:Pro:20.04:LTS","Ubuntu:22.04:LTS","Ubuntu:Pro:22.04:LTS","Ubuntu:24.04:LTS","Ubuntu:26.10","Ubuntu:26.04:LTS"]
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6ad3f54b2cdf04f65665867d
Added to database: 10/17/2026, 22:23:07 UTC
Last enriched: 10/17/2026, 23:21:39 UTC
Last updated: 10/17/2026, 23:21:39 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.