Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. codeberg.org/forgejo/forgejo
  4. ›
  5. CVE-2023-49946

CVE-2023-49946: Incorrect Permission Assignment for Critical Resource

December 3, 2023 (updated December 7, 2023)

In Forgejo before 1.20.5-1, certain endpoints do not check whether an object belongs to a repository for which permissions are being checked. This allows remote attackers to read private issues, read private pull requests, delete issues, and perform other unauthorized actions.

References

  • about.gitea.com/security
  • codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md
  • forgejo.org/2023-11-release-v1-20-5-1/
  • github.com/gogs/gogs/security
  • nvd.nist.gov/vuln/detail/CVE-2023-49946

Code Behaviors & Features

Detect and mitigate CVE-2023-49946 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.20.5-1

Fixed versions

  • 1.20.5-1

Solution

Upgrade to version 1.20.5-1 or above.

Impact 9.1 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-732: Incorrect Permission Assignment for Critical Resource

Source file

go/codeberg.org/forgejo/forgejo/CVE-2023-49946.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Thu, 08 Jan 2026 12:20:14 +0000.