CVE-2024-10389: Github.com/google/safearchive Path Traversal Vulnerability

MODERATE
Advisory Identifier: GHSA-q3rp-vvm7-j8jg
CVSS 5.3
CWE-427 CWE-22
Published
Advisory Summary

CVE-2024-10389 is a MODERATE (CVSS 5.3) path traversal vulnerability (CWE-427: Uncontrolled Search Path Element) affecting Github.com/google/safearchive libraries in the Go ecosystem. The issue involves safearchive path traversal vulnerability. Remediation is available by upgrading affected packages to version 0.0.0-20241025131057-f7ce9d7b6f9c.

CVE-2024-10389 at a Glance

CVE Identifier CVE-2024-10389
GHSA Identifier GHSA-q3rp-vvm7-j8jg
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-427: Uncontrolled Search Path Element
Affected Product Github.com/google/safearchive
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:L/I:H/A:L).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity High (I:H)
Availability Low (A:L)

How to Fix CVE-2024-10389

To remediate this vulnerability, upgrade all affected Github.com/google/safearchive dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/google/safearchive fixed: 0.0.0-20241025131057-f7ce9d7b6f9c
Upgrade github.com/google/safearchive to 0.0.0-20241025131057-f7ce9d7b6f9c
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/google/safearchive

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-10389, inspect your project dependencies for Github.com/google/safearchive:

inspect dependencies for github.com/google/safearchive

Analyze the terminal output to locate any version of Github.com/google/safearchive in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.0-20241025131057-f7ce9d7b6f9c), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-427: Uncontrolled Search Path Element, where the product uses a fixed or controlled search path to find resources, but one or more locations in that path can be under the control of unintended actors. In Github.com/google/safearchive, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

There exists a Path Traversal vulnerability in Safearchive on Platforms with Case-Insensitive Filesystems (e.g., NTFS). This allows Attackers to Write Arbitrary Files via Archive Extraction containing symbolic links. We recommend upgrading past commit f7ce9d7b6f9c6ecd72d0b0f16216b046e55e44dc

CVE-2024-10389 Affected Github.com/google/safearchive Versions

1 component(s)
Fixed Versions:
0.0.0-20241025131057-f7ce9d7b6f9c
Product / Package Ecosystem Affected Versions Fixed Version
github.com/google/safearchive
Go
< 0.0.0-20241025131057-f7ce9d7b6f9c
0.0.0-20241025131057-f7ce9d7b6f9c

References

Frequently Asked Questions

What is CVE-2024-10389?
CVE-2024-10389 is a security vulnerability in Github.com/google/safearchive involving Safearchive Path Traversal vulnerability under CWE-427: Uncontrolled Search Path Element.
Which Github.com/google/safearchive versions are affected?
Affected versions include releases prior to 0.0.0-20241025131057-f7ce9d7b6f9c across affected packages: github.com/google/safearchive.
What version fixes CVE-2024-10389?
Upgrading to 0.0.0-20241025131057-f7ce9d7b6f9c (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/google/safearchive affected?
Yes, github.com/google/safearchive is affected in releases prior to 0.0.0-20241025131057-f7ce9d7b6f9c. Upgrade your dependency to 0.0.0-20241025131057-f7ce9d7b6f9c or later.
What is the CVSS score of CVE-2024-10389?
CVE-2024-10389 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:L/I:H/A:L.
What CWE is associated with CVE-2024-10389?
CVE-2024-10389 is classified under CWE-427: Uncontrolled Search Path Element (The product uses a fixed or controlled search path to find resources, but one or more locations in that path can be under the control of unintended actors.).
How can I check Go dependencies for CVE-2024-10389?
Run the dependency tree command: 'inspect dependencies for github.com/google/safearchive'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-q3rp-vvm7-j8jg",
  "modified" : "2025-07-23T22:13:25Z",
  "published" : "2024-11-04T12:32:56Z",
  "aliases" : [ "CVE-2024-10389" ],
  "summary" : "Safearchive Path Traversal vulnerability",
  "details" : "There exists a Path Traversal vulnerability in Safearchive on Platforms with Case-Insensitive Filesystems (e.g., NTFS). This allows Attackers to Write Arbitrary Files via Archive Extraction containing symbolic links. We recommend upgrading past commit f7ce9d7b6f9c6ecd72d0b0f16216b046e55e44dc",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:L/I:H/A:L"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:P/VC:L/VI:H/VA:L/SC:L/SI:H/SA:L/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:Y/R:U/V:D/RE:L/U:Green"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/google/safearchive"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.0.0-20241025131057-f7ce9d7b6f9c"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-10389"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/google/safearchive/commit/f7ce9d7b6f9c6ecd72d0b0f16216b046e55e44dc"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-q3rp-vvm7-j8jg"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/google/safearchive"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22", "CWE-427" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-11-04T23:23:28Z",
    "nvd_published_at" : "2024-11-04T11:15:04Z"
  }
}