🔍 CVE-2026-87874

8.1
CVSS Score
HIGH
2026-09-09
2026-09-09 20:13
✅ 완료

🇰🇷 한글 설명

Ansible community.general 컬렉션의 memcached 캐시 플러그인에서 결함이 발견되었습니다. 해당 플러그인은 데이터를 JSON으로 저장한다고 명시되어 있으나, 실제로는 python-memcached를 사용하여 데이터를 피클(pickle) 방식으로 직렬화합니다. 공격자가 네트워크에 노출된 memcached 인스턴스에 조작된 피클 페이로드를 주입하면, Ansible 컨트롤러가 이를 읽을 때 원격 코드 실행(RCE)이 발생할 수 있습니다.

💡 쉬운 설명

Ansible이 데이터를 저장할 때 사용하는 방식에 보안 허점이 있어, 해커가 가짜 데이터를 심어놓을 수 있습니다. 이 가짜 데이터를 Ansible이 읽는 순간 해커가 원하는 명령어를 컴퓨터에서 실행하게 됩니다.

🇺🇸 원문 (English)

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.

📍 영향받는 시스템

Ansible community.general collection (memcached cache plugin 사용 시)

⚔️ 공격 벡터

네트워크에 노출된 memcached 인스턴스에 조작된 pickle 페이로드를 주입하여 Ansible 컨트롤러의 원격 코드 실행 유도

🛡️ 대응 방법

memcached 플러그인 대신 안전한 직렬화 방식을 사용하거나, memcached 인스턴스에 대한 접근 제어 및 인증을 강화하십시오.

🔧 검증 코드

출력 결과에 community.general 컬렉션이 포함되어 있는지 확인하여 사용 여부를 파악합니다.

Shell / Script
ansible-galaxy collection list | grep community.general

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

💻 영향받는 소프트웨어

Python