{"id":"CVE-2026-54659","published":"2026-07-28T22:25:35Z","modified":"2026-07-29T13:06:59Z","title":"Pagy I18n locale option is not validated before being used in a file path","vendor":"ddnexus","product":"pagy","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0054,"percentile":0.38961,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"references":[{"url":"https://github.com/ddnexus/pagy/security/advisories/GHSA-2xmw-f8j8-wfxc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ddnexus/pagy/pull/908","tags":["x_refsource_MISC"]},{"url":"https://github.com/ddnexus/pagy/commit/efcf09690e9fa7d7abdfb987b785a55f87e287df","tags":["x_refsource_MISC"]},{"url":"https://github.com/ddnexus/pagy/releases/tag/43.5.6","tags":["x_refsource_MISC"]}],"priority":{"score":12.6,"factors":[{"name":"EPSS percentile","points":7.79},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"ddnexus","affectedVersions":[{"vendor":"ddnexus","product":"pagy","versions":[">= 43.0.0, < 43.5.6"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-29T13:06:55.587193Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"pagy","vulnerableRanges":[">=43.0.0, <43.5.6"],"patched":["43.5.6"],"from":["GHSA-2xmw-f8j8-wfxc"],"provenance":"source"}],"summary":{"text":"Pagy, a pagination library for plain Ruby, does not validate the locale value it stores through Pagy::I18n.locale= (in gem/lib/pagy/modules/i18n/i18n.rb) in versions 43.0.0 through 43.5.6, and later uses that value as a <locale>.yml path component. An unauthenticated remote attacker who can supply the locale parameter (for example params[:locale]) with absolute paths or ../ sequences can probe whether YAML files exist and are readable on the server, with no user interaction or special configuration required beyond the application passing that input through.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:38:31Z"},"euvd":{"id":"EUVD-2026-50088","exploited":false,"provenance":"source"}}