Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translate 2021-05-02 news (ko) #2821

Merged
merged 2 commits into from
Apr 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions ko/news/_posts/2021-05-02-os-command-injection-in-rdoc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
layout: news_post
title: "CVE-2021-31799: A command injection vulnerability in RDoc"
author: "aycabta"
translator: "yous"
date: 2021-05-02 09:00:00 +0000
tags: security
lang: ko
---

Ruby에 포함된 RDoc에 명령 주입 취약점이 있습니다.
문제 해결을 위해 모든 Ruby 사용자는 RDoc을 최신 버전으로 업데이트하시기 바랍니다.

## 세부 내용

다음 취약점이 보고되었습니다.

* [CVE-2021-31799](https://nvd.nist.gov/vuln/detail/CVE-2021-31799)

RDoc은 로컬 파일을 열기 위해 `Kernel#open`을 호출했습니다. Ruby 프로젝트에 `|`로 시작하고 `tags`로 끝나는 이름을 가진 파일이 있다면, 파이프 문자 뒤의 명령이 실행되었습니다. 악의적인 Ruby 프로젝트가 `rdoc` 명령을 실행하려고 하는 사용자에 대해 임의의 명령을 실행할 수 있습니다.

이 문제에 영향을 받는 RDoc 버전을 사용 중인 Ruby 사용자는 RDoc을 최신 버전으로 업데이트해야 합니다.

## 해당 버전

* RDoc 3.11 이상 6.3.0 이하

## 업데이트 방법

취약점 해결을 위해 RDoc을 최신 버전(6.3.1 이상)으로 업데이트하려면 다음 명령을 실행하세요.

```
gem install rdoc
```

bundler를 사용한다면 `Gemfile`에 `gem "rdoc", ">= 6.3.1"`을 추가하세요.

## 도움을 준 사람

이 문제를 보고해 준 [Alexandr Savca](https://hackerone.com/chinarulezzz)에게 감사를 표합니다.

## 수정 이력

* 2021-05-02 09:00:00 UTC 최초 공개