Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2018-25046

Due to improper path sanitization, archives containing relative file paths can cause files to be written (or overwritten) outside of the target directory.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2018-25046
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 10:44 UTC · Revision 1

Source evidence

CVE-2018-25046

core-osv · Original source

Published 27 Dec 2022, 22:15 UTC

Due to improper path sanitization, archives containing relative file paths can cause files to be written (or overwritten) outside of the target directory.

osv:CVE-2018-25046
Complete source record
{
  "id": "68aa38203bb442382f36efe6d3f0a373a751726a3e4fa348a7e4a241b6d12cd3",
  "url": "https://osv.dev/vulnerability/CVE-2018-25046",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2018-25046",
    "summary": "Due to improper path sanitization, archives containing relative file paths can cause files to be written (or overwritten) outside of the target directory.",
    "evidence": "osv:CVE-2018-25046",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2018-25046",
      "aliases": [
        "CVE-2018-25046",
        "GHSA-32qh-8vg6-9g43",
        "GO-2020-0025"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/cloudfoundry/archiver",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "09b5706aa9367972c09144a450bb4523049ee840"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "fixed": "09b5706aa9367972c09144a450bb4523049ee840"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-25046.json"
          }
        }
      ],
      "modified": "2026-10-20T10:51:35.476635223Z",
      "provider": "osv",
      "references": [
        "https://pkg.go.dev/vuln/GO-2020-0025",
        "https://snyk.io/research/zip-slip-vulnerability",
        "https://github.com/cloudfoundry/archiver/commit/09b5706aa9367972c09144a450bb4523049ee840"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:a:cloudfoundry:archiver:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "cloudfoundry:archiver",
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "2018-05-23"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2018-25046",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 382613,
  "published_at": "2022-12-27T22:15:11.14+00:00"
}