{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2017-7640 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2017-7640 yet. Limit exposure of the affected software until one is available.","what":"CVE-2017-7640 is a critical command injection vulnerability in QNAP Media Streaming Add-On, published on 8 Mar 2018. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2017-7640 and fix it if it is affected.\n\nWhat it is: CVE-2017-7640 is a critical command injection vulnerability in QNAP Media Streaming Add-On, published on 8 Mar 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2017-7640 in the wild and no public exploit code.\n\nAffected product: QNAP Media Streaming Add-On. 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-2017-7640/ (Markdown: https://insights.sbomify.com/CVE-2017-7640/index.md)","id":"CVE-2017-7640","markdown":"https://insights.sbomify.com/CVE-2017-7640/index.md","name":"CVE-2017-7640","record":{"aliases":["GHSA-7cpj-mvjh-6pqf"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"NAS media streaming add-on","requires_auth":"none","summary":"Remote attackers can execute arbitrary OS commands with root privileges on QNAP NAS devices via the Media Streaming add-on.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"qnap","cpe":[{"product":"media_streaming_add-on","vendor":"qnap"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","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-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"description":"QNAP NAS application Media Streaming add-on version 421.1.0.2, 430.1.2.0, and earlier allows remote attackers to run arbitrary OS commands against the system with root privileges.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":null,"headline":"Command injection in QNAP Media Streaming Add-On","id":"CVE-2017-7640","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"command_injection","year":"2017"},"n_packages":0,"n_references":1,"next":{"headline":"Cross-site request forgery in QNAP Media Streaming Add-On","id":"CVE-2017-7641"},"packages":[],"prev":{"headline":"Auth bypass in n/a","id":"CVE-2017-7639"},"products":["QNAP Media Streaming Add-On"],"published":"2018-03-08","related":[{"cvss_score":9.8,"headline":"SQL Injection Vulnerability in Multimedia Console and the Media Streaming Add-On","id":"CVE-2020-36195","kev_date_added":null,"published":"2021-04-17"},{"cvss_score":9.6,"headline":"Media Streaming add-on","id":"CVE-2023-47222","kev_date_added":null,"published":"2024-04-26"},{"cvss_score":9,"headline":"QTS, Multimedia Console, and Media Streaming add-on","id":"CVE-2023-23369","kev_date_added":null,"published":"2023-11-03"},{"cvss_score":8.8,"headline":"Cross-site request forgery in QNAP Media Streaming Add-On","id":"CVE-2017-7641","kev_date_added":null,"published":"2018-03-08"},{"cvss_score":8.7,"headline":"Command Injection Vulnerability in Media Streaming Add-on","id":"CVE-2021-34362","kev_date_added":null,"published":"2021-10-22"},{"cvss_score":6.9,"headline":"Media Streaming add-on","id":"CVE-2024-50395","kev_date_added":null,"published":"2024-11-22"}],"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)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-17","vendors":["QNAP"]},"summary":"Remote attackers can execute arbitrary OS commands with root privileges on QNAP NAS devices via the Media Streaming add-on.","url":"https://insights.sbomify.com/CVE-2017-7640/"}