{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2016-7998 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2016-7998 is a high-severity code injection vulnerability in Spip Spip, published on 18 Jan 2017. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2016-7998 and fix it if it is affected.\n\nWhat it is: CVE-2016-7998 is a high-severity code injection vulnerability in Spip Spip, published on 18 Jan 2017. 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-2016-7998 exists.\n\nAffected product: Spip Spip. 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-2016-7998/ (Markdown: https://insights.sbomify.com/CVE-2016-7998/index.md)","id":"CVE-2016-7998","markdown":"https://insights.sbomify.com/CVE-2016-7998/index.md","name":"CVE-2016-7998","record":{"aliases":["DEBIAN-CVE-2016-7998","GHSA-q539-39f7-xr44","UBUNTU-CVE-2016-7998"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"SPIP CMS","requires_auth":"low_privilege","summary":"Authenticated attackers can execute arbitrary PHP code in SPIP by uploading a crafted HTML file and triggering a specific action.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"spip","vendor":"spip"}],"cvss":{"score":8.8,"severity":"high","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"description":"The SPIP template composer/compiler in SPIP 3.1.2 and earlier allows remote authenticated users to execute arbitrary PHP code by uploading an HTML file with a crafted (1) INCLUDE or (2) INCLURE tag and then accessing it with a valider_xml action.","ecosystems":[],"exploits":{"exploitdb":1,"first_seen":"2016-10-20","github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[{"date":"2016-10-20","kind":"exploitdb","ref":"40595","stars":null,"title":"SPIP 3.1.2 Template Compiler/Composer - PHP Code Execution"}],"tier":"weaponised"},"has_fix":true,"headline":"Code injection in n/a","id":"CVE-2016-7998","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"spip:spip","products":["spip:spip"],"type":"code_injection","year":"2016"},"n_packages":0,"n_references":8,"next":{"headline":"Server-side request forgery in n/a","id":"CVE-2016-7999"},"packages":[],"prev":{"headline":"Null dereference in n/a","id":"CVE-2016-7997"},"products":["n/a"],"published":"2017-01-18","related":[{"cvss_score":10,"headline":"Other in n/a","id":"CVE-2012-4331","kev_date_added":null,"published":"2012-08-14"},{"cvss_score":10,"headline":"Other in n/a","id":"CVE-2008-5812","kev_date_added":null,"published":"2009-01-02"},{"cvss_score":9.8,"headline":"SPIP Bigup Multipart File Upload OS Command Injection","id":"CVE-2024-8517","kev_date_added":null,"published":"2024-09-06"},{"cvss_score":9.8,"headline":"SQL injection in n/a","id":"CVE-2023-24258","kev_date_added":null,"published":"2023-02-27"},{"cvss_score":9.8,"headline":"Command injection in n/a","id":"CVE-2017-9736","kev_date_added":null,"published":"2017-06-17"},{"cvss_score":9.8,"headline":"Deserialization in n/a","id":"CVE-2016-3154","kev_date_added":null,"published":"2016-04-08"},{"cvss_score":9.2,"headline":"SPIP \u003c 4.4.9 Insecure Deserialization","id":"CVE-2026-27475","kev_date_added":null,"published":"2026-02-19"}],"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":"GPL-2.0-or-later","name":"Exploit-DB"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-06","vendors":["n/a"]},"summary":"Authenticated attackers can execute arbitrary PHP code in SPIP by uploading a crafted HTML file and triggering a specific action.","url":"https://insights.sbomify.com/CVE-2016-7998/"}