{"id":"CVE-2021-27116","aliases":["EUVD-2022-1723","GHSA-ffjp-66mx-3qpj"],"status":"published","title":"Privilege escalation in beego","description":"An issue was discovered in file profile.go in function MemProf in beego through 2.0.2, allows attackers to launch symlink attacks locally.","severity":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AC:L/AV:L/A:H/C:H/I:H/PR:L/S:U/UI:N","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.00439,"percentile":0.38603,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-59"],"published":"2022-04-05T15:36:55Z","modified":"2026-10-24T10:50:11Z","fixes":[{"ecosystem":"Go","package":"github.com/beego/beego/v2","fixed_in":["2.0.2"],"sources":["ghsa","osv"]},{"ecosystem":"Go","package":"github.com/beego/beego","fixed_in":["2.0.2"],"sources":["ghsa"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"github.com/beego/beego/v2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.0.2"}]}]},{"source":"ghsa","ecosystem":"Go","package":"github.com/beego/beego","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.2"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/beego/beego/v2","ranges":[{"type":"SEMVER","events":[{"introduced":"2.0.0"},{"fixed":"2.0.2"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/beego/beego","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]}],"products":[{"vendor":"beego","product":"beego"}],"references":[{"url":"https://github.com/beego/beego/issues/4484","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-27116","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-ffjp-66mx-3qpj"},{"url":"https://github.com/beego/beego","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2021-27116","description":"An issue was discovered in file profile.go in function MemProf in beego through 2.0.2, allows attackers to launch symlink attacks locally.","status":"published","published":"2022-04-05T15:36:55Z","modified":"2024-08-03T20:40:47.295Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AC:L/AV:L/A:H/C:H/I:H/PR:L/S:U/UI:N","level":"high","assessor":"cna"}],"updated_at":"2026-11-02T14:33:04.360272Z"}],"euvd":[{"id":"EUVD-2022-1723","description":"An issue was discovered in file profile.go in function MemProf in beego through 2.0.2, allows attackers to launch symlink attacks locally.","status":"published","published":"2022-04-05T15:36:55Z","modified":"2024-08-03T20:40:47Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AC:L/AV:L/A:H/C:H/I:H/PR:L/S:U/UI:N","level":"high"}],"updated_at":"2026-11-03T03:24:49.808499Z"}],"ghsa":[{"id":"GHSA-ffjp-66mx-3qpj","title":"Privilege escalation in beego","description":"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.","status":"published","published":"2022-04-06T00:01:30Z","modified":"2023-01-27T05:01:20Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-59"],"updated_at":"2026-11-02T14:36:16.28305Z"}],"nvd":[{"id":"CVE-2021-27116","description":"An issue was discovered in file profile.go in function MemProf in beego through 2.0.2, allows attackers to launch symlink attacks locally.","status":"published","published":"2022-04-05T16:15:11.157Z","modified":"2026-06-17T03:44:18.76Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":7.2,"vector":"AV:L/AC:L/Au:N/C:C/I:C/A:C","level":"high","assessor":"primary"}],"cwes":["CWE-59"],"updated_at":"2026-11-02T14:07:05.581807Z"}],"osv":[{"id":"CVE-2021-27116","description":"An issue was discovered in file profile.go in function MemProf in beego through 2.0.2, allows attackers to launch symlink attacks locally.","status":"published","published":"2022-04-05T16:15:11.157Z","modified":"2026-10-24T10:50:11.942909847Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:18.778776Z"},{"id":"GHSA-ffjp-66mx-3qpj","title":"Privilege escalation in beego","description":"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.","status":"published","published":"2022-04-06T00:01:30Z","modified":"2023-11-08T04:05:23.510693Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-59"],"updated_at":"2026-11-02T15:46:46.39441Z"}]}}
