Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. code.gitea.io/gitea
  4. ›
  5. CVE-2018-18926

CVE-2018-18926: Session Fixation

February 15, 2022 (updated April 12, 2022)

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

  • github.com/advisories/GHSA-hf6f-jq25-8gq9
  • github.com/go-gitea/gitea/commit/aeb5655c25053bdcd7eee94ea37df88468374162
  • github.com/go-gitea/gitea/issues/5140
  • github.com/go-gitea/gitea/pull/5177
  • nvd.nist.gov/vuln/detail/CVE-2018-18926

Code Behaviors & Features

Detect and mitigate CVE-2018-18926 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 1.5.2

Fixed versions

  • 1.5.2

Solution

Upgrade to version 1.5.2 or above.

Impact 9.8 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-384: Session Fixation
  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

go/code.gitea.io/gitea/CVE-2018-18926.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:06 +0000.