🔍 CVE-2026-7693

7.2
CVSS Score
HIGH
2026-08-05
2026-08-12 21:00
✅ 완료

🇰🇷 한글 설명

WordPress의 Backup Migration 플러그인 2.1.5.1 이하 버전에서 OS 명령 주입(Command Injection) 취약점이 발견되었습니다. restoreBackup() AJAX 핸들러의 'file' POST 매개변수가 적절히 검증되지 않아, 관리자 권한을 가진 공격자가 웹 서버 권한으로 임의의 OS 명령을 실행할 수 있습니다.

💡 쉬운 설명

백업 복구 기능의 보안 허점을 이용해 해커가 서버에 몰래 명령을 내릴 수 있는 문제입니다. 관리자 권한을 가진 사용자가 악의적인 명령어를 입력하면 서버 전체가 위험해질 수 있습니다.

🇺🇸 원문 (English)

The Backup Migration plugin for WordPress is vulnerable to OS Command Injection in all versions up to, and including, 2.1.5.1 due to insufficient sanitization of the `file` POST parameter on the `restoreBackup()` AJAX handler. The handler applies `esc_attr()` — an HTML-context sanitizer that does not strip shell metacharacters — and concatenates the result, unquoted, into a `php-cli -f … bmi_restore <file> <remote>` command passed to `exec()`. This makes it possible for authenticated attackers, with Administrator-level access (or any user granted the plugin's `do_backups` capability) and above, to execute arbitrary OS commands as the web-server user, bypassing WordPress hardening constants such as `DISALLOW_FILE_EDIT` and `DISALLOW_FILE_MODS` that would otherwise prevent code execution from the admin UI. This is an incomplete fix of CVE-2023-7002, which patched the same pattern only in the `$_POST['url']` path of `handleQuickMigration()`; the equivalent mitigations (`rawurlencode()` + explicit shell-metachar replacement + double-quoting in `exec()`) were never applied to `$backupName`.

📍 영향받는 시스템

WordPress Backup Migration plugin (버전 2.1.5.1 및 그 이하 모든 버전)

⚔️ 공격 벡터

인증된 관리자 권한을 이용해 AJAX 핸들러의 'file' 매개변수에 쉘 메타문자가 포함된 명령어를 전송

🛡️ 대응 방법

플러그인을 최신 버전으로 업데이트하거나, 입력값에 대한 엄격한 검증 및 쉘 메타문자 제거 로직을 적용해야 합니다.

🔧 검증 코드

출력된 결과에서 backup-migration 플러그인의 버전이 2.1.5.1 이하인지 확인합니다.

Shell / Script
wp-cli plugin list --allow-root | grep -E 'backup-migration'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

WordPress