{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "3.8.0"
              },
              {
                "fixed": "3.8.2"
              },
              {
                "introduced": "3.8.x"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "DESCRIPTION"
            ]
          },
          "events": [
            {
              "introduced": "70ff28fcf04ec129a1d064f96e49aa57fcc90e37"
            },
            {
              "fixed": "7f53fce04e4e672230f4eb80b219af17975e4f83"
            }
          ],
          "repo": "https://github.com/libarchive/libarchive",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "mitre",
    "cwe_ids": [
      "CWE-122"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/64xxx/CVE-2025-64031.json"
  },
  "details": "libarchive 3.8.x before 3.8.2 has a strcpy heap-based buffer overflow in the gzip writer via the original-filename field to archive_compressor_gzip_open in archive_write_add_filter_gzip.c, aka GHSA-92wx-p669-8gr9. This relates to bsdtar. Exploitation envisions a marginally plausible scenario in which original-filename is obtained from an untrusted party. (original-filename is not derived from the input data.)",
  "id": "CVE-2025-64031",
  "modified": "2026-09-18T03:30:40.862363544Z",
  "published": "2026-09-14T00:00:00Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://gist.github.com/ttuurrnn/1365a4a9b1c3d5826a3a9bbe111f26b8"
    },
    {
      "type": "WEB",
      "url": "https://github.com/libarchive/libarchive/blob/master/libarchive/archive_write_add_filter_gzip.c"
    },
    {
      "type": "WEB",
      "url": "https://github.com/libarchive/libarchive/pull/2734/commits"
    },
    {
      "type": "WEB",
      "url": "https://github.com/libarchive/libarchive/pull/2734/files"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/64xxx/CVE-2025-64031.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-64031"
    },
    {
      "type": "FIX",
      "url": "https://github.com/libarchive/libarchive/pull/2734"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L",
      "type": "CVSS_V3"
    }
  ]
}