🔍 CVE-2025-68616

7.5
CVSS Score
HIGH
2026-01-19
2026-07-15 02:17
✅ 완료

🇰🇷 한글 설명

WeasyPrint 68.0 미만 버전의 default_url_fetcher에서 SSRF 보호 우회 취약점이 발견되었습니다. 공격자는 개발자가 설정한 보안 정책을 우회하여 내부 네트워크 리소스나 클라우드 메타데이터 엔드포인트에 접근할 수 있습니다. 이는 urllib 라이브러리가 리다이렉트를 자동으로 수행할 때 새로운 목적지에 대한 재검증을 수행하지 않기 때문에 발생합니다.

💡 쉬운 설명

웹 페이지를 PDF로 만드는 프로그램이 보안 규칙을 무시하고 내부 네트워크에 몰래 접속할 수 있는 결함입니다. 공격자가 가짜 주소로 연결을 유도하면, 프로그램이 검증 없이 내부의 중요한 정보가 담긴 주소로 찾아가게 됩니다.

🇺🇸 원문 (English)

WeasyPrint helps web developers to create PDF documents. Prior to version 68.0, a server-side request forgery (SSRF) protection bypass exists in WeasyPrint's `default_url_fetcher`. The vulnerability allows attackers to access internal network resources (such as `localhost` services or cloud metadata endpoints) even when a developer has implemented a custom `url_fetcher` to block such access. This occurs because the underlying `urllib` library follows HTTP redirects automatically without re-validating the new destination against the developer's security policy. Version 68.0 contains a patch for the issue.

📍 영향받는 시스템

WeasyPrint version < 68.0

⚔️ 공격 벡터

HTTP 리다이렉트를 이용한 서버 측 요청 위조(SSRF) 공격

🛡️ 대응 방법

WeasyPrint를 최신 버전인 68.0 이상으로 업데이트하십시오.

🔧 검증 코드

출력된 버전 번호가 68.0 미만이면 취약한 상태입니다.

Shell / Script
pip show weasyprint | grep Version

📊 CVSS Vector String

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