{"id":"GHSA-ffjp-66mx-3qpj","summary":"Privilege escalation in beego","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.","aliases":["CVE-2021-27116"],"modified":"2023-11-08T04:05:23.510693Z","published":"2022-04-06T00:01:30Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2022-04-07T18:31:32Z","nvd_published_at":"2022-04-05T16:15:00Z","cwe_ids":["CWE-59"],"severity":"HIGH"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-27116"},{"type":"WEB","url":"https://github.com/beego/beego/issues/4484"},{"type":"PACKAGE","url":"https://github.com/beego/beego"}],"affected":[{"package":{"name":"github.com/beego/beego/v2","ecosystem":"Go","purl":"pkg:golang/github.com/beego/beego/v2"},"ranges":[{"type":"SEMVER","events":[{"introduced":"2.0.0"},{"fixed":"2.0.2"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/04/GHSA-ffjp-66mx-3qpj/GHSA-ffjp-66mx-3qpj.json"}},{"package":{"name":"github.com/beego/beego","ecosystem":"Go","purl":"pkg:golang/github.com/beego/beego"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"database_specific":{"last_known_affected_version_range":"\u003c 2.0.2","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/04/GHSA-ffjp-66mx-3qpj/GHSA-ffjp-66mx-3qpj.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}