Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2022-31038

5.4 · MEDIUM
Published Jun 9, 2022 gogs CWE-79 EPSS 0.71% (51th pctl)

Overview

CVE-2022-31038 is a medium-severity vulnerability affecting gogs gogs. It was published on June 9, 2022 and has a CVSS 3.1 base score of 5.4 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.4, rated MEDIUM. It can be exploited remotely over the network. Some level of privileges is required for exploitation.

Technical Description

Gogs is an open source self-hosted Git service. In versions of gogs prior to 0.12.9 `DisplayName` does not filter characters input from users, which leads to an XSS vulnerability when directly displayed in the issue list. This issue has been resolved in commit 155cae1d which sanitizes `DisplayName` prior to display to the user. All users of gogs are advised to upgrade. Users unable to upgrade should check their users' display names for malicious characters.

Remediation

Check the references section for vendor advisories and patches from gogs. Update gogs to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
gogs gogs >= 0, < 0.12.9 Affected

Frequently Asked Questions

What is CVE-2022-31038?

CVE-2022-31038 is a medium-severity vulnerability affecting gogs gogs. It was published on June 9, 2022 and has a CVSS 3.1 base score of 5.4 (MEDIUM).

How severe is CVE-2022-31038?

This vulnerability has a CVSS 3.1 base score of 5.4, rated MEDIUM. It can be exploited remotely over the network. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2022-31038?

Check the references section for vendor advisories and patches from gogs. Update gogs to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2022-31038?

CyberStrike's AI-powered security agents can automatically detect CVE-2022-31038 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.