CVE-2024-39931: Critical severity Gogs Gogs vulnerability

Published Jul 4, 2024
·
Updated

Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-ccqv-43vm-4f3w. This link is maintained to preserve external references.

Original Description Gogs through 0.13.0 allows deletion of internal files.

Other sources

Impact

Unprivileged user accounts can execute arbitrary commands on the Gogs instance with the privileges of the account specified by RUNUSER in the configuration. It allows attackers to access and alter any users' code hosted on the same instance.

Patches

Deletion of .git files has been prohibited (https://github.com/gogs/gogs/pull/7870). Users should upgrade to 0.13.1 or the latest 0.14.0+dev.

Workarounds

No viable workaround available, please only grant access to trusted users to your Gogs instance on affected versions.

References

https://www.cve.org/CVERecord?id=CVE-2024-39931

GitHub

Affected Software

3 affected componentsFixes available
go/github.com/gogs/gogs<=0.13.0
go/gogs.io/gogs<=0.13.0
0.13.1
Gogs Gogs<=0.13.0

Event History

Jul 4, 2024
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionSeverity
Data Sourced
via NVD·04:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:15 PM
Affected Software
Advisory Published
via GitHub·06:31 PM
Dec 23, 2024
Withdrawn
via GitHub·08:37 PM

Frequently Asked Questions

1

What is the severity of CVE-2024-39931?

CVE-2024-39931 has been withdrawn as it is a duplicate of another advisory, thus the severity is not assessed.

2

How do I fix CVE-2024-39931?

To address CVE-2024-39931, update to Gogs version 0.13.1 as earlier versions are affected.

3

What vulnerabilities are associated with CVE-2024-39931?

CVE-2024-39931 allows unprivileged users to delete internal files in Gogs up to version 0.13.0.

4

Which versions of Gogs are affected by CVE-2024-39931?

Gogs versions up to and including 0.13.0 are affected by CVE-2024-39931.

5

What is the main risk of exploiting CVE-2024-39931?

The main risk of exploiting CVE-2024-39931 is unauthorized file deletion by unprivileged user accounts.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203