CVE-2026-54659 Pagy I18n locale option is not validated before being used in a file path
설명
Pagy is agnostic pagination in plain Ruby. From 43.0.0 until 43.5.6, Pagy::I18n.locale= in gem/lib/pagy/modules/i18n/i18n.rb stored locale values verbatim and later used them as <locale>.yml path components, allowing untrusted params[:locale] values with absolute paths or ../ sequences to create a file existence and readability oracle for YAML files. This issue is fixed in version 43.5.6.
영향 받는 제품 제품 1개
-
해결 버전 있음
ddnexus
pagy
영향 받는 버전
- 43.0.0 이상 43.5.6 미만
해결 버전
- 43.5.6 이상
참고 자료 4건
- github.com https://github.com/ddnexus/pagy/commit/efcf09690e9fa7d7abdfb987b785a55f87e287df (새 창)
- github.com https://github.com/ddnexus/pagy/pull/908 (새 창)
- github.com https://github.com/ddnexus/pagy/releases/tag/43.5.6 (새 창)
- github.com https://github.com/ddnexus/pagy/security/advisories/GHSA-2xmw-f8j8-wfxc (새 창)