Уязвимость выполнения произвольных команд через "c_rehash" из-за некорректной обработки метасимволов оболочки
Описание
Скрипт c_rehash
в OpenSSL некорректно выполняет очистку метасимволов оболочки, что позволяет злоумышленникам осуществлять внедрение команд. В некоторых операционных системах этот скрипт автоматически исполняется, что позволяет злоумышленнику выполнять произвольные команды с привилегиями скрипта.
Затронутые версии ПО
- OpenSSL версии 3.0.0, 3.0.1, 3.0.2
- OpenSSL версии 1.1.1–1.1.1n
- OpenSSL версии 1.0.2–1.0.2zd
Использование c_rehash
считается устаревшим. Рекомендуется заменить его на openssl rehash
.
Тип уязвимости
Внедрение команд
Исправление
Исправлено в OpenSSL 3.0.3, OpenSSL 1.1.1o и OpenSSL 1.0.2ze.
Ссылки
- Mailing ListThird Party Advisory
- Third Party Advisory
- Third Party Advisory
- Third Party Advisory
- Third Party Advisory
- Third Party Advisory
- Vendor Advisory
- Third Party Advisory
- Mailing ListThird Party Advisory
Уязвимые конфигурации
Одно из
Одно из
Одно из
Одновременно
Одновременно
Одновременно
Одновременно
Одновременно
Одновременно
Одновременно
Одновременно
Одновременно
Одновременно
Одновременно
Одновременно
Одновременно
Одновременно
Одновременно
Одновременно
Одновременно
Одно из
Одно из
EPSS
9.8 Critical
CVSS3
10 Critical
CVSS2
Дефекты
Связанные уязвимости
The c_rehash script does not properly sanitise shell metacharacters to prevent command injection. This script is distributed by some operating systems in a manner where it is automatically executed. On such operating systems, an attacker could execute arbitrary commands with the privileges of the script. Use of the c_rehash script is considered obsolete and should be replaced by the OpenSSL rehash command line tool. Fixed in OpenSSL 3.0.3 (Affected 3.0.0,3.0.1,3.0.2). Fixed in OpenSSL 1.1.1o (Affected 1.1.1-1.1.1n). Fixed in OpenSSL 1.0.2ze (Affected 1.0.2-1.0.2zd).
The c_rehash script does not properly sanitise shell metacharacters to prevent command injection. This script is distributed by some operating systems in a manner where it is automatically executed. On such operating systems, an attacker could execute arbitrary commands with the privileges of the script. Use of the c_rehash script is considered obsolete and should be replaced by the OpenSSL rehash command line tool. Fixed in OpenSSL 3.0.3 (Affected 3.0.0,3.0.1,3.0.2). Fixed in OpenSSL 1.1.1o (Affected 1.1.1-1.1.1n). Fixed in OpenSSL 1.0.2ze (Affected 1.0.2-1.0.2zd).
The c_rehash script does not properly sanitise shell metacharacters to ...
EPSS
9.8 Critical
CVSS3
10 Critical
CVSS2