🔍 CVE-2022-2068

7.3
CVSS Score
HIGH
2022-06-21
2026-10-14 13:17
✅ 완료

🇰🇷 한글 설명

c_rehash 스크립트에서 쉘 메타문자를 적절히 정제하지 않아 발생하는 명령 주입(Command Injection) 취약점입니다. 공격자는 인증서 파일 이름을 조작하여 스크립트가 실행되는 권한으로 임의의 명령을 실행할 수 있습니다. OpenSSL 3.0.4, 1.1.1p, 1.0.2zf 버전 이상으로 업데이트가 필요합니다.

💡 쉬운 설명

인증서 파일을 정리하는 프로그램이 파일 이름에 포함된 특수 문자를 제대로 검사하지 않아 발생하는 문제입니다. 나쁜 의도를 가진 파일 이름을 만들면 컴퓨터가 이를 명령어로 착각해 실행할 수 있습니다.

🇺🇸 원문 (English)

In addition to the c_rehash shell command injection identified in CVE-2022-1292, further circumstances where the c_rehash script does not properly sanitise shell metacharacters to prevent command injection were found by code review. When the CVE-2022-1292 was fixed it was not discovered that there are other places in the script where the file names of certificates being hashed were possibly passed to a command executed through the shell. 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.4 (Affected 3.0.0,3.0.1,3.0.2,3.0.3). Fixed in OpenSSL 1.1.1p (Affected 1.1.1-1.1.1o). Fixed in OpenSSL 1.0.2zf (Affected 1.0.2-1.0.2ze).

📍 영향받는 시스템

OpenSSL 3.0.0-3.0.3, 1.1.1-1.1.1o, 1.0.2-1.0.2ze

⚔️ 공격 벡터

조작된 파일 이름을 가진 인증서를 특정 디렉토리에 배치하여 c_rehash 스크립트가 실행되도록 유도

🛡️ 대응 방법

OpenSSL을 최신 보안 패치 버전(3.0.4, 1.1.1p, 1.0.2zf 이상)으로 업데이트하거나 c_rehash 대신 OpenSSL rehash 도구를 사용

🔧 검증 코드

출력된 버전이 취약한 버전 범위(3.0.0-3.0.3, 1.1.1-1.1.1o, 1.0.2-1.0.2ze)에 포함되는지 확인

Shell / Script
openssl version

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

OpenSSL