cve-2024-45339
Vulnerability from cvelistv5
Published
2025-01-28 01:03
Modified
2025-02-17 11:02
Summary
Vulnerability when creating log files in github.com/golang/glog
Impacted products
Show details on NVD website


{
  "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",
  "meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2024-45339\",\"sourceIdentifier\":\"security@golang.org\",\"published\":\"2025-01-28T02:15:28.927\",\"lastModified\":\"2025-02-17T11:15:08.753\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"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.\"},{\"lang\":\"es\",\"value\":\"Cuando los registros se escriben en un directorio de amplia escritura (el predeterminado), un atacante sin privilegios puede predecir la ruta del archivo de registro de un proceso privilegiado y crear previamente un enlace simb\u00f3lico a un archivo confidencial en su lugar. Cuando se ejecuta ese proceso privilegiado, seguir\u00e1 el enlace simb\u00f3lico plantado y sobrescribir\u00e1 ese archivo confidencial. Para solucionarlo, glog ahora hace que el programa salga (con el c\u00f3digo de estado 2) cuando descubre que el archivo de registro configurado ya existe.\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"134c704f-9b21-4f2e-91b3-4a467353bcc0\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N\",\"baseScore\":7.1,\"baseSeverity\":\"HIGH\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"NONE\"},\"exploitabilityScore\":1.8,\"impactScore\":5.2}]},\"references\":[{\"url\":\"https://github.com/golang/glog/pull/74\",\"source\":\"security@golang.org\"},{\"url\":\"https://github.com/golang/glog/pull/74/commits/b8741656e406e66d6992bc2c9575e460ecaa0ec2\",\"source\":\"security@golang.org\"},{\"url\":\"https://groups.google.com/g/golang-announce/c/H-Q4ouHWyKs\",\"source\":\"security@golang.org\"},{\"url\":\"https://owasp.org/www-community/vulnerabilities/Insecure_Temporary_File\",\"source\":\"security@golang.org\"},{\"url\":\"https://pkg.go.dev/vuln/GO-2025-3372\",\"source\":\"security@golang.org\"},{\"url\":\"https://lists.debian.org/debian-lts-announce/2025/02/msg00019.html\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"}]}}"
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading...

Loading...

Loading...
  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.