Skip to main content
← All vulnerabilities
CVE-2026-54659GHSA-2XMW-F8J8-WFXC

Pagy I18n locale option is not validated before being used in a file path

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 43.5.6
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • ddnexus pagy

    From 43.0.0 · fixed in 43.5.6

  • pagyRubyGems

    From 43.0.0 · fixed in 43.5.6

References 4

GitHub · ddnexus/pagy