GHSA-chh6-ppwq-jh92

Suggest an improvement
Source
https://github.com/advisories/GHSA-chh6-ppwq-jh92
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/01/GHSA-chh6-ppwq-jh92/GHSA-chh6-ppwq-jh92.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-chh6-ppwq-jh92
Aliases
Published
2024-01-30T23:54:26Z
Modified
2024-01-30T23:54:26Z
Severity
  • 5.7 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N CVSS Calculator
Summary
Improper Preservation of Permissions in etcd
Details

Vulnerability type

Access Controls

Detail

etcd creates certain directory paths (etcd data directory and the directory path when provided to automatically generate self-signed certificates for TLS connections with clients) with restricted access permissions (700) by using the os.MkdirAll. This function does not perform any permission checks when a given directory path exists already.

Specific Go Package Affected

github.com/etcd-io/etcd/pkg/fileutil

Workarounds

Make sure these directories have the desired permit (700).

References

Find out more on this vulnerability in the security audit report

For more information

If you have any questions or comments about this advisory: * Contact the etcd security committee

Database specific
{
    "nvd_published_at": "2020-08-05T20:15:00Z",
    "cwe_ids": [
        "CWE-281"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2024-01-30T23:54:26Z"
}
References

Affected packages

Go / github.com/etcd-io/etcd

Package

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

Affected ranges

Type
SEMVER
Events
Introduced
3.4.0-rc.0
Fixed
3.4.10

Go / github.com/etcd-io/etcd

Package

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

Affected ranges

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