{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "3.6.20"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "feb362e7af52c03063755dbbce82ff53ff4bafbf"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "v3.6.20",
                "range": [
                  {
                    "fixed": "6d42869a800fe0f352ff76411ffad0484abe43d1"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "6d42869a800fe0f352ff76411ffad0484abe43d1"
            },
            {
              "fixed": "feb362e7af52c03063755dbbce82ff53ff4bafbf"
            }
          ],
          "repo": "https://github.com/dvershinin/lastversion",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-59"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/137xxx/CVE-2026-137539.json"
  },
  "details": "lastversion before 3.6.20 contains a path traversal vulnerability in extract_tar() that allows attackers to write files outside the extraction directory via tar symlink members. Attackers controlling a project's release assets can craft a tarball with a symlink followed by a file beneath it, writing files like usercustomize.py to achieve code execution.",
  "id": "CVE-2026-137539",
  "modified": "2026-11-26T22:45:41.155247622Z",
  "published": "2026-11-26T20:02:31.981Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/137xxx/CVE-2026-137539.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/dvershinin/lastversion"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/dvershinin/lastversion/blob/17e18ae09ad3038bc4a09e5026405d614eacd7b7/src/lastversion/utils.py#L348-L391"
    },
    {
      "type": "FIX",
      "url": "https://github.com/dvershinin/lastversion/commit/feb362e7af52c03063755dbbce82ff53ff4bafbf"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/dvershinin/lastversion/issues/246"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/dvershinin/lastversion/releases/tag/v3.6.20"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-137539"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/lastversion-before-3.6.20-arbitrary-file-write-via-tar-symlink-members"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "lastversion before 3.6.20 Arbitrary File Write via Tar Symlink Members"
}