kcve.ai취약점 정보 · 내 자산 확인

CVE-2022-2068 The c_rehash script allows command injection

c_rehash 스크립트는 명령 주입을 허용합니다

설명

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).

CVE-2022-1292에서 확인된 c_rehash shell 명령 주입 외에도, c_rehash 스크립트가 명령 주입을 방지하기 위해 제대로 sanitise shell 메타 문자를 처리하지 못하는 추가 상황이 코드 검토에 의해 발견되었습니다. CVE-2022-1292가 수정되었을 때 해시되는 인증서의 파일 이름이 셸을 통해 실행되는 명령으로 전달되었을 가능성이있는 스크립트의 다른 장소가 있다는 것을 발견하지 못했습니다. 이 스크립트는 일부 운영 체제에서 자동으로 실행되는 방식으로 배포됩니다. 이러한 운영 체제에서 공격자는 스크립트의 권한으로 임의의 명령을 실행할 수 있습니다. c_rehash 스크립트의 사용은 구식이며 OpenSSL rehash 명령줄 도구로 대체되어야 합니다. OpenSSL 3.0.4에서 수정 (에 영향을 미치는 3.0.0,3.0.1,3.0.2,3.0.3). OpenSSL 1.1.1p에서 수정 (1.1.1-1.1.1o에 영향을). OpenSSL 1.0.2zf에서 수정 (에 영향을 미치는 1.0.2-1.0.2ze).

영향 받는 제품 제품 1개

  • OpenSSL

    OpenSSL

    영향 받는 버전

    • 버전 정보 확인 필요

    해결 버전

    해결된 버전 정보가 없습니다.

참고 자료 9건

‹ 목록

점검 지원 범위 문의

도입 문의