{"answers":{"affected":"3 open source packages ship an affected version, including pyload-ng. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-0297 exists.","fix":"Upgrade pyload-ng to 0.5.0b3.dev31 or later.","what":"CVE-2023-0297 is a critical code injection vulnerability in pyload/pyload, published on 14 Jan 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-0297 and fix it if it is affected.\n\nWhat it is: CVE-2023-0297 is a critical code injection vulnerability in pyload/pyload, published on 14 Jan 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-0297 exists.\n\nAffected packages and fixed versions:\n- pyload-ng (PyPI): affected all versions; fixed in 0.5.0b3.dev31\n- pyload-ng (PyPI): affected all versions; fixed in 0.5.0b3.dev31\n- pyload-ng (PyPI): affected all versions; fixed in 0.5.0b3.dev31\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-2023-0297/ (Markdown: https://insights.sbomify.com/CVE-2023-0297/index.md)","id":"CVE-2023-0297","markdown":"https://insights.sbomify.com/CVE-2023-0297/index.md","name":"CVE-2023-0297","record":{"aliases":["GHSA-pf38-5p22-x6h6","PYSEC-2026-498"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"pyload download manager","requires_auth":"none","summary":"Attackers can execute arbitrary code in pyload download manager via code injection vulnerability.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"@huntrdev","cpe":[{"product":"pyload","vendor":"pyload"}],"cvss":{"score":9.8,"severity":"critical","source":"cna","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"Code Injection in GitHub repository pyload/pyload prior to 0.5.0b3.dev31.","ecosystems":["PyPI"],"exploits":{"exploitdb":1,"first_seen":"2023-01-09","github_poc":7,"max_poc_stars":27,"metasploit":1,"nuclei":1,"refs":[{"date":"2023-01-09T11:44:09Z","kind":"github_poc","ref":"https://github.com/bAuh0lz/CVE-2023-0297_Pre-auth_RCE_in_pyLoad","stars":27,"title":"CVE-2023-0297: The Story of Finding Pre-auth RCE in pyLoad"},{"date":"2023-02-15T06:28:40Z","kind":"github_poc","ref":"https://github.com/Small-ears/CVE-2023-0297","stars":2,"title":"poc"},{"date":"2023-06-15T14:28:05Z","kind":"github_poc","ref":"https://github.com/overgrowncarrot1/CVE-2023-0297","stars":1,"title":null},{"date":"2023-01-13","kind":"metasploit","ref":"exploit/linux/http/pyload_js2py_exec","stars":null,"title":"pyLoad js2py Python Execution"},{"date":"2023-05-21T23:42:46Z","kind":"github_poc","ref":"https://github.com/hazeyez/CVE-2023-0297","stars":0,"title":"RCE Unauth in PyLoad \u003c0.5.0b3.dev31"},{"date":"2023-06-14","kind":"exploitdb","ref":"51532","stars":null,"title":"PyLoad 0.5.0 - Pre-auth Remote Code Execution (RCE)"},{"date":"2024-09-15T17:15:33Z","kind":"github_poc","ref":"https://github.com/btar1gan/exploit_CVE-2023-0297","stars":0,"title":"New exploit for pyLoad v0.5.0 - Unauthenticated remote code excecution"},{"date":"2024-10-04T12:03:54Z","kind":"github_poc","ref":"https://github.com/S4MY9/CVE-2023-0297","stars":0,"title":"RCE in pyload prior to 0.5.0b3.dev31."}],"tier":"weaponised"},"has_fix":true,"headline":"Code Injection in pyload/pyload","id":"CVE-2023-0297","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"code_injection","year":"2023"},"n_packages":3,"n_references":4,"next":{"headline":"Incorrect Authorization in firefly-iii/firefly-iii","id":"CVE-2023-0298"},"packages":[{"ecosystem":"PyPI","fixed":["0.5.0b3.dev31"],"introduced":["0"],"last_affected":[],"package":"pyload-ng","purl":null,"source":"GHSA-pf38-5p22-x6h6"},{"ecosystem":"PyPI","fixed":["0.5.0b3.dev31"],"introduced":["0"],"last_affected":[],"package":"pyload-ng","purl":"pkg:pypi/pyload-ng","source":"GHSA-pf38-5p22-x6h6"},{"ecosystem":"PyPI","fixed":["0.5.0b3.dev31"],"introduced":["0"],"last_affected":[],"package":"pyload-ng","purl":"pkg:pypi/pyload-ng","source":"PYSEC-2026-498"}],"prev":{"headline":"Weak cryptography in Red Hat OpenShift","id":"CVE-2023-0296"},"products":["pyload/pyload"],"published":"2023-01-14","related":[{"cvss_score":9.3,"headline":"pyLoad: Server-Side Request Forgery via Download Link Submission Enables Cloud Metadata Exfiltration","id":"CVE-2026-33992","kev_date_added":null,"published":"2026-03-27"},{"cvss_score":9.1,"headline":"pyLoad vulnerable to remote code execution by download to /.pyload/scripts using /flashgot API","id":"CVE-2024-47821","kev_date_added":null,"published":"2024-10-25"},{"cvss_score":9.1,"headline":"pyLoad allows upload to arbitrary folder lead to RCE","id":"CVE-2024-32880","kev_date_added":null,"published":"2024-04-26"},{"cvss_score":8.8,"headline":"pyLoad has Stale Session Privilege After Role/Permission Change (Privilege Revocation Bypass)","id":"CVE-2026-41133","kev_date_added":null,"published":"2026-04-21"},{"cvss_score":8.8,"headline":"Download to arbitrary folder can lead to RCE","id":"CVE-2023-47890","kev_date_added":null,"published":"2024-01-08"},{"cvss_score":8.3,"headline":"Insufficient Session Expiration in pyload/pyload","id":"CVE-2023-0227","kev_date_added":null,"published":"2023-01-12"}],"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":"attribution","licence":"BSD-3-Clause","name":"Metasploit"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-04-07","vendors":["pyload"]},"summary":"Attackers can execute arbitrary code in pyload download manager via code injection vulnerability.","url":"https://insights.sbomify.com/CVE-2023-0297/"}