🔍 CVE-2026-5821

8.1
CVSS Score
HIGH
2026-07-02
2026-10-28 01:16
✅ 완료

🇰🇷 한글 설명

WordPress의 Image Optimizer 플러그인 1.7.4 이하 버전에서 임의 파일 삭제 취약점이 발견되었습니다. Image_Backup::remove() 함수가 백업 파일 경로에 대한 검증 없이 post meta에 저장된 경로를 직접 사용하여 파일을 삭제하기 때문에 발생합니다. 이를 통해 권한을 가진 공격자가 서버 내의 임의 파일을 삭제하여 서비스 거부나 데이터 손실을 유발할 수 있습니다.

💡 쉬운 설명

이미지 최적화 플러그인이 파일 경로를 제대로 확인하지 않아, 공격자가 가짜 경로를 입력하면 서버의 중요한 파일을 지워버릴 수 있는 문제입니다. 작성자 권한만 있어도 시스템 파일을 삭제하여 웹사이트를 망가뜨릴 수 있습니다.

🇺🇸 원문 (English)

The Image Optimizer plugin for WordPress is vulnerable to arbitrary file deletion in versions up to and including 1.7.4. This is due to insufficient path validation in the Image_Backup::remove() function where backup file paths stored in post meta are used directly in file deletion operations without verifying they are within the uploads directory. The plugin stores backup file paths in the image_optimizer_metadata post meta field and trusts these paths completely when deleting backups on the delete_attachment hook. An authenticated attacker with Author-level access can edit the image_optimizer_metadata post meta on their own attachments via WordPress's Custom Fields interface, injecting arbitrary absolute file paths into the backups array. When the attacker subsequently deletes the attachment, the plugin calls File_System::delete() on each path without validation. This makes it possible for authenticated attackers, with Author-level access and above, to delete arbitrary files on the server within the web server's filesystem permissions, potentially leading to denial of service, data loss, or security degradation.

📍 영향받는 시스템

WordPress Image Optimizer plugin versions up to and including 1.7.4

⚔️ 공격 벡터

인증된 공격자(Author 권한 이상)가 Custom Fields를 통해 악의적인 파일 경로를 주입한 후 첨부파일을 삭제하는 방식

🛡️ 대응 방법

Image Optimizer 플러그인을 최신 버전으로 업데이트하거나, 파일 경로 검증 로직이 포함된 패치를 적용하십시오.

🔧 검증 코드

출력된 플러그인 목록에서 image-optimizer의 버전이 1.7.4 이하인지 확인하십시오.

Shell / Script
wp plugin list --allow-root | grep -E 'image-optimizer'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

IBM Security Verify Access