{"answers":{"affected":"3 open source packages ship an affected version, including xmpp-http-upload. It affects 1 product.","exploited":"There is no known exploitation of CVE-2020-15239 in the wild and no public exploit code.","fix":"Upgrade xmpp-http-upload to 0.4.0 or later.","what":"CVE-2020-15239 is a low-severity path traversal vulnerability in horazont xmpp-http-upload, published on 6 Oct 2020. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2020-15239 and fix it if it is affected.\n\nWhat it is: CVE-2020-15239 is a low-severity path traversal vulnerability in horazont xmpp-http-upload, published on 6 Oct 2020. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2020-15239 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- xmpp-http-upload (PyPI): affected all versions; fixed in 0.4.0\n- xmpp-http-upload (PyPI): affected all versions; fixed in 0.4.0\n- xmpp-http-upload (PyPI): affected all versions; fixed in 0.4.0\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-2020-15239/ (Markdown: https://insights.sbomify.com/CVE-2020-15239/index.md)","id":"CVE-2020-15239","markdown":"https://insights.sbomify.com/CVE-2020-15239/index.md","name":"CVE-2020-15239","record":{"aliases":["GHSA-hwv5-w8gm-fq9f","PYSEC-2020-158"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Python XMPP upload library","requires_auth":"low_privilege","summary":"Attackers can read arbitrary files with specific suffixes and bypass authentication or quotas in shared hosting environments via directory traversal.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"xmpp-http-upload","vendor":"xmpp-http-upload_project"}],"cvss":{"score":3.5,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"In xmpp-http-upload before version 0.4.0, when the GET method is attacked, attackers can read files which have a `.data` suffix and which are accompanied by a JSON file with the `.meta` suffix. This can lead to Information Disclosure and in some shared-hosting scenarios also to circumvention of authentication or other limitations on the outbound (GET) traffic. For example, in a scenario where a single server has multiple instances of the application running (with separate DATA_ROOT settings), an attacker who has knowledge about the directory structure is able to read files from any other instance to which the process has read access. If instances have individual authentication (for example, HTTP authentication via a reverse proxy, source IP based filtering) or other restrictions (such as quotas), attackers may circumvent those limits in such a scenario by using the Directory Traversal to retrieve data from the other instances. If the associated XMPP server (or anyone knowing the SECRET_KEY) is malicious, they can write files outside the DATA_ROOT. The files which are written are constrained to have the `.meta` and the `.data` suffixes; the `.meta` file will contain the JSON with the Content-Type of the original request and the `.data` file will contain the payload. The issue is patched in version 0.4.0.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Directory Traversal in xmpp-http-upload","id":"CVE-2020-15239","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2020"},"n_packages":3,"n_references":4,"next":{"headline":"Regression in JWT Signature Validation","id":"CVE-2020-15240"},"packages":[{"ecosystem":"PyPI","fixed":["0.4.0"],"introduced":["0"],"last_affected":[],"package":"xmpp-http-upload","purl":null,"source":"GHSA-hwv5-w8gm-fq9f"},{"ecosystem":"PyPI","fixed":["0.4.0"],"introduced":["0"],"last_affected":[],"package":"xmpp-http-upload","purl":"pkg:pypi/xmpp-http-upload","source":"GHSA-hwv5-w8gm-fq9f"},{"ecosystem":"PyPI","fixed":["0.4.0"],"introduced":["0"],"last_affected":[],"package":"xmpp-http-upload","purl":"pkg:pypi/xmpp-http-upload","source":"PYSEC-2020-158"}],"prev":{"headline":"Local privilege escalation Blueman","id":"CVE-2020-15238"},"products":["xmpp-http-upload"],"published":"2020-10-06","related":[],"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)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["horazont"]},"summary":"Attackers can read arbitrary files with specific suffixes and bypass authentication or quotas in shared hosting environments via directory traversal.","url":"https://insights.sbomify.com/CVE-2020-15239/"}