
Cloud Vulnerability DB
A community-led vulnerabilities database
A directory traversal vulnerability (CVE-2024-4982) was discovered in Pagure server's view_issue_raw_file() function. The vulnerability allows malicious users to submit specially crafted git repositories to discover secrets on the server. The issue was identified and disclosed in May 2024, affecting Pagure server installations up to version 5.14.1+dfsg-7 (Red Hat Bugzilla, Debian Security Tracker).
The vulnerability exists in the view_issue_raw_file() function within the issues.py file, where the requested filename comes directly from the URL and is concatenated with the attachments folder and repository name. The 'path' routing converter accepts all characters, including slashes and directory traversal sequences. The issue was introduced with commit 96c928b in release 3.0 and was present up to commit fe91f76. The vulnerability has been assigned a CVSS v3.1 base score of 7.6 (High) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L (NVD).
If successfully exploited, this vulnerability allows attackers to access files outside the intended attachments folder on the server, potentially exposing sensitive information and server secrets. The impact may be mitigated in some deployments where reverse-proxies normalize URLs, though this should not be relied upon as a security feature (Wiz).
The vulnerability has been fixed in Pagure version 5.14.1+dfsg-7. The fix implements 'werkzeug.security.safe_join()' instead of plain 'os.path.join()' to sanitize user-provided filename variables and prevent directory traversal. Organizations are strongly recommended to upgrade to the fixed version. For proper implementation, Flask's send_from_directory() function is suggested as a secure alternative for serving files (Pagure Commit).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."