Skip to main content

A flaw was found in the memcached cache plugin of the community.general Ansible collection. (CVE-2026-87874)

0
Medium
Published: 09/09/2026 (09/09/2026, 17:17:00 UTC)
Source: GCVE Database
Product: ansible

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

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected software

Ubuntu:Pro:14.04:LTSmore threats →ghsa
ansible
pkg:deb/ubuntu/ansible?arch=source&distro=esm-infra-legacy/trusty
Affected versions
=1.1+dfsg-1=1.3.4+dfsg-1=1.4.0+dfsg-1=1.4.1+dfsg-1=1.4.3+dfsg-1=1.4.4+dfsg-1=1.5.4+dfsg-1=1.5.4+dfsg-1ubuntu0.1~esm1=1.5.4+dfsg-1ubuntu0.1~esm2=1.5.4+dfsg-1ubuntu0.1~esm3
Ubuntu:Pro:16.04:LTSmore threats →ghsa
ansible
pkg:deb/ubuntu/ansible?arch=source&distro=esm-apps/xenial
Affected versions
=1.9.2+dfsg-2=1.9.4-1=2.0.0.2-2=2.0.0.2-2ubuntu1=2.0.0.2-2ubuntu1.1=2.0.0.2-2ubuntu1.2=2.0.0.2-2ubuntu1.3=2.0.0.2-2ubuntu1.3+esm1=2.0.0.2-2ubuntu1.3+esm2=2.0.0.2-2ubuntu1.3+esm3=2.0.0.2-2ubuntu1.3+esm4=2.0.0.2-2ubuntu1.3+esm5=2.0.0.2-2ubuntu1.3+esm6
Ubuntu:Pro:18.04:LTSmore threats →ghsa
ansible
pkg:deb/ubuntu/ansible?arch=source&distro=esm-apps/bionic
Affected versions
=2.3.1.0+dfsg-2=2.5.0+dfsg-1=2.5.1+dfsg-1=2.5.1+dfsg-1ubuntu0.1=2.5.1+dfsg-1ubuntu0.1+esm1=2.5.1+dfsg-1ubuntu0.1+esm2=2.5.1+dfsg-1ubuntu0.1+esm3=2.5.1+dfsg-1ubuntu0.1+esm4=2.5.1+dfsg-1ubuntu0.1+esm5
Ubuntu:Pro:20.04:LTSmore threats →ghsa
ansible
pkg:deb/ubuntu/ansible?arch=source&distro=esm-apps/focal
Affected versions
=2.8.3+dfsg-1=2.8.6+dfsg-1=2.9.2+dfsg-1=2.9.4+dfsg-1=2.9.6+dfsg-1=2.9.6+dfsg-1ubuntu0.1~esm1=2.9.6+dfsg-1ubuntu0.1~esm2=2.9.6+dfsg-1ubuntu0.1~esm3
Ubuntu:22.04:LTSmore threats →ghsa
ansible-core
pkg:deb/ubuntu/ansible-core?arch=source&distro=jammy
Affected versions
=2.12.0-1=2.12.0-1ubuntu0.1
Ubuntu:Pro:22.04:LTSmore threats →ghsa
ansible
pkg:deb/ubuntu/ansible?arch=source&distro=esm-apps/jammy
Affected versions
=2.10.7+merged+base+2.10.8+dfsg-1=2.10.7+merged+base+2.10.8+dfsg-1ubuntu0.1~esm1=2.10.7+merged+base+2.10.8+dfsg-1ubuntu0.1~esm4
Ubuntu:24.04:LTSmore threats →ghsa
ansible
pkg:deb/ubuntu/ansible?arch=source&distro=noble
Affected versions
=7.7.0+dfsg-1=7.7.0+dfsg-3=9.2.0+dfsg-0ubuntu4=9.2.0+dfsg-0ubuntu5
Ubuntu:24.04:LTSmore threats →ghsa
ansible-core
pkg:deb/ubuntu/ansible-core?arch=source&distro=noble
Affected versions
=2.14.9-2=2.14.11-1=2.14.11-2=2.14.13-1=2.16.3-0ubuntu1=2.16.3-0ubuntu2
Ubuntu:26.10more threats →ghsa
ansible
pkg:deb/ubuntu/ansible?arch=source&distro=stonking
Affected versions
=13.1.0+dfsg-1ubuntu1=13.4.0+dfsg-1
Ubuntu:26.10more threats →ghsa
ansible-core
pkg:deb/ubuntu/ansible-core?arch=source&distro=stonking
Affected versions
=2.20.1-1=2.21.1~rc1-1=2.21.1~rc1-2=2.21.1~rc1-2ubuntu1=2.22.0~beta2-1
Ubuntu:26.04:LTSmore threats →ghsa
ansible
pkg:deb/ubuntu/ansible?arch=source&distro=resolute
Affected versions
=12.0.0~b1+dfsg-1=12.0.0+dfsg-1=12.2.0+dfsg-1=13.1.0+dfsg-1=13.1.0+dfsg-1ubuntu1
Ubuntu:26.04:LTSmore threats →ghsa
ansible-core
pkg:deb/ubuntu/ansible-core?arch=source&distro=resolute
Affected versions
=2.19.0-1ubuntu1=2.19.4-1=2.20.1-1

Run 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

AILast updated: 10/17/2026, 23:21:39 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses