Logo
-

Byte Open Security

(ByteOS Network)

Log In

Sign Up

ByteOS

Security
Vulnerability Details
Registries
Custom Views
Weaknesses
Attack Patterns
Filters & Tools
Vulnerability Details :

CVE-2024-45339

Summary
Assigner-Go
Assigner Org ID-1bb62c36-49e3-4200-9d77-64a1400537cc
Published At-28 Jan, 2025 | 01:03
Updated At-17 Feb, 2025 | 11:02
Rejected At-
Credits

Vulnerability when creating log files in github.com/golang/glog

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.

Vendors
-
Not available
Products
-
Metrics (CVSS)
VersionBase scoreBase severityVector
Weaknesses
Attack Patterns
Solution/Workaround
References
HyperlinkResource Type
EPSS History
Score
Latest Score
-
N/A
No data available for selected date range
Percentile
Latest Percentile
-
N/A
No data available for selected date range
Stakeholder-Specific Vulnerability Categorization (SSVC)
▼Common Vulnerabilities and Exposures (CVE)
cve.org
Assigner:Go
Assigner Org ID:1bb62c36-49e3-4200-9d77-64a1400537cc
Published At:28 Jan, 2025 | 01:03
Updated At:17 Feb, 2025 | 11:02
Rejected At:
▼CVE Numbering Authority (CNA)
Vulnerability when creating log files in github.com/golang/glog

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.

Affected Products
Vendor
github.com/golang/glog
Product
github.com/golang/glog
Collection URL
https://pkg.go.dev
Package Name
github.com/golang/glog
Program Routines
  • create
  • Error
  • ErrorContext
  • ErrorContextDepth
  • ErrorContextDepthf
  • ErrorContextf
  • ErrorDepth
  • ErrorDepthf
  • Errorf
  • Errorln
  • Exit
  • ExitContext
  • ExitContextDepth
  • ExitContextDepthf
  • ExitContextf
  • ExitDepth
  • ExitDepthf
  • Exitf
  • Exitln
  • Fatal
  • FatalContext
  • FatalContextDepth
  • FatalContextDepthf
  • FatalContextf
  • FatalDepth
  • FatalDepthf
  • Fatalf
  • Fatalln
  • Info
  • InfoContext
  • InfoContextDepth
  • InfoContextDepthf
  • InfoContextf
  • InfoDepth
  • InfoDepthf
  • Infof
  • Infoln
  • Verbose.Info
  • Verbose.InfoContext
  • Verbose.InfoContextDepth
  • Verbose.InfoContextDepthf
  • Verbose.InfoContextf
  • Verbose.InfoDepth
  • Verbose.InfoDepthf
  • Verbose.Infof
  • Verbose.Infoln
  • Warning
  • WarningContext
  • WarningContextDepth
  • WarningContextDepthf
  • WarningContextf
  • WarningDepth
  • WarningDepthf
  • Warningf
  • Warningln
  • fileSink.Emit
  • logBridge.Write
  • syncBuffer.Write
Default Status
unaffected
Versions
Affected
  • From 0 before 1.2.4 (semver)
Problem Types
TypeCWE IDDescription
N/AN/ACWE-61: UNIX Symbolic Link (Symlink) Following
Type: N/A
CWE ID: N/A
Description: CWE-61: UNIX Symbolic Link (Symlink) Following
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Josh McSavaney
Günther Noack
Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://github.com/golang/glog/pull/74/commits/b8741656e406e66d6992bc2c9575e460ecaa0ec2
N/A
https://github.com/golang/glog/pull/74
N/A
https://groups.google.com/g/golang-announce/c/H-Q4ouHWyKs
N/A
https://owasp.org/www-community/vulnerabilities/Insecure_Temporary_File
N/A
https://pkg.go.dev/vuln/GO-2025-3372
N/A
Hyperlink: https://github.com/golang/glog/pull/74/commits/b8741656e406e66d6992bc2c9575e460ecaa0ec2
Resource: N/A
Hyperlink: https://github.com/golang/glog/pull/74
Resource: N/A
Hyperlink: https://groups.google.com/g/golang-announce/c/H-Q4ouHWyKs
Resource: N/A
Hyperlink: https://owasp.org/www-community/vulnerabilities/Insecure_Temporary_File
Resource: N/A
Hyperlink: https://pkg.go.dev/vuln/GO-2025-3372
Resource: N/A
▼Authorized Data Publishers (ADP)
1. CISA ADP Vulnrichment
Affected Products
Metrics
VersionBase scoreBase severityVector
3.17.1HIGH
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Version: 3.1
Base score: 7.1
Base severity: HIGH
Vector:
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
2. CVE Program Container
Affected Products
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://lists.debian.org/debian-lts-announce/2025/02/msg00019.html
N/A
Hyperlink: https://lists.debian.org/debian-lts-announce/2025/02/msg00019.html
Resource: N/A
Information is not available yet
▼National Vulnerability Database (NVD)
nvd.nist.gov
Source:security@golang.org
Published At:28 Jan, 2025 | 02:15
Updated At:17 Feb, 2025 | 11:15

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.

CISA Catalog
Date AddedDue DateVulnerability NameRequired Action
N/A
Date Added: N/A
Due Date: N/A
Vulnerability Name: N/A
Required Action: N/A
Metrics
TypeVersionBase scoreBase severityVector
Secondary3.17.1HIGH
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Type: Secondary
Version: 3.1
Base score: 7.1
Base severity: HIGH
Vector:
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
CPE Matches

Evaluator Description

Evaluator Impact

Evaluator Solution

Vendor Statements

References
HyperlinkSourceResource
https://github.com/golang/glog/pull/74security@golang.org
N/A
https://github.com/golang/glog/pull/74/commits/b8741656e406e66d6992bc2c9575e460ecaa0ec2security@golang.org
N/A
https://groups.google.com/g/golang-announce/c/H-Q4ouHWyKssecurity@golang.org
N/A
https://owasp.org/www-community/vulnerabilities/Insecure_Temporary_Filesecurity@golang.org
N/A
https://pkg.go.dev/vuln/GO-2025-3372security@golang.org
N/A
https://lists.debian.org/debian-lts-announce/2025/02/msg00019.htmlaf854a3a-2127-422b-91ae-364da2661108
N/A
Hyperlink: https://github.com/golang/glog/pull/74
Source: security@golang.org
Resource: N/A
Hyperlink: https://github.com/golang/glog/pull/74/commits/b8741656e406e66d6992bc2c9575e460ecaa0ec2
Source: security@golang.org
Resource: N/A
Hyperlink: https://groups.google.com/g/golang-announce/c/H-Q4ouHWyKs
Source: security@golang.org
Resource: N/A
Hyperlink: https://owasp.org/www-community/vulnerabilities/Insecure_Temporary_File
Source: security@golang.org
Resource: N/A
Hyperlink: https://pkg.go.dev/vuln/GO-2025-3372
Source: security@golang.org
Resource: N/A
Hyperlink: https://lists.debian.org/debian-lts-announce/2025/02/msg00019.html
Source: af854a3a-2127-422b-91ae-364da2661108
Resource: N/A

Change History

0
Information is not available yet

Similar CVEs

0Records found

Details not found