# CVE-2026-87874: Community.general: community.general: memcached cache plugin deserializes untrusted pickle data from memcached, enabling cache-poisoning remote code execution on the ansible controller

- Severity: High 8.1 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 38% of CVEs (2026-12-01)
- Published: 2026-09-09T16:06:22.995Z
- Modified: 2026-09-10T12:50:27.938Z
- Weaknesses: CWE-502
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: redhat

## Description

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.

(As written by CVE List.)

## Affected

- ansible-collection-community-general: no versions given

## References

- <https://access.redhat.com/security/cve/CVE-2026-87874> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2530995> (issue-tracking)

## Sources

- CVE List: [CVE-2026-87874](https://www.cve.org/CVERecord?id=CVE-2026-87874), CVE Terms of Use, modified 2026-09-10
- NVD: [CVE-2026-87874](https://nvd.nist.gov/vuln/detail/CVE-2026-87874), Public domain, modified 2026-09-09

---

Page: https://cve.day/CVE-2026-87874 · Whole record: https://cve.day/CVE-2026-87874.json · Rebuilt by cve.day 2026-11-25T22:59:37.775Z
