{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-21402 exists.","fix":"No fix has been published for CVE-2021-21402 yet. Limit exposure of the affected software until one is available.","what":"CVE-2021-21402 is a high-severity path traversal vulnerability in jellyfin, published on 23 Mar 2021. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-21402 and fix it if it is affected.\n\nWhat it is: CVE-2021-21402 is a high-severity path traversal vulnerability in jellyfin, published on 23 Mar 2021. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-21402 exists.\n\nAffected product: jellyfin. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-2021-21402/ (Markdown: https://insights.sbomify.com/CVE-2021-21402/index.md)","id":"CVE-2021-21402","markdown":"https://insights.sbomify.com/CVE-2021-21402/index.md","name":"CVE-2021-21402","record":{"aliases":["GHSA-wg4c-c9g9-rxhx"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Jellyfin media server","requires_auth":"low_privilege","summary":"Unauthenticated attackers can read arbitrary files from the Jellyfin server filesystem via crafted requests, exposing sensitive data.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"jellyfin","vendor":"jellyfin"}],"cvss":{"score":7.7,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Jellyfin is a Free Software Media System. In Jellyfin before version 10.7.1, with certain endpoints, well crafted requests will allow arbitrary file read from a Jellyfin server's file system. This issue is more prevalent when Windows is used as the host OS. Servers that are exposed to the public Internet are potentially at risk. This is fixed in version 10.7.1. As a workaround, users may be able to restrict some access by enforcing strict security permissions on their filesystem, however, it is recommended to update as soon as possible.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2021-04-09","github_poc":3,"max_poc_stars":1,"metasploit":0,"nuclei":1,"refs":[{"date":"2021-04-09T08:54:55Z","kind":"github_poc","ref":"https://github.com/jiaocoll/CVE-2021-21402-Jellyfin","stars":1,"title":"CVE-2021-21402-Jellyfin-任意文件读取"},{"date":"2021-04-15T15:32:39Z","kind":"github_poc","ref":"https://github.com/somatrasss/CVE-2021-21402","stars":0,"title":"本项目涉及到的仅为安全研究和授权情况下使用，其使用人员有责任和义务遵守当地法律条规。"},{"date":"2021-04-16T05:20:20Z","kind":"github_poc","ref":"https://github.com/givemefivw/CVE-2021-21402","stars":0,"title":"CVE-2021-21402 Jellyfin任意文件读取 Wker脚本，可批量。"},{"date":null,"kind":"nuclei","ref":"http/cves/2021/CVE-2021-21402.yaml","stars":null,"title":"Jellyfin \u003c10.7.0 - Local File Inclusion"}],"tier":"weaponised"},"has_fix":false,"headline":"Unauthenticated Arbitrary File Access in Jellyfin","id":"CVE-2021-21402","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"path_traversal","year":"2021"},"n_packages":0,"n_references":3,"next":{"headline":"Authentication Bypass by Primary Weakness in github.com/kongchuanhujiao/server","id":"CVE-2021-21403"},"packages":[],"prev":{"headline":"Invalid free() call in Nanopb","id":"CVE-2021-21401"},"products":["jellyfin"],"published":"2021-03-23","related":[{"cvss_score":10,"headline":"Jellyfin: Potential RCE via subtitle upload path traversal + .strm chain","id":"CVE-2026-35031","kev_date_added":null,"published":"2026-04-14"},{"cvss_score":10,"headline":"Jellyfin Possible Organization/Secret Compromise from dangerous CI implementation","id":"CVE-2026-31852","kev_date_added":null,"published":"2026-03-11"},{"cvss_score":9.3,"headline":"Jellyfin: Potential SSRF + Arbitrary file read via stream argument injection","id":"CVE-2026-35033","kev_date_added":null,"published":"2026-04-14"},{"cvss_score":9.1,"headline":"jellyfin-web has a stored cross-site scripting vulnerability in devices.js","id":"CVE-2023-30627","kev_date_added":null,"published":"2023-04-24"},{"cvss_score":8.8,"headline":"Jellyfin vulnerable to directory traversal and file write causing arbitrary code execution","id":"CVE-2023-30626","kev_date_added":null,"published":"2023-04-24"},{"cvss_score":8.8,"headline":"Incorrect Access Control and Cross Site Scripting in Jellyfin","id":"CVE-2022-35909","kev_date_added":null,"published":"2022-08-19"},{"cvss_score":8.6,"headline":"Jellyfin: Potential SSRF + Arbitrary file read via LiveTV M3U tuner","id":"CVE-2026-35032","kev_date_added":null,"published":"2026-04-14"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["jellyfin"]},"summary":"Unauthenticated attackers can read arbitrary files from the Jellyfin server filesystem via crafted requests, exposing sensitive data.","url":"https://insights.sbomify.com/CVE-2021-21402/"}