{"answers":{"affected":"3 open source packages ship an affected version, including pyinstaller and PyInstaller. It affects 1 product.","exploited":"There is no known exploitation of CVE-2019-16784 in the wild and no public exploit code.","fix":"Upgrade pyinstaller to 3.6 or later.","what":"CVE-2019-16784 is a high-severity vulnerability in PyInstaller, published on 14 Jan 2020. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2019-16784 and fix it if it is affected.\n\nWhat it is: CVE-2019-16784 is a high-severity vulnerability in PyInstaller, published on 14 Jan 2020. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2019-16784 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- pyinstaller (PyPI): affected all versions; fixed in 3.6\n- pyinstaller (PyPI): affected all versions; fixed in 3.6\n- PyInstaller (PyPI): affected all versions; fixed in 3.6\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2019-16784/ (Markdown: https://insights.sbomify.com/CVE-2019-16784/index.md)","id":"CVE-2019-16784","markdown":"https://insights.sbomify.com/CVE-2019-16784/index.md","name":"CVE-2019-16784","record":{"aliases":["GHSA-7fcj-pq9j-wh2r","PYSEC-2020-175"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"PyInstaller packaging tool","requires_auth":"low_privilege","summary":"Local attackers can escalate privileges on Windows if PyInstaller onefile apps run as privileged users with world-writable temp directories.","user_interaction":"not_required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"pyinstaller","vendor":"pyinstaller"}],"cvss":{"score":7,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-732","name":"Incorrect Permission Assignment for Critical Resource"},{"id":"CWE-250","name":"Execution with Unnecessary Privileges"}],"description":"In PyInstaller before version 3.6, only on Windows, a local privilege escalation vulnerability is present in this particular case: If a software using PyInstaller in \"onefile\" mode is launched by a privileged user (at least more than the current one) which have his \"TempPath\" resolving to a world writable directory. This is the case for example if the software is launched as a service or as a scheduled task using a system account (TempPath will be C:\\Windows\\Temp). In order to be exploitable the software has to be (re)started after the attacker launch the exploit program, so for a service launched at startup, a service restart is needed (e.g. after a crash or an upgrade).","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":"2020-01-22","github_poc":2,"max_poc_stars":1,"metasploit":0,"nuclei":0,"refs":[{"date":"2020-01-22T13:23:45Z","kind":"github_poc","ref":"https://github.com/AlterSolutions/PyInstallerPrivEsc","stars":1,"title":"Exploit for PyInstaller CVE-2019-16784"},{"date":"2023-12-24T14:53:28Z","kind":"github_poc","ref":"https://github.com/Ckrielle/CVE-2019-16784-POC","stars":0,"title":"A Proof of Concept exploit for the PyInstaller CVE-2019-16783"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Local Privilege Escalation present only on the Windows version of PyInstaller","id":"CVE-2019-16784","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"privilege_escalation","year":"2019"},"n_packages":3,"n_references":1,"next":{"headline":"HTTP Request Smuggling: LF vs CRLF handling in Waitress","id":"CVE-2019-16785"},"packages":[{"ecosystem":"PyPI","fixed":["3.6"],"introduced":["0"],"last_affected":[],"package":"PyInstaller","purl":null,"source":"GHSA-7fcj-pq9j-wh2r"},{"ecosystem":"PyPI","fixed":["3.6"],"introduced":["0"],"last_affected":[],"package":"pyinstaller","purl":"pkg:pypi/pyinstaller","source":"GHSA-7fcj-pq9j-wh2r"},{"ecosystem":"PyPI","fixed":["3.6"],"introduced":["0"],"last_affected":[],"package":"pyinstaller","purl":"pkg:pypi/pyinstaller","source":"PYSEC-2020-175"}],"prev":{"headline":"Possible Information Leak / Session Hijack Vulnerability in Rack","id":"CVE-2019-16782"},"products":["PyInstaller"],"published":"2020-01-14","related":[{"cvss_score":8.8,"headline":"Local Privilege Escalation in pyinstaller on Windows","id":"CVE-2023-49797","kev_date_added":null,"published":"2023-12-09"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["PyInstaller"]},"summary":"Local attackers can escalate privileges on Windows if PyInstaller onefile apps run as privileged users with world-writable temp directories.","url":"https://insights.sbomify.com/CVE-2019-16784/"}