Vulnerability
CVE-2024-45339
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.
329 advisories report this vulnerability, across 9 ecosystems.
Advisories
-
AZL-56066
CVE-2024-45339 affecting package vitess for versions less than 19.0.4-4
-
AZL-56069
CVE-2024-45339 affecting package sriov-network-device-plugin for versions less than 3.6.2-8
-
AZL-56075
CVE-2024-45339 affecting package vitess for versions less than 17.0.7-4
-
AZL-56078
CVE-2024-45339 affecting package sriov-network-device-plugin for versions less than 3.7.0-3
-
AZL-56379
CVE-2024-45339 affecting package glog 0.3.5-16
-
AZL-56402
CVE-2024-45339 affecting package glog for versions less than 0.3.5-16
- CGA-236j-4jmf-6q85
- CGA-2372-7pqg-5p48
- CGA-2476-pgp6-24pv
- CGA-257q-3f87-cc5c
- CGA-2594-66gg-9cxp
- CGA-26h9-wcx3-w9vc
- CGA-27fm-p6hv-5cr7
- CGA-287f-7w52-9mh4
- CGA-28pr-j8wp-qm3p
- CGA-294m-pcgf-wgg9
- CGA-2cxg-65r6-3hvp
- CGA-2fj4-845g-j46f
- CGA-2jxf-fmvr-rfv3
- CGA-2pc5-cq92-h78c
- CGA-2pgh-3jw9-5656
- CGA-2q6h-vcqr-2rj2
- CGA-2v5g-qvhc-w7vj
- CGA-2wg9-qh93-q5j9
- CGA-2wv8-57fw-qq4q
- CGA-2wvx-58xq-vg44
- CGA-2xwh-hm44-hr36
- CGA-33m3-q4pr-3cjw
- CGA-34wh-6jf6-4gpv
- CGA-357p-g9v6-h4w3
- CGA-358c-3875-v65p
- CGA-35mx-mjq5-hcmr
- CGA-365q-4qmx-hhfr
- CGA-36w7-7685-j3x9
- CGA-376v-rmr2-pr9x
- CGA-37qj-wf73-ppcj
- CGA-38g7-wm45-rm5h
- CGA-3cfp-44mp-xc86
- CGA-3gxc-pgv6-56v8
- CGA-3pfh-7r5c-mm69
- CGA-3pfw-cmjc-84jv
- CGA-3rc2-v36x-gf53
- CGA-3xh5-x44q-f6jh
- CGA-434h-3mhp-54gf
- CGA-438j-4xvm-575x
- CGA-444g-h936-cg2v
- CGA-47gv-mx58-qp5c
- CGA-4g43-2qrm-gm8w
- CGA-4g6j-gf2w-gfwc
- CGA-4gvq-32xm-7vqr
- CGA-4h6f-3gcm-rwqw
- CGA-4p2p-3f43-5vjm
- CGA-4pxh-g9qh-x6jv
- CGA-4wff-q8q3-629v
- CGA-52gx-h7v5-268h
- CGA-52j7-qg3w-vhq5
- CGA-53v8-g6fq-7q2m
- CGA-54h4-gcq6-g93g
- CGA-575r-9m6g-v3fm
- CGA-58g8-q766-j77j
- CGA-59vp-f48r-wcwr
- CGA-5cj3-xjx5-j9w7
- CGA-5cjx-7qh2-gpph
- CGA-5fw9-gjw3-r8hg
- CGA-5g39-4hm4-98x7
- CGA-5g69-64r7-wjf8
- CGA-5m8q-642r-h9g5
- CGA-5vhw-8w5x-6mf9
- CGA-5wg2-ccxx-7g3j
- CGA-5x4g-fg2r-rc93
- CGA-62hp-w8fh-f4gp
- CGA-63v2-58g6-55v4
- CGA-63vw-mj87-xxvf
- CGA-673w-685g-hjqf
- CGA-674h-p8p4-wxw2
- CGA-682x-h559-wjr4
- CGA-6fcc-4v98-6mf7
- CGA-6h56-6938-gh9j
- CGA-6m74-3f54-6856
- CGA-6q7x-jgj6-fp9q
- CGA-6qg6-9gfq-2h72
- CGA-6v44-57q9-2vp4
- CGA-6vf4-32r9-67wh
- CGA-6vqp-2x42-8q24
- CGA-6w4p-fqh7-jq8r
- CGA-72wc-cpp7-c55h
- CGA-762w-p92m-j3v2
- CGA-76r6-qjrg-5g6j
- CGA-76v4-95wh-vfr6
- CGA-788r-m26f-cf9v
- CGA-78mf-6rmw-87jf
- CGA-7937-8x22-j8q7
- CGA-79qv-vww9-xvm5
- CGA-7cv6-9w6f-wx88
- CGA-7gf2-gh89-m4wc
- CGA-7pgm-27wq-5hw8
- CGA-7wjj-pv6q-7gx6
- CGA-7x37-jmhp-vxwf
- CGA-827q-w8g4-9mpj
- CGA-8438-49wj-r6w9
Showing the first 100. The API lists them all: /api/v1/vulnerabilities/CVE-2024-45339.
References
- https://github.com/golang/glog/pull/74
- https://github.com/golang/glog/pull/74/commits/b8741656e406e66d6992bc2c9575e460ecaa0ec2
- https://groups.google.com/g/golang-announce/c/H-Q4ouHWyKs
- https://owasp.org/www-community/vulnerabilities/Insecure_Temporary_File
- https://pkg.go.dev/vuln/GO-2025-3372
- https://lists.debian.org/debian-lts-announce/2025/02/msg00019.html