{"id":"CVE-2020-15239","aliases":["GHSA-hwv5-w8gm-fq9f","PYSEC-2020-158"],"title":"Directory Traversal vulnerability in GET/PUT allows attackers to Disclose Information or Write Files via a crafted GET/PUT request","summary":"Directory Traversal vulnerability in GET/PUT allows attackers to Disclose Information or Write Files via a crafted GET/PUT request","severity":"low","cvss":3.5,"cvssVector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:N","vendor":"xmpp-http-upload","product":"xmpp-http-upload","ecosystem":"pip","affected":["xmpp-http-upload < 0.4.0"],"patched":["xmpp-http-upload 0.4.0"],"published":"2020-10-06","updated":"2026-09-10","sourceUpdated":"2026-09-10T03:48:59.588404244Z","source":"OSV","sourceUrl":"https://osv.dev/vulnerability/GHSA-hwv5-w8gm-fq9f","references":[{"url":"https://github.com/horazont/xmpp-http-upload/security/advisories/GHSA-hwv5-w8gm-fq9f"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-15239"},{"url":"https://github.com/horazont/xmpp-http-upload/pull/12"},{"url":"https://github.com/horazont/xmpp-http-upload/commit/82056540191e89f0cd697c81f57714c00962ed75"},{"url":"https://github.com/horazont/xmpp-http-upload"},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/xmpp-http-upload/PYSEC-2020-158.yaml"},{"url":"https://pypi.org/project/xmpp-http-upload/#history"}],"tags":["osv","pip"],"epss":0.01873,"epssPercentile":0.7845,"ingestedAt":"2026-09-12T03:13:01.703Z","slug":"CVE-2020-15239","body":"## Overview\n\n### Impact\n\n#### Information Disclosure\n\nWhen 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.\n\nFor 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.\n\nIf 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.\n\n#### File Write\n\nIf 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.\n\n### Patches\n\nPR #12 fixes the issue. The PR has been merged into version 0.4.0 and 0.4.0 has been released and pushed to PyPI. Users are advised to upgrade immediately.\n\n### Workarounds\n\n- Apache can apparently be configured to filter such malicious paths when reverse-proxying. \n- There are no other workarounds known.\n\n### References\n\n- [Pull Request #12](https://github.com/horazont/xmpp-http-upload/pull/12)\n\n## Affected packages\n\n- `xmpp-http-upload < 0.4.0`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `xmpp-http-upload 0.4.0`","depth":"sunlit","depthScore":20,"depthScoreParts":{"impact":19.3,"likelihood":0.4,"exploitation":0,"ransomware":0},"changes":[]}