Skip to content
Heist/ feed
Back to feed
Medium

Extract has insufficient checks allowing attacker to create symlinks outside the extraction directory.

Type: advisorySources: OSV

Extract is aA Go library to extract archives in zip, tar.gz or tar.bz2 formats. A maliciously crafted archive may allow an attacker to create a symlink outside the extraction target directory. This vulnerability is fixed in 4.0.0. If you're using the Extractor.FS interface, then upgrading to /v4 will require to implement the new methods that have been added.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-47877
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 02:22 UTC · Revision 1

Source evidence

Extract has insufficient checks allowing attacker to create symlinks outside the extraction directory.

core-osv · Original source

Published 11 Oct 2024, 16:36 UTC

Extract is aA Go library to extract archives in zip, tar.gz or tar.bz2 formats. A maliciously crafted archive may allow an attacker to create a symlink outside the extraction target directory. This vulnerability is fixed in 4.0.0. If you're using the Extractor.FS interface, then upgrading to /v4 will require to implement the new methods that have been added.

osv:CVE-2024-47877
Complete source record
{
  "id": "baadf11ca5733d1706b7aef6d059a4f8bbfbfd5b02a3da62e149d4428270c5c2",
  "url": "https://osv.dev/vulnerability/CVE-2024-47877",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Extract has insufficient checks allowing attacker to create symlinks outside the extraction directory.",
    "summary": "Extract is aA Go library to extract archives in zip, tar.gz or tar.bz2 formats. A maliciously crafted archive may allow an attacker to create a symlink outside the extraction target directory. This vulnerability is fixed in 4.0.0. If you're using the Extractor.FS interface, then upgrading to /v4 will require to implement the new methods that have been added.",
    "evidence": "osv:CVE-2024-47877",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2024-47877",
      "aliases": [
        "CVE-2024-47877",
        "GHSA-8rm2-93mq-jqhc",
        "GO-2024-3196"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/codeclysm/extract",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "eaeff3236ebe82039553f39bc285ee5c79caae3c"
                },
                {
                  "fixed": "4a98568021b8e289345c7f526ccbd7ed732cf286"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:codeclysm:extract:*:*:*:*:*:go:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "4.0.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "4a98568021b8e289345c7f526ccbd7ed732cf286"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v3.1.1",
            "v3.1.0",
            "v3.0.2",
            "v3.0.1",
            "v3.0.0",
            "v2.2.0",
            "v2.1.1",
            "v2.1.0",
            "v2.0.0",
            "v1.1.1",
            "v1.1.0",
            "v1.0.1",
            "v1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-47877.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:48.980264462Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/47xxx/CVE-2024-47877.json",
        "https://github.com/codeclysm/extract/security/advisories/GHSA-8rm2-93mq-jqhc",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-47877",
        "https://github.com/codeclysm/extract/commit/4a98568021b8e289345c7f526ccbd7ed732cf286"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-22",
          "CWE-61"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/47xxx/CVE-2024-47877.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-47877",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 517326,
  "published_at": "2024-10-11T16:36:29.763+00:00"
}