🔍 CVE-2024-47180

8.8
CVSS Score
HIGH
2024-09-26
2026-04-15 00:35
✅ 완료

🇰🇷 한글 설명

Shields.io의 동적 JSON/TOML/YAML 배지 기능에서 JSONPath 라이브러리 취약점을 통한 원격 코드 실행 취약점입니다. server-2024-09-25 이전 버전의 모든 자체 호스팅 인스턴스가 영향을 받으며, 악의적인 JSONPath 표현식을 포함한 요청으로 임의 코드 실행이 가능합니다.

💡 쉬운 설명

배지 생성 서비스(Shields.io)에 특정 기능을 통해 공격자가 시스템을 원격으로 제어할 수 있는 결함이 있습니다. 이 서비스를 직접 운영하는 모든 사람이 영향을 받습니다.

🇺🇸 원문 (English)

Shields.io is a service for concise, consistent, and legible badges in SVG and raster format. Shields.io and users self-hosting their own instance of shields using version < `server-2024-09-25` are vulnerable to a remote execution vulnerability via the JSONPath library used by the Dynamic JSON/Toml/Yaml badges. This vulnerability would allow any user with access to make a request to a URL on the instance to the ability to execute code by crafting a malicious JSONPath expression. All users who self-host an instance are vulnerable. This problem was fixed in server-2024-09-25. Those who follow the tagged releases should update to `server-2024-09-25` or later. Those who follow the rolling tag on DockerHub, `docker pull shieldsio/shields:next` to update to the latest version. As a workaround, blocking access to the endpoints `/badge/dynamic/json`, `/badge/dynamic/toml`, and `/badge/dynamic/yaml` (e.g: via a firewall or reverse proxy in front of your instance) would prevent the exploitable endpoints from being accessed.

📍 영향받는 시스템

Shields.io server version < 2024-09-25 (자체 호스팅 인스턴스)

⚔️ 공격 벡터

/badge/dynamic/json, /badge/dynamic/toml, /badge/dynamic/yaml 엔드포인트에 악의적인 JSONPath 표현식을 포함한 요청 전송

🛡️ 대응 방법

server-2024-09-25 이상으로 업데이트 또는 방화벽/리버스 프록시로 해당 엔드포인트 차단

🔧 검증 코드

2024-09-25 이상 또는 'next' 태그가 표시되면 안전, 그 이전 버전이거나 설치 안 됨이면 취약함

Shell / Script
docker images shieldsio/shields --format '{{.Tag}}' 2>/dev/null | grep -E 'next|2024-[0-9]{2}-(0[9-9]|1[0-2])-[0-9]{2}|2025' || echo 'vulnerable'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Docker