VDB
Sign up
MEDIUM4.7

GHSA-f6px-w8rh-7r89

Beego has a file creation race condition

Quick fix

GHSA-f6px-w8rh-7r89 — github.com/beego/beego: upgrade to the fixed version with the command below.

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

Details

The File Session Manager in Beego 1.10.0 allows local users to read session files because there is a race condition involving file creation within a directory with weak permissions.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/github.com/beego/beego
Introduced in: 0Fixed in: 1.12.2
Fixgo get github.com/beego/beego@v1.12.2
Go/github.com/astaxie/beego
Introduced in: 0Fixed in: 1.12.2
Fixgo get github.com/astaxie/beego@v1.12.2

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