VDB
Sign up
HIGH7.8

GHSA-ffjp-66mx-3qpj

Privilege escalation in beego

Quick fix

GHSA-ffjp-66mx-3qpj — github.com/beego/beego/v2: upgrade to the fixed version with the command below.

go get github.com/beego/beego/v2@v2.0.2

Details

An issue was discovered in file profile.go. The MemProf and GetCPUProfile functions do not correctly check whether the created file exists. As a result attackers can launch attacks symlink attacks locally. Attackers can use this vulnerability to escalate privileges.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/github.com/beego/beego/v2
Introduced in: 2.0.0Fixed in: 2.0.2
Fixgo get github.com/beego/beego/v2@v2.0.2
Go/github.com/beego/beego
Introduced in: 0

No fixed version published yet for github.com/beego/beego (go modules). Pin to a known-safe version or switch to an alternative.

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:golang/github.com/beego/beego/v2"]}'