CVE-2020-36327
위험도 높음 공격 코드 공개
- 우선순위 이 사이트의 참고 점수
- 9.99
- 위험도 CVSS 3.1 · 0~10점
- 8.8
- 악용 가능성 EPSS · 30일 안에 공격에 쓰일 확률
- 6.3%
- 공개일 NVD
- 2021-04-29
설명 NVD 원문
Bundler 1.16.0 through 2.2.9 and 2.2.11 through 2.2.16 sometimes chooses a dependency source based on the highest gem version number, which means that a rogue gem found at a public source may be chosen, even if the intended choice was a private gem that is a dependency of another private gem that is explicitly depended on by the application. NOTE: it is not correct to use CVE-2021-24105 for every "Dependency Confusion" issue in every product.
위험도 세부 항목 CVSS 3.1
- 공격 경로
- 네트워크(원격) AV:N
- 공격 난이도
- 낮음(쉬움) AC:L
- 필요한 권한
- 없음(로그인 불필요) PR:N
- 사용자 행동 필요
- 필요(클릭 등) UI:R
- 영향 범위
- 그 제품 안 S:U
- 정보 유출(기밀성)
- 높음 C:H
- 데이터 변조(무결성)
- 높음 I:H
- 서비스 중단(가용성)
- 높음 A:H
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
조치 방법 21행
Red Hat 조치 21행
| 출처 | 플랫폼·제품 | 방식 | 패키지 | 수정된 버전 | 권고문RHSA 등 | 내용 |
|---|---|---|---|---|---|---|
| Red Hat | CloudForms Management Engine 5 | 수정판 없음 | rubygem-bundler | 원문 | Red Hat 상태: 수정 계획 없음 | |
| Red Hat | Logging Subsystem for Red Hat OpenShift | 수정판 없음 | ruby | 원문 | Red Hat 상태: 영향 있음(수정 예정) | |
| Red Hat | Red Hat (공통) | 완화 조치 | 원문 | This issue only affects configurations where gem packages are installed from multiple sources and th…This issue only affects configurations where gem packages are installed from multiple sources and the source repositories are explicitly defined for at least some gems. Dependencies of those source-restricted gems may be installed form a different repository, even if the same repository provides those dependencies, which is inconsistent with the intended behaviour described in the Bundler documentation. There are multiple possible approaches to mitigate this issue - customers should evaluate which approaches are usable in their environments. * Explicitly define source for all dependency gems in the Gemfile configuration. When a dependency of a source-restricted gem is also to be installed form the same source, list such dependency explicitly in the Gemfile along with the specific source. * Avoid configurations with multiple source repositories. When using a private repository for non-public gems, use the same private repository to mirror any content required from any public gem repository, such as RubyGems.org. When preparing such mirror, ensure that no mirrored gems have names conflicting with names of the internal non-public gems. * Reserve internal package names in public repositories. For any internal private gem, also reserve the name in any public gem repository used, such as RubyGems.org. This will prevent attackers from registering those names and providing their malicious gems with higher versions. Additional information about affected configurations can be found in the following Red Hat Knowledgebase article: https://access.redhat.com/articles/6206172 |
||
| Red Hat | Red Hat 3scale API Management Platform 2 | 수정판 없음 | rubygem-bundler | 원문 | Red Hat 상태: 수정 미룸 | |
| Red Hat | Red Hat Enterprise Linux 7 | 수정판 없음 | rubygem-bundler | 원문 | Red Hat 상태: 영향 없음 | |
| Red Hat | Red Hat Enterprise Linux 9 | 수정판 없음 | ruby | 원문 | Red Hat 상태: 영향 없음 | |
| Red Hat | Red Hat Software Collections | 수정판 없음 | rh-ruby25-rubygem-bundler | 원문 | Red Hat 상태: 수정 계획 없음 | |
| Red Hat | Red Hat Enterprise Linux 8 | 패치(업데이트) | ruby:2.5-8050020220112131355.c5368500 | RHSA-2022:0545 | ||
| Red Hat | Red Hat Enterprise Linux 8 | 패치(업데이트) | ruby:2.6-8050020211215144356.c5368500 | RHSA-2022:0543 | ||
| Red Hat | Red Hat Enterprise Linux 8 | 패치(업데이트) | ruby:2.7-8040020210728141159.522a0ee4 | RHSA-2021:3020 | ||
| Red Hat | Red Hat Enterprise Linux 8.1 Update Services for SAP Solutions | 패치(업데이트) | ruby:2.5-8010020220201125517.c27ad7f8 | RHSA-2022:0548 | ||
| Red Hat | Red Hat Enterprise Linux 8.1 Update Services for SAP Solutions | 패치(업데이트) | ruby:2.6-8010020220201152941.c27ad7f8 | RHSA-2022:0581 | ||
| Red Hat | Red Hat Enterprise Linux 8.2 Extended Update Support | 패치(업데이트) | ruby:2.5-8020020220201125131.4cda2c84 | RHSA-2022:0547 | ||
| Red Hat | Red Hat Enterprise Linux 8.2 Extended Update Support | 패치(업데이트) | ruby:2.6-8020020220201131207.4cda2c84 | RHSA-2022:0582 | ||
| Red Hat | Red Hat Enterprise Linux 8.4 Extended Update Support | 패치(업데이트) | ruby:2.5-8040020220201123518.522a0ee4 | RHSA-2022:0546 | ||
| Red Hat | Red Hat Enterprise Linux 8.4 Extended Update Support | 패치(업데이트) | ruby:2.6-8040020220131135901.522a0ee4 | RHSA-2022:0544 | ||
| Red Hat | Red Hat Software Collections for Red Hat Enterprise Linux 7 | 패치(업데이트) | rh-ruby26-ruby | 2.6.9-120.el7 | RHSA-2022:0708 | |
| Red Hat | Red Hat Software Collections for Red Hat Enterprise Linux 7 | 패치(업데이트) | rh-ruby27-ruby | 2.7.4-130.el7 | RHSA-2021:3559 | |
| Red Hat | Red Hat Software Collections for Red Hat Enterprise Linux 7 | 패치(업데이트) | rh-ruby30-ruby | 3.0.2-148.el7 | RHSA-2021:3982 | |
| Red Hat | Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUS | 패치(업데이트) | rh-ruby27-ruby | 2.7.4-130.el7 | RHSA-2021:3559 | |
| Red Hat | Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUS | 패치(업데이트) | rh-ruby30-ruby | 3.0.2-148.el7 | RHSA-2021:3982 |
살펴볼 장비 초안
분류 대상이 아닙니다 (지금은 KEV 만 분류합니다). 안전하다는 뜻이 아닙니다.
단계별 판정 예시 환경
시나리오 미작성 — 이 CVE 는 단계별 판정을 하지 않았습니다. 안전하다는 뜻이 아닙니다.
출처별 내용 0건
KEV·KISA·ASEC 에서 연결된 내용이 없습니다.
자동 추천 장비와 근거 참고용
추천할 매핑이 없습니다.
영향받는 제품 CPE · 4건
| 제조사 | 제품 | 영향받는 버전 | 표준 표기CPE |
|---|---|---|---|
| bundler | bundler | 1.16.0 이상 2.2.10 미만 | cpe:2.3:a:bundler:bundler:*:*:*:*:*:ruby:*:* |
| bundler | bundler | 2.2.11 이상 2.2.16 이하 | cpe:2.3:a:bundler:bundler:*:*:*:*:*:ruby:*:* |
| fedoraproject | fedora | cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* | |
| microsoft | package_manager_configurations | cpe:2.3:a:microsoft:package_manager_configurations:-:*:*:*:*:*:*:* |
참고 링크 12건
- 제조사 권고 https://bundler.io/blog/2021/02/15/a-more-secure-bundler-we-fixed-our-source-priorities.html
- 공격 코드 · 이슈 추적 · 제3자 권고 https://github.com/rubygems/rubygems/issues/3982
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MWXHK5UUHVSHF7HTHMX6JY3WXDVNIHSL/
- 제3자 권고 https://mensfeld.pl/2021/02/rubygems-dependency-confusion-attack-side-of-things/
- 패치 · 제조사 권고 https://msrc.microsoft.com/update-guide/en-US/vulnerability/CVE-2021-24105
- 공격 코드 · 제3자 권고 https://www.zofrex.com/blog/2021/04/29/bundler-still-vulnerable-dependency-confusion-cve-2020-36327/
- 제조사 권고 https://bundler.io/blog/2021/02/15/a-more-secure-bundler-we-fixed-our-source-priorities.html
- 공격 코드 · 이슈 추적 · 제3자 권고 https://github.com/rubygems/rubygems/issues/3982
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MWXHK5UUHVSHF7HTHMX6JY3WXDVNIHSL/
- 제3자 권고 https://mensfeld.pl/2021/02/rubygems-dependency-confusion-attack-side-of-things/
- 패치 · 제조사 권고 https://msrc.microsoft.com/update-guide/en-US/vulnerability/CVE-2021-24105
- 공격 코드 · 제3자 권고 https://www.zofrex.com/blog/2021/04/29/bundler-still-vulnerable-dependency-confusion-cve-2020-36327/
용어 설명 CVE · CVSS · EPSS · KEV · NVD …
- CVE 취약점 번호
- 공개된 보안 취약점마다 붙는 국제 고유 번호입니다. 예: CVE-2021-44228(Log4j). 가운데 숫자는 번호를 받은 해입니다.
- CVSS 위험도 점수
- 취약점이 얼마나 위험한지 0~10점으로 매긴 국제 표준 점수입니다. 심각 9.0 이상 · 높음 7.0~8.9 · 중간 4.0~6.9 · 낮음 0.1~3.9. 공격이 얼마나 쉬운지와 피해 크기로 정하며, 실제로 공격받고 있는지는 반영하지 않습니다.
- EPSS 악용 가능성
- 앞으로 30일 안에 실제 공격에 쓰일 확률을 추정한 값(0~100%)입니다. 국제 보안 단체 FIRST 가 매일 계산합니다. 높을수록 먼저 조치하세요.
- KEV 실제 악용 확인
- 미국 사이버보안청(CISA)이 실제 공격에 쓰인 것을 확인한 취약점만 모은 목록입니다. 여기에 있으면 가장 먼저 조치할 대상입니다. '랜섬웨어' 표시는 랜섬웨어 공격에 쓰인 것으로 알려진 것입니다.
- 공격 코드 공개된 PoC
- NVD 참고 링크 중 '공격 코드(Exploit)' 표시가 붙은 것이 있다는 뜻입니다. 누구나 공격을 시도해 볼 수 있으므로 서두르는 게 좋지만, 실제 악용이 확인된 것(KEV)과는 다릅니다.
- NVD 미국 취약점 DB
- 미국 국립표준기술연구소(NIST)가 운영하는 취약점 데이터베이스입니다. CVE 마다 설명·CVSS 점수·영향받는 제품·취약점 종류를 붙입니다. 이 사이트 설명의 원문 출처입니다.
- 우선순위 이 사이트의 참고 점수
- CVSS·KEV·랜섬웨어·EPSS·ASEC 언급·공격 코드 공개를 합쳐 계산한 점수입니다. 높을수록 먼저 살펴보세요. 공식 점수가 아닙니다.
- ASEC 안랩 분석 글
- 안랩 보안대응센터 블로그입니다. 'ASEC 3' 은 분석 글에 그 CVE 번호가 3번 나왔다는 뜻이며, 국내에서 악용이 확인됐다는 뜻은 아닙니다.
- CWE 취약점 종류
- 취약점 종류의 분류 번호입니다. 예: CWE-89 SQL 인젝션, CWE-79 크로스 사이트 스크립팅.
- CPE 영향받는 제품
- 취약점이 있는 제품과 버전을 적는 표준 표기입니다. 예: apache:tomcat 9.0.0~9.0.80.
- KB Microsoft 업데이트 번호
- Microsoft 가 업데이트마다 붙이는 번호입니다. 예: KB5068791. '수정된 버전' 은 업데이트 후의 빌드 번호로, 이보다 낮으면 업데이트가 필요합니다.
- 시나리오 · 번역
- '시나리오' 는 단계별 판정 초안이 있다는 표시입니다(없다고 안전한 것은 아닙니다). '(번역)' 은 Claude 로 기계 번역한 설명입니다.