CVE-2023-25652 "git apply --reject" partially-controlled arbitrary file write
"git apply --reject" 부분 제어되는 임의 파일 쓰기
설명
Git은 리비전 제어 시스템이다. 2.30.9, 2.31.8, 2.32.7, 2.33.8, 2.34.8, 2.35.8, 2.36.6, 2.37.7, 2.38.5, 2.39.3, 그리고 2.40.1 이전 버전에서는 `git apply --reject`에 특수 제작된 입력을 공급함으로써, 작업 트리 외부의 경로를 부분적으로 제어된 내용으로 덮어쓸 수 있다(주어진 패치에서 거부된 헝크에 해당). 수정은 버전 2.30.9, 2.31.8, 2.32.7, 2.33.8, 2.34.8, 2.35.8, 2.36.6, 2.37.7, 2.38.5, 2.39.3 및 2.40.1에서 사용할 수 있습니다. 해결 방법으로, 신뢰할 수 없는 소스에서 패치를 적용할 때 `-reject'와 함께 `git apply`를 사용하지 마십시오. 적용하기 전에 `git apply --stat'을 사용하여 패치를 검사한다; `*.rej' 파일에 해당하는 링크가 존재하는 충돌을 만드는 것을 피한다.
원문 보기
Git is a revision control system. Prior to versions 2.30.9, 2.31.8, 2.32.7, 2.33.8, 2.34.8, 2.35.8, 2.36.6, 2.37.7, 2.38.5, 2.39.3, and 2.40.1, by feeding specially crafted input to `git apply --reject`, a path outside the working tree can be overwritten with partially controlled contents (corresponding to the rejected hunk(s) from the given patch). A fix is available in versions 2.30.9, 2.31.8, 2.32.7, 2.33.8, 2.34.8, 2.35.8, 2.36.6, 2.37.7, 2.38.5, 2.39.3, and 2.40.1. As a workaround, avoid using `git apply` with `--reject` when applying patches from an untrusted source. Use `git apply --stat` to inspect a patch before applying; avoid applying one that create a conflict where a link corresponding to the `*.rej` file exists.
영향 받는 제품 제품 1개
-
해결 버전 있음
git
git
영향 받는 버전
- 2.30.9 미만
- 2.31.0 이상 2.31.8 미만
- 2.32.0 이상 2.32.7 미만
- 2.33.0 이상 2.33.8 미만
- 2.34.0 이상 2.34.8 미만
- 2.35.0 이상 2.35.8 미만
- 2.36.0 이상 2.36.6 미만
- 2.37.0 이상 2.37.7 미만
외 3개 구간 펼치기
- 2.38.0 이상 2.38.5 미만
- 2.39.0 이상 2.39.3 미만
- 2.40.0 이상 2.40.1 미만
해결 버전
- 2.30.9 이상
- 2.31.8 이상
- 2.32.7 이상
- 2.33.8 이상
- 2.34.8 이상
- 2.35.8 이상
- 2.36.6 이상
- 2.37.7 이상
외 3개 구간 펼치기
- 2.38.5 이상
- 2.39.3 이상
- 2.40.1 이상
참고 자료 10건
- github.com https://github.com/git/git/commit/18e2b1cfc80990719275d7b08e6e50f3e8cbc902 (새 창)
- github.com https://github.com/git/git/commit/668f2d53613ac8fd373926ebe219f2c29112d93e (새 창)
- github.com https://github.com/git/git/security/advisories/GHSA-2hvf-7c8p-28fx (새 창)
- lists.debian.org https://lists.debian.org/debian-lts-announce/2024/06/msg00018.html (새 창)
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BSXOGVVBJLYX26IAYX6PJSYQB36BREWH/ (새 창)
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PI7FZ4NNR5S5J5K6AMVQBH2JFP6NE4L7/ (새 창)
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RKOXOAZ42HLXHXTW6JZI4L5DAIYDTYCU/ (새 창)
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YFZWGQKB6MM5MNF2DLFTD7KS2KWPICKL/ (새 창)
- security.gentoo.org https://security.gentoo.org/glsa/202312-15 (새 창)
- openwall.com http://www.openwall.com/lists/oss-security/2023/04/25/2 (새 창)