Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. gogs.io/gogs
  4. ›
  5. CVE-2024-39932

CVE-2024-39932: Gogs allows argument injection during the previewing of changes

December 23, 2024

Unprivileged user accounts can write to arbitrary files on the filesystem. We could demonstrate its exploitation to force a re-installation of the instance, granting administrator rights. It allows accessing and altering any user’s code hosted on the same instance.

References

  • github.com/advisories/GHSA-9pp6-wq8c-3w2c
  • github.com/gogs/gogs
  • github.com/gogs/gogs/security/advisories/GHSA-9pp6-wq8c-3w2c
  • nvd.nist.gov/vuln/detail/CVE-2024-39932
  • www.sonarsource.com/blog/securing-developer-tools-unpatched-code-vulnerabilities-in-gogs-1

Code Behaviors & Features

Detect and mitigate CVE-2024-39932 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.13.1

Fixed versions

  • 0.13.1

Solution

Upgrade to version 0.13.1 or above.

Impact 9.9 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

go/gogs.io/gogs/CVE-2024-39932.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:00 +0000.