CVE-2024-45339 Affecting gitaly-17.5 package, versions <17.5.5-r3


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-CHAINGUARDLATEST-GITALY175-8674703
  • published29 Jan 2025
  • disclosed28 Jan 2025

Introduced: 28 Jan 2025

NewCVE-2024-45339  (opens in a new tab)

How to fix?

Upgrade Chainguard gitaly-17.5 to version 17.5.5-r3 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream gitaly-17.5 package and not the gitaly-17.5 package as distributed by Chainguard. See How to fix? for Chainguard relevant fixed versions and status.

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.