CVE-2019-16355: Github.com/beego/beego Incorrect Default Permissions Vulnerability
MODERATECVE-2019-16355 is a MODERATE (CVSS 5.5) incorrect default permissions vulnerability (CWE-276: Incorrect Default Permissions) affecting Github.com/beego/beego libraries in the Go ecosystem. The issue involves incorrect default permissions in beego. Remediation is available by upgrading affected packages to version 1.12.2.
CVE-2019-16355 at a Glance
Security Impact
CVSS: 5.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2019-16355
To remediate this vulnerability, upgrade all affected Github.com/beego/beego dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/beego/beego to 1.12.2
Upgrade github.com/astaxie/beego to 1.12.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/beego/beego
How to Check if You Are Affected
To determine whether your application is affected by CVE-2019-16355, inspect your project dependencies for Github.com/beego/beego:
inspect dependencies for github.com/beego/beego
Analyze the terminal output to locate any version of Github.com/beego/beego in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.12.2), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-276: Incorrect Default Permissions, where during installation, installed file permissions are set to allow anyone to modify those files. In Github.com/beego/beego, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2019-16355 Affected Github.com/beego/beego Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/beego/beego
|
Go |
< 1.12.2
|
1.12.2
|
|
github.com/astaxie/beego
|
Go |
< 1.12.2
|
1.12.2
|
References
Frequently Asked Questions
What is CVE-2019-16355?
Which Github.com/beego/beego versions are affected?
What version fixes CVE-2019-16355?
Is github.com/beego/beego affected?
Is github.com/astaxie/beego affected?
What is the CVSS score of CVE-2019-16355?
What CWE is associated with CVE-2019-16355?
How can I check Go dependencies for CVE-2019-16355?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-hf4p-4j9r-3cvx",
"modified" : "2024-04-22T19:05:38Z",
"published" : "2022-05-24T22:00:36Z",
"aliases" : [ "CVE-2019-16355" ],
"summary" : "Incorrect Default Permissions in Beego",
"details" : "The File Session Manager in Beego before 1.12.2 allows local users to read session files because of weak permissions for individual files.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/beego/beego"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.12.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/astaxie/beego"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.12.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-16355"
}, {
"type" : "WEB",
"url" : "https://github.com/beego/beego/issues/3763"
}, {
"type" : "WEB",
"url" : "https://github.com/beego/beego/pull/3975"
}, {
"type" : "WEB",
"url" : "https://github.com/beego/beego/pull/3975/commits/f99cbe0fa40936f2f8dd28e70620c559b6e5e2fd"
}, {
"type" : "WEB",
"url" : "https://github.com/beego/beego/commit/bac2b31afecc65d9a89f9e473b8006c5edc0c8d1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-276" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-02-01T21:16:11Z",
"nvd_published_at" : "2019-09-16T15:15:00Z"
}
}