CVE-2024-39932: Argument Injection in Gogs Preview Changes

github.com/gogs/gogs Updated 02 Oct 2025

Summary

09/07/2024
No i
Critical
9.9

CVE-2024-39932: Gogs allows argument injection during the previewing of changes in github.com/gogs/gogs. Affected versions are not published. No fix is published. How to fix ↓

Also tracked for

The same CVE-2024-39932 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Gogs is an open-source self-hosted Git service written in Go. It provides a lightweight and efficient way to manage repositories, users, and organizations. Gogs is widely used for version control and collaboration in software development projects. However, a vulnerability has been discovered in Gogs that allows argument injection during the previewing of changes.

Vulnerability Detail

The vulnerability in Gogs allows an attacker to inject arguments during the previewing of changes. This can lead to various security issues, including remote code execution, privilege escalation, and unauthorized access to sensitive data. The injection can occur due to improper input sanitization or validation in the affected code. Attackers can exploit this vulnerability by crafting malicious input that gets executed during the preview process.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

Currently, there is no known workaround for this vulnerability. It is recommended to apply the official patch as soon as it becomes available.

Conclusion

The argument injection vulnerability in Gogs during the previewing of changes poses a significant security risk. It is crucial for users of Gogs to apply the official patch as soon as it becomes available to protect their systems and data from potential exploitation.

See every vulnerability recorded for github.com/gogs/gogs →

Share this vulnerability

FAQ

This vulnerability can lead to remote code execution, privilege escalation, and unauthorized access to sensitive data.

An attacker can exploit this vulnerability by injecting malicious arguments during the previewing of changes in Gogs.

At the time of writing, there is no official patch available. The Gogs development team is actively working on addressing this vulnerability.

Yes, all versions of Gogs are affected by this vulnerability.

Yes, implementing proper input sanitization and validation can help mitigate this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for github.com/gogs/gogs.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback