개요
이 취약점이 무엇인지
Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. Prior to 6.13.12, 7.8.13, 8.24.7, and 9.11.4, Mongoose uses attacker-controlled discriminator key values, including the default __t field, to index plain-object registries such as Model.discriminators and schema.discriminators without requiring an own property. Values such as constructor, toString, or hasOwnProperty can therefore resolve to inherited built-in functions instead of a registered discriminator, causing type confusion in model construction, document creation, hydration, query and update casting, embedded discriminators, and populate operations. In the bulkWrite() insertOne path with skipValidation enabled, a constructor value can cause a raw input object to be stored without schema casting or strict filtering, and a stored poisoned document can make every query that hydrates it fail until the document is removed. The weakness reads inherited properties but does not modify Object.prototype and is not prototype pollution. This issue is fixed in versions 6.13.12, 7.8.13, 8.24.7, and 9.11.4.
실제 악용 사례 · 아직 확인된 사례가 없어요
CISA의 KEV 카탈로그(실제 공격에 악용된 취약점 목록)에 아직 올라와 있지 않아요. 다만 ‘앞으로도 안전하다’는 뜻은 아니니 심각도와 EPSS를 함께 확인하세요.
패치 현황
어떤 버전이 위험하고, 몇 버전으로 올리면 되는지
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| mongooseAutomattic | 이 버전만 | 취약 | = | < 6.13.12 | 벤더 공지 확인 | |
| 이 버전만 | 취약 | = | >= 7.0.0, < 7.8.13 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | >= 8.0.0, < 8.24.7 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | >= 9.0.0, < 9.11.4 | 벤더 공지 확인 | ||
할당 기관(CNA) 레코드 기준 (NVD 분석 전). 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.
참고 링크
NVD에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.
기타11
- github.com/Automattic/mongoose/commit/0ecd8040d9b446f36535d79938c130c800f91766
- github.com/Automattic/mongoose/commit/18afab75bea861f625b7c5b54635c84567ec566c
- github.com/Automattic/mongoose/commit/390453c8ce1b36b6cfd1e63432a910da1f3d81d5
- github.com/Automattic/mongoose/commit/8cee51beead554df1f3d05645edb439c69eb2a9b
- github.com/Automattic/mongoose/commit/b26c43554233134ea978c5852babe13be858b2cf
6개 더 보기
- github.com/Automattic/mongoose/commit/b68f90734b50cd22c89a669c8ca1469d7234b296
- github.com/Automattic/mongoose/releases/tag/6.13.12
- github.com/Automattic/mongoose/releases/tag/7.8.13
- github.com/Automattic/mongoose/releases/tag/8.24.7
- github.com/Automattic/mongoose/releases/tag/9.11.4
- github.com/Automattic/mongoose/security/advisories/GHSA-wr5m-5jph-8m96