CVE-2024-45339 (GCVE-0-2024-45339)

Vulnerability from cvelistv5 – Published: 2025-01-28 01:03 – Updated: 2025-02-17 11:02
VLAI?
Title
Vulnerability when creating log files in github.com/golang/glog
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.
CWE
  • CWE-61 - UNIX Symbolic Link (Symlink) Following
Assigner
Go
Impacted products
Credits
Josh McSavaney Günther Noack
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",
  "vulnerability-lookup:meta": {
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://lists.debian.org/debian-lts-announce/2025/02/msg00019.html\"}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2025-02-17T11:02:36.886Z\"}}, {\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"cvssV3_1\": {\"scope\": \"UNCHANGED\", \"version\": \"3.1\", \"baseScore\": 7.1, \"attackVector\": \"LOCAL\", \"baseSeverity\": \"HIGH\", \"vectorString\": \"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N\", \"integrityImpact\": \"HIGH\", \"userInteraction\": \"NONE\", \"attackComplexity\": \"LOW\", \"availabilityImpact\": \"NONE\", \"privilegesRequired\": \"LOW\", \"confidentialityImpact\": \"HIGH\"}}, {\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2024-45339\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"total\"}], \"version\": \"2.0.3\", \"timestamp\": \"2025-01-28T14:57:36.887905Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2025-01-28T14:47:16.702Z\"}}], \"cna\": {\"title\": \"Vulnerability when creating log files in github.com/golang/glog\", \"credits\": [{\"lang\": \"en\", \"value\": \"Josh McSavaney\"}, {\"lang\": \"en\", \"value\": \"G\\u00fcnther Noack\"}], \"affected\": [{\"vendor\": \"github.com/golang/glog\", \"product\": \"github.com/golang/glog\", \"versions\": [{\"status\": \"affected\", \"version\": \"0\", \"lessThan\": \"1.2.4\", \"versionType\": \"semver\"}], \"packageName\": \"github.com/golang/glog\", \"collectionURL\": \"https://pkg.go.dev\", \"defaultStatus\": \"unaffected\", \"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\"}]}], \"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\"}], \"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\": [{\"lang\": \"en\", \"description\": \"CWE-61: UNIX Symbolic Link (Symlink) Following\"}]}], \"providerMetadata\": {\"orgId\": \"1bb62c36-49e3-4200-9d77-64a1400537cc\", \"shortName\": \"Go\", \"dateUpdated\": \"2025-01-28T01:03:24.105Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2024-45339\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2025-02-17T11:02:36.886Z\", \"dateReserved\": \"2024-08-27T19:41:58.556Z\", \"assignerOrgId\": \"1bb62c36-49e3-4200-9d77-64a1400537cc\", \"datePublished\": \"2025-01-28T01:03:24.105Z\", \"assignerShortName\": \"Go\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…