CVE-2024-4982
NixOS vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Mitigation and workarounds

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).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-22783HIGH8.1
  • NixOSNixOS
  • iris
NoYesJan 12, 2026
CVE-2026-0821MEDIUM6.9
  • NixOSNixOS
  • quickjs
NoNoJan 10, 2026
CVE-2025-68949MEDIUM5.3
  • NixOSNixOS
  • n8n
NoYesJan 13, 2026
CVE-2026-22784LOW2.3
  • NixOSNixOS
  • lychee
NoYesJan 12, 2026
CVE-2026-23497LOW1.3
  • NixOSNixOS
  • learning
NoYesJan 14, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management