CVE-2024-44625 Remote Code Execution in Gogs

High 8.8 Published Updated

Attackers can exploit a directory traversal flaw in Gogs to read or modify arbitrary files on the 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-44625?

CVE-2024-44625 is a high-severity path traversal vulnerability in n/a, published on 15 Nov 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Gogs <=0.13.0 is vulnerable to Directory Traversal via the editFilePost function of internal/route/repo/editor.go.

Weakness: CWE-22

Which versions are affected by CVE-2024-44625?

3 open source packages ship an affected version, including gogs.io/gogs. It affects 1 product.

PackageAffectedFixed in
gogs.io/gogs GoAll versionsNone
gogs.io/gogs GoAll versions0.13.2
gogs.io/gogs GoAll versions0.13.2

Products include Gogs Gogs.

How do I fix CVE-2024-44625?

Upgrade gogs.io/gogs to 0.13.2 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2024-44625 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-44625 exists.

Public exploit code: 2 proofs of concept on GitHub.

Sources

Also known as GHSA-phm4-wf3h-pc3r, GO-2024-3275.

Is CVE-2024-44625 in your software?

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

Check your SBOMs for free