CVE-2024-4982 Pagure: path traversal in view_issue_raw_file()

High 7.6 Published Updated

A malicious user can exploit a directory traversal flaw in Pagure to discover secrets on the server by submitting a crafted git repository.

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-4982?

CVE-2024-4982 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 directory traversal vulnerability was discovered in Pagure server. If a malicious user submits a specially cratfted git repository they could discover secrets on the server.

Weakness: CWE-22

Which versions are affected by CVE-2024-4982?

It affects 1 product.

Products include Redhat Pagure.

How do I fix CVE-2024-4982?

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-4982 being exploited?

There is no known exploitation of CVE-2024-4982 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2024-4982, GHSA-g76q-72wv-pxqq, UBUNTU-CVE-2024-4982.

Is CVE-2024-4982 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free