CVE-2024-4981 Pagure: _update_file_in_git() follows symbolic links in temporary clones
A malicious user can submit a git repository with symbolic links to expose content from outside the repository via the Pagure server.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-4981?
CVE-2024-4981 is a high-severity path traversal vulnerability in redhat:pagure, published on 12 May 2025. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
A vulnerability was discovered in Pagure server. If a malicious user were to submit a git repository with symbolic links, the server could unintentionally show incorporate and make visible content from outside the git repo.
Weakness: CWE-552
Which versions are affected by CVE-2024-4981?
It affects 1 product.
Products include Redhat Pagure.
How do I fix CVE-2024-4981?
Apply the vendor's patch.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2024-4981 being exploited?
There is no known exploitation of CVE-2024-4981 in the wild and no public exploit code.
Other vulnerabilities in redhat:pagure
Sources
Also known as DEBIAN-CVE-2024-4981, GHSA-vw7p-rwg9-7mrq, UBUNTU-CVE-2024-4981.