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.2Details
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/astaxie/beego
Introduced in:
0Fixed in: 1.12.2Fix
go get github.com/astaxie/beego@v1.12.2References
- https://nvd.nist.gov/vuln/detail/CVE-2019-16354[ADVISORY]
- https://github.com/astaxie/beego/issues/3763[WEB]
- https://github.com/beego/beego/issues/3763[WEB]
- https://github.com/beego/beego/pull/3975[WEB]
- https://github.com/beego/beego/pull/3975/commits/f99cbe0fa40936f2f8dd28e70620c559b6e5e2fd[WEB]
- https://github.com/astaxie/beego/commit/f99cbe0fa40936f2f8dd28e70620c559b6e5e2fd[WEB]
- https://github.com/beego/beego/commit/bac2b31afecc65d9a89f9e473b8006c5edc0c8d1[WEB]
- https://github.com/astaxie/beego[PACKAGE]
- https://github.com/astaxie/beego/blob/v1.12.2/session/sess_file.go#L142[WEB]
- https://pkg.go.dev/vuln/GO-2021-0084[WEB]