Search criteria
1 vulnerability by github.com/golang/glog
CVE-2024-45339 (GCVE-0-2024-45339)
Vulnerability from cvelistv5 – Published: 2025-01-28 01:03 – Updated: 2025-02-17 11:02
VLAI?
Summary
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.
Severity ?
7.1 (High)
CWE
- CWE-61 - UNIX Symbolic Link (Symlink) Following
Assigner
References
Impacted products
| Vendor | Product | Version | ||
|---|---|---|---|---|
| github.com/golang/glog | github.com/golang/glog |
Affected:
0 , < 1.2.4
(semver)
|
Credits
Josh McSavaney
Günther Noack
{
"containers": {
"adp": [
{
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "LOCAL",
"availabilityImpact": "NONE",
"baseScore": 7.1,
"baseSeverity": "HIGH",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"privilegesRequired": "LOW",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N",
"version": "3.1"
}
},
{
"other": {
"content": {
"id": "CVE-2024-45339",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "total"
}
],
"role": "CISA Coordinator",
"timestamp": "2025-01-28T14:57:36.887905Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2025-01-28T15:17:10.866Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
},
{
"providerMetadata": {
"dateUpdated": "2025-02-17T11:02:36.886Z",
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE"
},
"references": [
{
"url": "https://lists.debian.org/debian-lts-announce/2025/02/msg00019.html"
}
],
"title": "CVE Program Container"
}
],
"cna": {
"affected": [
{
"collectionURL": "https://pkg.go.dev",
"defaultStatus": "unaffected",
"packageName": "github.com/golang/glog",
"product": "github.com/golang/glog",
"programRoutines": [
{
"name": "create"
},
{
"name": "Error"
},
{
"name": "ErrorContext"
},
{
"name": "ErrorContextDepth"
},
{
"name": "ErrorContextDepthf"
},
{
"name": "ErrorContextf"
},
{
"name": "ErrorDepth"
},
{
"name": "ErrorDepthf"
},
{
"name": "Errorf"
},
{
"name": "Errorln"
},
{
"name": "Exit"
},
{
"name": "ExitContext"
},
{
"name": "ExitContextDepth"
},
{
"name": "ExitContextDepthf"
},
{
"name": "ExitContextf"
},
{
"name": "ExitDepth"
},
{
"name": "ExitDepthf"
},
{
"name": "Exitf"
},
{
"name": "Exitln"
},
{
"name": "Fatal"
},
{
"name": "FatalContext"
},
{
"name": "FatalContextDepth"
},
{
"name": "FatalContextDepthf"
},
{
"name": "FatalContextf"
},
{
"name": "FatalDepth"
},
{
"name": "FatalDepthf"
},
{
"name": "Fatalf"
},
{
"name": "Fatalln"
},
{
"name": "Info"
},
{
"name": "InfoContext"
},
{
"name": "InfoContextDepth"
},
{
"name": "InfoContextDepthf"
},
{
"name": "InfoContextf"
},
{
"name": "InfoDepth"
},
{
"name": "InfoDepthf"
},
{
"name": "Infof"
},
{
"name": "Infoln"
},
{
"name": "Verbose.Info"
},
{
"name": "Verbose.InfoContext"
},
{
"name": "Verbose.InfoContextDepth"
},
{
"name": "Verbose.InfoContextDepthf"
},
{
"name": "Verbose.InfoContextf"
},
{
"name": "Verbose.InfoDepth"
},
{
"name": "Verbose.InfoDepthf"
},
{
"name": "Verbose.Infof"
},
{
"name": "Verbose.Infoln"
},
{
"name": "Warning"
},
{
"name": "WarningContext"
},
{
"name": "WarningContextDepth"
},
{
"name": "WarningContextDepthf"
},
{
"name": "WarningContextf"
},
{
"name": "WarningDepth"
},
{
"name": "WarningDepthf"
},
{
"name": "Warningf"
},
{
"name": "Warningln"
},
{
"name": "fileSink.Emit"
},
{
"name": "logBridge.Write"
},
{
"name": "syncBuffer.Write"
}
],
"vendor": "github.com/golang/glog",
"versions": [
{
"lessThan": "1.2.4",
"status": "affected",
"version": "0",
"versionType": "semver"
}
]
}
],
"credits": [
{
"lang": "en",
"value": "Josh McSavaney"
},
{
"lang": "en",
"value": "G\u00fcnther Noack"
}
],
"descriptions": [
{
"lang": "en",
"value": "When logs are written to a widely-writable directory (the default), an unprivileged attacker may predict a privileged process\u0027s 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."
}
],
"problemTypes": [
{
"descriptions": [
{
"description": "CWE-61: UNIX Symbolic Link (Symlink) Following",
"lang": "en"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2025-01-28T01:03:24.105Z",
"orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
"shortName": "Go"
},
"references": [
{
"url": "https://github.com/golang/glog/pull/74/commits/b8741656e406e66d6992bc2c9575e460ecaa0ec2"
},
{
"url": "https://github.com/golang/glog/pull/74"
},
{
"url": "https://groups.google.com/g/golang-announce/c/H-Q4ouHWyKs"
},
{
"url": "https://owasp.org/www-community/vulnerabilities/Insecure_Temporary_File"
},
{
"url": "https://pkg.go.dev/vuln/GO-2025-3372"
}
],
"title": "Vulnerability when creating log files in github.com/golang/glog"
}
},
"cveMetadata": {
"assignerOrgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
"assignerShortName": "Go",
"cveId": "CVE-2024-45339",
"datePublished": "2025-01-28T01:03:24.105Z",
"dateReserved": "2024-08-27T19:41:58.556Z",
"dateUpdated": "2025-02-17T11:02:36.886Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.1"
}