CVE-2021-30080: Access control bypass in Beego

github.com/astaxie/beego Updated 02 Oct 2025

Summary

22/08/2022
No i
Unrated
Not published

CVE-2021-30080: Access control bypass via incorrect route lookup in github.com/beego/beego and beego/v2. Affected versions are not published. No fix is published. How to fix ↓

Also tracked for

The same CVE-2021-30080 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

Beego is a popular open-source framework for building web applications and APIs using the Go programming language. It provides a robust set of tools and features to simplify the development process. However, a vulnerability has been discovered in Beego versions 0 through 2.0.1 that allows attackers to bypass access control.

Vulnerability Detail

The vulnerability in Beego arises from a flaw in the route lookup process. Attackers can exploit this flaw to bypass access control mechanisms and gain unauthorized access to protected resources. This can lead to various security issues, such as unauthorized data disclosure, privilege escalation, and remote code execution. The vulnerability has been assigned the identifier CVE-2021-30080.

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

If upgrading to the latest version is not immediately feasible, a temporary workaround can be implemented by manually applying a patch provided by the Beego project. The patch addresses the access control bypass vulnerability and can be found in the official GitHub repository of Beego. Developers can apply the patch to their existing Beego installation to mitigate the risk until a proper upgrade can be performed.

Conclusion

The access control bypass vulnerability in Beego can have serious security implications for applications built using this framework. It is crucial to promptly upgrade to the latest secure version or apply the provided patch to mitigate the risk. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for github.com/astaxie/beego →

Share this vulnerability

FAQ

Beego is an open-source framework for building web applications and APIs using the Go programming language. It provides a set of tools and features to simplify the development process.

The vulnerability allows attackers to bypass access control mechanisms in Beego, potentially leading to unauthorized access to protected resources and various security issues.

To fix this vulnerability, it is recommended to upgrade to Beego version 2.0.3 or later. Alternatively, you can apply a patch provided by the Beego project until a proper upgrade can be performed.

Yes, a temporary workaround is available in the form of a patch provided by the Beego project. This patch can be applied to mitigate the risk until a proper upgrade can be performed.

You can find more information about this vulnerability in the official GitHub repository of Beego, as well as in the CVE entry assigned to this issue.

Related vulnerabilities

Recent vulnerabilities recorded for github.com/astaxie/beego.

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