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

CVE-2021-21305 Code Injection vulnerability in CarrierWave

CarrierWave의 코드 주입 취약점

설명

CarrierWave is an open-source RubyGem which provides a simple and flexible way to upload files from Ruby applications. In CarrierWave before versions 1.3.2 and 2.1.1, there is a code injection vulnerability. The "#manipulate!" method inappropriately evals the content of mutation option(:read/:write), allowing attackers to craft a string that can be executed as a Ruby code. If an application developer supplies untrusted inputs to the option, it will lead to remote code execution(RCE). This is fixed in versions 1.3.2 and 2.1.1.

CarrierWave는 Ruby 응용 프로그램에서 파일을 업로드하는 간단하고 유연한 방법을 제공하는 오픈 소스 RubyGem입니다. 버전 1.3.2 및 2.1.1 이전 버전의 CarrierWave에는 코드 주입 취약점이 있습니다. "#manipulate!" 메서드는 공격자가 루비 코드로 실행할 수 있는 문자열을 만들 수 있도록, mutation 옵션(:read/:write)의 내용을 부적절하게 eval합니다. 애플리케이션 개발자가 옵션에 신뢰할 수 없는 입력을 제공하면 원격 코드 실행(RCE)으로 이어집니다. 이 문제는 버전 1.3.2 및 2.1.1에서 해결되었습니다.

영향 받는 제품 제품 1개

  • carrierwaveuploader

    carrierwave

    해결 버전 있음

    영향 받는 버전

    • 1.3.2 미만
    • 2.0.0 이상 2.1.1 미만

    해결 버전

    • 1.3.2 이상
    • 2.1.1 이상

참고 자료 5건

‹ 목록

점검 지원 범위 문의

도입 문의