{"answers":{"affected":"3 open source packages ship an affected version, including github.com/golang/glog.","exploited":"There is no known exploitation of CVE-2024-45339 in the wild and no public exploit code.","fix":"Upgrade github.com/golang/glog to 1.2.4 or later.","what":"CVE-2024-45339 is a high-severity path traversal vulnerability in github.com/golang/glog, published on 28 Jan 2025. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-45339 and fix it if it is affected.\n\nWhat it is: CVE-2024-45339 is a high-severity path traversal vulnerability in github.com/golang/glog, published on 28 Jan 2025. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-45339 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/golang/glog (Go): affected all versions; fixed in 1.2.4\n- github.com/golang/glog (Go): affected all versions; fixed in 1.2.4\n- github.com/golang/glog (Go): affected all versions; fixed in 1.2.4\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-45339/ (Markdown: https://insights.sbomify.com/CVE-2024-45339/index.md)","id":"CVE-2024-45339","markdown":"https://insights.sbomify.com/CVE-2024-45339/index.md","name":"CVE-2024-45339","record":{"aliases":["AZL-56066","AZL-56069","AZL-56075","AZL-56078","AZL-56379","AZL-56402","CLEANSTART-2026-CJ41565","CLEANSTART-2026-DK08962","CLEANSTART-2026-DK20803","CLEANSTART-2026-HI24388","DEBIAN-CVE-2024-45339","DLA-4056-1","GHSA-6wxm-mpqj-6jpf","GO-2025-3372","MINI-2r3p-fmfq-xvxh","MINI-c6q2-wc52-hxqw","MINI-m9x6-fx63-c7xv","MINI-rf5g-r7w9-rj8r","MINI-w749-j6q2-cjp8","SUSE-SU-2025:02149-1","SUSE-SU-2025:02150-1","SUSE-SU-2025:0580-1","SUSE-SU-2025:0611-1","SUSE-SU-2025:20746-1","UBUNTU-CVE-2024-45339","openSUSE-SU-2025:14815-1"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["data_modify"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Go logging library","requires_auth":"low_privilege","summary":"An attacker can overwrite sensitive files by planting symbolic links in the default log directory, affecting applications using the glog library.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Go","cpe":[],"cvss":{"score":7.1,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[],"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.","ecosystems":["Go","SUSE:Linux Enterprise Micro 5.5","SUSE:Linux Enterprise Module for Public Cloud 12","SUSE:Linux Enterprise Module for Public Cloud 15 SP3","SUSE:Linux Enterprise Module for Public Cloud 15 SP4","SUSE:Linux Enterprise Module for Public Cloud 15 SP5","SUSE:Linux Enterprise Module for Public Cloud 15 SP6","SUSE:Linux Enterprise Module for Public Cloud 15 SP7","SUSE:Linux Micro 6.1","openSUSE:Leap 15.6","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Vulnerability when creating log files in github.com/golang/glog","id":"CVE-2024-45339","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"path_traversal","year":"2024"},"n_packages":20,"n_references":5,"next":{"headline":"GOAUTH credential leak in cmd/go","id":"CVE-2024-45340"},"packages":[{"ecosystem":"Go","fixed":["1.2.4"],"introduced":["0"],"last_affected":[],"package":"github.com/golang/glog","purl":null,"source":"GHSA-6wxm-mpqj-6jpf"},{"ecosystem":"Go","fixed":["1.2.4"],"introduced":["0"],"last_affected":[],"package":"github.com/golang/glog","purl":"pkg:golang/github.com/golang/glog","source":"GHSA-6wxm-mpqj-6jpf"},{"ecosystem":"Go","fixed":["1.2.4"],"introduced":["0"],"last_affected":[],"package":"github.com/golang/glog","purl":"pkg:golang/github.com/golang/glog","source":"GO-2025-3372"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.5","fixed":["20250115.01-150000.1.44.1"],"introduced":["0"],"last_affected":[],"package":"google-osconfig-agent","purl":"pkg:rpm/suse/google-osconfig-agent\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.5","source":"SUSE-SU-2025:0611-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.5","fixed":["20250416.02-150000.1.50.1"],"introduced":["0"],"last_affected":[],"package":"google-osconfig-agent","purl":"pkg:rpm/suse/google-osconfig-agent\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.5","source":"SUSE-SU-2025:02149-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 12","fixed":["20250115.01-1.35.1"],"introduced":["0"],"last_affected":[],"package":"google-osconfig-agent","purl":"pkg:rpm/suse/google-osconfig-agent\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2012","source":"SUSE-SU-2025:0580-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 12","fixed":["20250416.02-1.41.1"],"introduced":["0"],"last_affected":[],"package":"google-osconfig-agent","purl":"pkg:rpm/suse/google-osconfig-agent\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2012","source":"SUSE-SU-2025:02150-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 15 SP3","fixed":["20250115.01-150000.1.44.1"],"introduced":["0"],"last_affected":[],"package":"google-osconfig-agent","purl":"pkg:rpm/suse/google-osconfig-agent\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP3","source":"SUSE-SU-2025:0611-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 15 SP3","fixed":["20250416.02-150000.1.50.1"],"introduced":["0"],"last_affected":[],"package":"google-osconfig-agent","purl":"pkg:rpm/suse/google-osconfig-agent\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP3","source":"SUSE-SU-2025:02149-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 15 SP4","fixed":["20250115.01-150000.1.44.1"],"introduced":["0"],"last_affected":[],"package":"google-osconfig-agent","purl":"pkg:rpm/suse/google-osconfig-agent\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP4","source":"SUSE-SU-2025:0611-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 15 SP4","fixed":["20250416.02-150000.1.50.1"],"introduced":["0"],"last_affected":[],"package":"google-osconfig-agent","purl":"pkg:rpm/suse/google-osconfig-agent\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP4","source":"SUSE-SU-2025:02149-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 15 SP5","fixed":["20250115.01-150000.1.44.1"],"introduced":["0"],"last_affected":[],"package":"google-osconfig-agent","purl":"pkg:rpm/suse/google-osconfig-agent\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP5","source":"SUSE-SU-2025:0611-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 15 SP5","fixed":["20250416.02-150000.1.50.1"],"introduced":["0"],"last_affected":[],"package":"google-osconfig-agent","purl":"pkg:rpm/suse/google-osconfig-agent\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP5","source":"SUSE-SU-2025:02149-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 15 SP6","fixed":["20250115.01-150000.1.44.1"],"introduced":["0"],"last_affected":[],"package":"google-osconfig-agent","purl":"pkg:rpm/suse/google-osconfig-agent\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP6","source":"SUSE-SU-2025:0611-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 15 SP6","fixed":["20250416.02-150000.1.50.1"],"introduced":["0"],"last_affected":[],"package":"google-osconfig-agent","purl":"pkg:rpm/suse/google-osconfig-agent\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP6","source":"SUSE-SU-2025:02149-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 15 SP7","fixed":["20250416.02-150000.1.50.1"],"introduced":["0"],"last_affected":[],"package":"google-osconfig-agent","purl":"pkg:rpm/suse/google-osconfig-agent\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP7","source":"SUSE-SU-2025:02149-1"},{"ecosystem":"SUSE:Linux Micro 6.1","fixed":["20250416.02-slfo.1.1_1.1"],"introduced":["0"],"last_affected":[],"package":"google-osconfig-agent","purl":"pkg:rpm/suse/google-osconfig-agent\u0026distro=SUSE%20Linux%20Micro%206.1","source":"SUSE-SU-2025:20746-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["20250115.01-150000.1.44.1"],"introduced":["0"],"last_affected":[],"package":"google-osconfig-agent","purl":"pkg:rpm/opensuse/google-osconfig-agent\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2025:0611-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["20250416.02-150000.1.50.1"],"introduced":["0"],"last_affected":[],"package":"google-osconfig-agent","purl":"pkg:rpm/opensuse/google-osconfig-agent\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2025:02149-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["20250115.01-2.1"],"introduced":["0"],"last_affected":[],"package":"google-osconfig-agent","purl":"pkg:rpm/opensuse/google-osconfig-agent\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:14815-1"}],"prev":{"headline":"Non-linear parsing of case-insensitive content in golang.org/x/net/html","id":"CVE-2024-45338"},"products":["github.com/golang/glog"],"published":"2025-01-28","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-04-30","vendors":["github.com/golang/glog"]},"summary":"An attacker can overwrite sensitive files by planting symbolic links in the default log directory, affecting applications using the glog library.","url":"https://insights.sbomify.com/CVE-2024-45339/"}