Lucene search
+L

CVE-2025-4138

🗓️ 03 Jun 2025 12:59:02Reported by PSFType 
cve
 cve
🔗 web.nvd.nist.gov👁 630 Views🌐 WEB

CVE-2025-4138 allows symlink exploits and metadata modification in untrusted tarfile extracts.

Related
Affected
Refs
Paths
[
  {
    "defaultStatus": "unaffected",
    "modules": [
      "tarfile"
    ],
    "product": "CPython",
    "repo": "https://github.com/python/cpython",
    "vendor": "Python Software Foundation",
    "versions": [
      {
        "version": "0",
        "lessThan": "3.10.18",
        "status": "affected",
        "versionType": "python"
      },
      {
        "version": "3.11.0",
        "lessThan": "3.11.13",
        "status": "affected",
        "versionType": "python"
      },
      {
        "version": "3.12.0",
        "lessThan": "3.12.11",
        "status": "affected",
        "versionType": "python"
      },
      {
        "version": "3.13.0",
        "lessThan": "3.13.4",
        "status": "affected",
        "versionType": "python"
      },
      {
        "version": "3.14.0a1",
        "lessThan": "3.14.0b3",
        "status": "affected",
        "versionType": "python"
      }
    ]
  }
]
ParameterPositionPathDescriptionCWE
backup_pathpath/opt/backup_clients/restore_backup_clients.pyVulnerable tar extraction using filter with data/tar bypass (CVE-2025-4138/4517); allows symlink/hardlink traversal to escape extraction dir and write outside it.CWE-22
staging_dirpath/opt/backup_clients/restore_backup_clients.pyVulnerable tar extraction using filter with data/tar bypass (CVE-2025-4138/4517); allows symlink/hardlink traversal to escape extraction dir and write outside it.CWE-22
filterpath/opt/backup_clients/restore_backup_clients.pyVulnerable tar extraction using filter with data/tar bypass (CVE-2025-4138/4517); allows symlink/hardlink traversal to escape extraction dir and write outside it.CWE-22
pathpath/opt/backup_clients/restore_backup_clients.pyVulnerable tar extraction using filter with data/tar bypass (CVE-2025-4138/4517); allows symlink/hardlink traversal to escape extraction dir and write outside it.CWE-22
authorized_keyspath/root/.ssh/authorized_keysPoC demonstrates SSH key injection via tar extraction bypass, enabling root login if payload is written to /root/.ssh/authorized_keys by a vulnerable tar extraction flow (CVE-2025-4138/4517).CWE-22
payloadpath/root/.ssh/authorized_keysPoC demonstrates SSH key injection via tar extraction bypass, enabling root login if payload is written to /root/.ssh/authorized_keys by a vulnerable tar extraction flow (CVE-2025-4138/4517).CWE-22
tarfilepath/root/.ssh/authorized_keysPoC demonstrates SSH key injection via tar extraction bypass, enabling root login if payload is written to /root/.ssh/authorized_keys by a vulnerable tar extraction flow (CVE-2025-4138/4517).CWE-22
sudoerspath/etc/sudoers.d/pwnedPoC demonstrates privilege escalation by writing sudoers entries through a vulnerable tar extraction (CVE-2025-4138/4517).CWE-22
payloadpath/etc/sudoers.d/pwnedPoC demonstrates privilege escalation by writing sudoers entries through a vulnerable tar extraction (CVE-2025-4138/4517).CWE-22
tarfilepath/etc/sudoers.d/pwnedPoC demonstrates privilege escalation by writing sudoers entries through a vulnerable tar extraction (CVE-2025-4138/4517).CWE-22
Rows per page

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

17 Jun 2026 09:32Current
8.1High risk
Vulners AI Score8.1
CVSS 3.17.5
EPSS0.01149
SSVC
630