Skip to main content
EPSS 0.4%top 70%

CVE-2026-54659: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in ddnexus pagy

0
Medium
VulnerabilityCVE-2026-54659cvecve-2026-54659cwe-22cwe-200
Published: 07/28/2026 (07/28/2026, 22:25:35 UTC)
Source: CVE Database V5
Vendor/Project: ddnexus
Product: pagy

Description

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.

CVSS v4.0

Score 6.9medium

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
Low
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

ddnexus

pagy

Affected versions
>=43.0.0 <43.5.6

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/31/2026, 14:25:28 UTC

Technical Analysis

The ddnexus pagy gem, a Ruby pagination library, contains a path traversal vulnerability (CWE-22) in the Pagy::I18n.locale= method in versions 43.0.0 through 43.5.5. This method stores locale values without sanitization and uses them as components in file paths for YAML locale files. An attacker can supply crafted locale parameters containing absolute paths or '../' sequences to read arbitrary YAML files on the filesystem, creating a file existence and readability oracle. The vulnerability is addressed in version 43.5.6.

Potential Impact

An attacker can exploit this vulnerability to read arbitrary YAML files on the server by manipulating the locale parameter. This may lead to information disclosure of sensitive configuration or data files. The CVSS 4.0 base score is 6.9 (medium severity), indicating a network-exploitable vulnerability without required privileges or user interaction, with low impact on confidentiality.

Mitigation Recommendations

Upgrade to pagy version 43.5.6 or later, where the vulnerability is fixed. No other official remediation or temporary fixes are documented. Until upgrading, avoid using untrusted input for locale settings or sanitize inputs to prevent path traversal sequences.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-06-15T20:16:46.199Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6a6932d19c2644c7f8557a2e

Added to database: 07/28/2026, 22:53:05 UTC

Last enriched: 07/31/2026, 14:25:28 UTC

Last updated: 09/10/2026, 20:00:49 UTC

Views: 76

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses