cve.bz

CVE-2026-87874 Deserialization of Untrusted Data

8.1 highEPSS 0.7%

High (8.1). EPSS 0.7% estimated probability of exploitation activity in the next 30 days.

On this page
A flaw was found in the memcached cache plugin of the community.general Ansible collection. Although its documentation states that records are stored in JSON format, the plugin performs no explicit serialization and relies on python-memcached, which pickles values on write and unpickles them on read. Because memcached is unauthenticated and cache keys are predictable, an attacker able to reach a network-exposed or shared memcached instance can write a crafted pickle payload that is deserialized and executed on the Ansible controller when the poisoned fact cache is next read, leading to remote code execution.

Severity

CVSS 3.1

8.1 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.7% (unchanged from 0.7% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 55th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-09-09. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-502 Deserialization of Untrusted Data
OWASP Top 10
A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Ask an AI about this CVE

Show the promptExplain CVE-2026-87874 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-87874?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-87874?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-87874 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14ansibleno fix listedDEBIAN-CVE-2026-87874
Ubuntu22.04:LTSansible-coreno fix listedUBUNTU-CVE-2026-87874
Ubuntu24.04:LTS, 26.04:LTS, 26.10ansible, ansible-coreno fix listedUBUNTU-CVE-2026-87874
UbuntuPro:14.04:LTS, Pro:16.04:LTS, Pro:18.04:LTS and 2 moreansibleno fix listedUBUNTU-CVE-2026-87874

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This issue affects the community.general collection, which is community-

maintained content and is not shipped in a Red Hat-supported execution

environment for Ansible Automation Platform, nor in RHEL AppStream.

Exploitation requires a non-default, insecure deployment (a reachable,

unauthenticated memcached shared across a trust boundary); with memcached

isolated to the controller there is no security impact.

Red Hat's mitigation

Bind memcached to localhost only (the plugin default, 127.0.0.1:11211) and

never expose an unauthenticated memcached across a trust boundary; isolate the

cache to the controller. Prefer the redis cache plugin (explicit JSON) or the

jsonfile/yaml cache plugins where a shared/remote fact cache is required. Treat

any host with write access to the fact-cache memcached as trusted to run code

on the controller.

ProductPackageStateAdvisory
Red Hat Ceph Storage 5ansible-collection-community-generalFix deferred
Red Hat Ceph Storage 9ansible-collection-community-generalFix deferred
Red Hat OpenStack Platform 17.1ansible-collection-community-generalFix deferred
Red Hat OpenStack Platform 18.0ansible-collection-community-generalFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-87874.

Attack patterns (CAPEC)

  • CAPEC-586 Object Injection Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON