VDB
Sign up
CRITICAL9.8

GO-2022-0569

Path traversal in github.com/beego/beego and beego/v2

Quick fix

GO-2022-0569 — github.com/beego/beego: upgrade to the fixed version with the command below.

go get github.com/beego/beego@v1.12.11

Details

The leafInfo.match() function uses path.join() to deal with wildcard values which can lead to cross directory risk.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/github.com/astaxie/beego
Introduced in: 0

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

Go/github.com/beego/beego
Introduced in: 0Fixed in: 1.12.11
Fixgo get github.com/beego/beego@v1.12.11
Go/github.com/beego/beego/v2
Introduced in: 2.0.0Fixed in: 2.0.4
Fixgo get github.com/beego/beego/v2@v2.0.4

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/astaxie/beego"]}'