Skip to content

x/vulndb: potential Go vuln in github.com/golang/glog: GHSA-6wxm-mpqj-6jpf #3425

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
GoVulnBot opened this issue Jan 28, 2025 · 2 comments

Comments

@GoVulnBot
Copy link

Advisory GHSA-6wxm-mpqj-6jpf references a vulnerability in the following Go modules:

Module
github.com/golang/glog

Description:
When logs are written to a widely-writable directory (the default), an unprivileged attacker may predict a privileged process's log file path and pre-create a symbolic link to a sensitive file in its place. When that privileged process runs, it will follow the planted symlink and overwrite that sensitive file. To fix that, glog now causes the program to exit (with status code 2) when it finds that the configured log file already exists.

References:

!! Possible duplicate report !!

Cross references:

See doc/quickstart.md for instructions on how to triage this report.

id: GO-ID-PENDING
modules:
    - module: github.com/golang/glog
      versions:
        - fixed: 1.2.4
      vulnerable_at: 1.2.3
summary: Insecure Temporary File usage in github.com/golang/glog
cves:
    - CVE-2024-45339
ghsas:
    - GHSA-6wxm-mpqj-6jpf
references:
    - advisory: https://github.com/advisories/GHSA-6wxm-mpqj-6jpf
    - advisory: https://nvd.nist.gov/vuln/detail/CVE-2024-45339
    - fix: https://github.com/golang/glog/pull/74
    - fix: https://github.com/golang/glog/pull/74/commits/b8741656e406e66d6992bc2c9575e460ecaa0ec2
    - web: https://groups.google.com/g/golang-announce/c/H-Q4ouHWyKs
    - web: https://owasp.org/www-community/vulnerabilities/Insecure_Temporary_File
source:
    id: GHSA-6wxm-mpqj-6jpf
    created: 2025-01-28T18:01:23.939697636Z
review_status: UNREVIEWED

@tatianab
Copy link
Contributor

Duplicate of #3372

@tatianab tatianab marked this as a duplicate of #3372 Jan 28, 2025
@gopherbot
Copy link
Contributor

Change https://go.dev/cl/645139 mentions this issue: data/reports: update GO-2025-3372 (add GHSA)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants