GHSA-ffjp-66mx-3qpj

Suggest an improvement
Source
https://github.com/advisories/GHSA-ffjp-66mx-3qpj
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/04/GHSA-ffjp-66mx-3qpj/GHSA-ffjp-66mx-3qpj.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-ffjp-66mx-3qpj
Aliases
Published
2022-04-06T00:01:30Z
Modified
2023-11-08T04:05:23.510693Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
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.

Database specific
{
    "nvd_published_at": "2022-04-05T16:15:00Z",
    "github_reviewed_at": "2022-04-07T18:31:32Z",
    "severity": "HIGH",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-59"
    ]
}
References

Affected packages

Go / github.com/beego/beego/v2

Package

Name
github.com/beego/beego/v2
View open source insights on deps.dev
Purl
pkg:golang/github.com/beego/beego/v2

Affected ranges

Type
SEMVER
Events
Introduced
2.0.0
Fixed
2.0.2

Go / github.com/beego/beego

Package

Name
github.com/beego/beego
View open source insights on deps.dev
Purl
pkg:golang/github.com/beego/beego

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected

Database specific

{
    "last_known_affected_version_range": "< 2.0.2"
}