Skip to content

Gitea Remote Code Execution (RCE)

Critical severity GitHub Reviewed Published Feb 15, 2022 to the GitHub Advisory Database • Updated Sep 15, 2023

Package

gomod code.gitea.io/gitea (Go)

Affected versions

< 1.5.2

Patched versions

1.5.2

Description

Gitea before 1.5.4 allows remote code execution because it does not properly validate session IDs. This is related to session ID handling in the go-macaron/session code for Macaron.

References

Reviewed May 12, 2021
Published to the GitHub Advisory Database Feb 15, 2022
Last updated Sep 15, 2023

Severity

Critical
9.8
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Weaknesses

CVE ID

CVE-2018-18926

GHSA ID

GHSA-hf6f-jq25-8gq9

Source code

No known source code
Checking history
See something to contribute? Suggest improvements for this vulnerability.