CVE-2022-24713 Regular expression denial of service in Rust's regex crate
Rust의 정규식 크레이트에서의 정규식 서비스 거부
설명
regex is an implementation of regular expressions for the Rust language. The regex crate features built-in mitigations to prevent denial of service attacks caused by untrusted regexes, or untrusted input matched by trusted regexes. Those (tunable) mitigations already provide sane defaults to prevent attacks. This guarantee is documented and it's considered part of the crate's API. Unfortunately a bug was discovered in the mitigations designed to prevent untrusted regexes to take an arbitrary amount of time during parsing, and it's possible to craft regexes that bypass such mitigations. This makes it possible to perform denial of service attacks by sending specially crafted regexes to services accepting user-controlled, untrusted regexes. All versions of the regex crate before or equal to 1.5.4 are affected by this issue. The fix is include starting from regex 1.5.5. All users accepting user-controlled regexes are recommended to upgrade immediately to the latest version of the regex crate. Unfortunately there is no fixed set of problematic regexes, as there are practically infinite regexes that could be crafted to exploit this vulnerability. Because of this, it us not recommend to deny known problematic regexes.
정규식은 Rust 언어에 대한 정규 표현식의 구현입니다. regex 크레이트는 신뢰할 수 없는 regexes에 의해 일치된 신뢰할 수 없는 입력 또는 신뢰되지 않는 regexes에 의해 초래된 서비스 거부 공격을 방지하기 위하여 붙박이 완화를 특색짓습니다. 이러한 (조정 가능한) 완화는 이미 공격을 방지하기 위해 정상적인 기본값을 제공합니다. 이 보증은 문서화되어 있으며 크레이트의 API의 일부로 간주됩니다. 불행하게도, 신뢰되지 않는 정규 표현식이 구문 분석 중에 임의의 시간을 가지지 않도록 하기 위해 고안된 완화에서 버그가 발견되었으며, 그러한 완화를 우회하는 정규 표현식을 만드는 것이 가능합니다. 따라서 사용자가 제어하고 신뢰할 수 없는 정규식을 수락하는 서비스에 특수하게 제작된 정규식을 전송하여 서비스 거부 공격을 수행할 수 있습니다. 1.5.4 이전 또는 이전 버전의 모든 정규식 크레이트는 이 문제의 영향을 받습니다. 수정은 정규식 1.5.5부터 시작됩니다. 사용자가 제어하는 정규식을 받는 모든 사용자는 최신 버전의 정규식 상자로 즉시 업그레이드하는 것이 좋습니다. 불행히도 이 취약점을 악용하기 위해 만들어질 수 있는 사실상 무한한 정규 표현식이 있기 때문에 문제가 되는 정규 표현식의 고정 집합은 없습니다. 따라서 알려진 문제 정규 표현식을 거부하지 않는 것이 좋습니다.
영향 받는 제품 제품 1개
-
해결 버전 있음
rust-lang
regex
영향 받는 버전
- 1.5.5 미만
해결 버전
- 1.5.5 이상
참고 자료 12건
- github.com https://github.com/rust-lang/regex/commit/ae70b41d4f46641dbc45c7a4f87954aea356283e (새 창)
- github.com https://github.com/rust-lang/regex/security/advisories/GHSA-m5pq-gvj9-9vr8 (새 창)
- groups.google.com https://groups.google.com/g/rustlang-security-announcements/c/NcNNL1Jq7Yw (새 창)
- lists.debian.org https://lists.debian.org/debian-lts-announce/2022/04/msg00003.html (새 창)
- lists.debian.org https://lists.debian.org/debian-lts-announce/2022/04/msg00009.html (새 창)
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JANLZ3JXWJR7FSHE57K66UIZUIJZI67T/ (새 창)
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/O3YB7CURSG64CIPCDPNMGPE4UU24AB6H/ (새 창)
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PDOWTHNVGBOP2HN27PUFIGRYNSNDTYRJ/ (새 창)
- security.gentoo.org https://security.gentoo.org/glsa/202208-08 (새 창)
- security.gentoo.org https://security.gentoo.org/glsa/202208-14 (새 창)
- debian.org https://www.debian.org/security/2022/dsa-5113 (새 창)
- debian.org https://www.debian.org/security/2022/dsa-5118 (새 창)