개요
JavaScript의 날짜 라이브러리인 Moment.js에서 발생하는 취약점을 해결하는 업데이트가 제공되었습니다. 해당하는 버전 사용자는 최신 버전으로 업데이트하시기 바랍니다.
대상 제품
- Moment.js 버전: 1.01(포함) ~ 2.29.1(제외)
해결된 취약점
CVE-2022-24785: 날짜 라이브러리에서 발생하는 경로 트래버설 취약점 (7.5 high, CVSSV3.1 등록일자: 2024.04.12)
※ 최근 exploit poc[3]가 공개된 취약점으로 오래된 버전을 사용하는 경우 업데이트가 필요합니다.
취약점 패치
Moment.js 버전: 2.29.2
참고 사이트
[1] CVE-2022-24785 Detail
https://nvd.nist.gov/vuln/detail/cve-2022-24785
[2] Path Traversal: ‘dir/../../filename’ in moment.locale
https://github.com/moment/moment/security/advisories/GHSA-8hfj-j24r-96c4
[3] How CVE-2022-24785 MomentJS Path Traversal Works: Detailed Exploit Guide
https://0xjay.com/how-cve-2022-24785-momentjs-path-traversal-works-detailed-exploit-guide