{"answers":{"affected":"13 open source packages ship an affected version, including drupal/core and drupal/drupal. It affects 2 products.","exploited":"Yes. Attackers have exploited CVE-2018-7602 in the wild since at least 13 Apr 2022, including in ransomware campaigns.","fix":"Upgrade drupal/core to a fixed version for your release line: 7.59, 8.4.8 or 8.5.3. US federal agencies must fix it by 4 May 2022.","what":"CVE-2018-7602 is a high-severity code injection vulnerability in Debian Debian Linux, published on 19 Jul 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-2018-7602 and fix it if it is affected.\n\nWhat it is: CVE-2018-7602 is a high-severity code injection vulnerability in Debian Debian Linux, published on 19 Jul 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: Yes. Attackers have exploited CVE-2018-7602 in the wild since at least 13 Apr 2022, including in ransomware campaigns.\n\nAffected packages and fixed versions:\n- drupal/core (Packagist): affected from 7.0; fixed in 7.59\n- drupal/core (Packagist): affected from 7.0; fixed in 7.59\n- drupal/core (Packagist): affected from 8.0; fixed in 8.4.8\n- drupal/core (Packagist): affected from 8.0; fixed in 8.4.8\n- drupal/core (Packagist): affected from 8.0.0; fixed in 8.4.8, 8.5.3\n- drupal/core (Packagist): affected from 8.5; fixed in 8.5.3\n- drupal/core (Packagist): affected from 8.5; fixed in 8.5.3\n- drupal/drupal (Packagist): affected from 7.0; fixed in 7.59\n- drupal/drupal (Packagist): affected from 7.0; fixed in 7.59\n- drupal/drupal (Packagist): affected from 8.0; fixed in 8.4.8\n- drupal/drupal (Packagist): affected from 8.0; fixed in 8.4.8\n- drupal/drupal (Packagist): affected from 8.5; fixed in 8.5.3\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-2018-7602/ (Markdown: https://insights.sbomify.com/CVE-2018-7602/index.md)","id":"CVE-2018-7602","markdown":"https://insights.sbomify.com/CVE-2018-7602/index.md","name":"CVE-2018-7602","record":{"aliases":["CLEANSTART-2024-FK19349","DLA-1365-1","DRUPAL-CORE-2018-004","DSA-4180-1","GHSA-297x-j9pm-xjgg","UBUNTU-CVE-2018-7602"],"analysis":{"component_type":"web_application","fix_type":"patch","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Drupal core","requires_auth":"none","summary":"Attackers can execute arbitrary code remotely on Drupal sites via multiple subsystems, leading to full site compromise.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"drupal","cpe":[{"product":"debian_linux","vendor":"debian"},{"product":"drupal","vendor":"drupal"}],"cvss":{"score":8.1,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"A remote code execution vulnerability exists within multiple subsystems of Drupal 7.x and 8.x. This potentially allows attackers to exploit multiple attack vectors on a Drupal site, which could result in the site being compromised. This vulnerability is related to Drupal core - Highly critical - Remote Code Execution - SA-CORE-2018-002. Both SA-CORE-2018-002 and this vulnerability are being exploited in the wild.","ecosystems":["Packagist"],"exploits":{"exploitdb":3,"first_seen":"2018-04-25","github_poc":5,"max_poc_stars":6,"metasploit":0,"nuclei":1,"refs":[{"date":"2018-04-27T01:59:31Z","kind":"github_poc","ref":"https://github.com/1337g/Drupalgedon3","stars":6,"title":"POC to test/exploit drupal vulnerability SA-CORE-2018-004 / CVE-2018-7602"},{"date":"2018-10-29T12:08:53Z","kind":"github_poc","ref":"https://github.com/kastellanos/CVE-2018-7602","stars":1,"title":null},{"date":"2020-06-25T12:06:07Z","kind":"github_poc","ref":"https://github.com/cyberharsh/DrupalCVE-2018-7602","stars":1,"title":null},{"date":"2018-04-25","kind":"exploitdb","ref":"44542","stars":null,"title":"Drupal \u003c 7.58 - 'Drupalgeddon3' (Authenticated) Remote Code Execution (PoC)"},{"date":"2018-04-30","kind":"exploitdb","ref":"44557","stars":null,"title":"Drupal \u003c 7.58 - 'Drupalgeddon3' (Authenticated) Remote Code (Metasploit)"},{"date":"2018-04-30","kind":"exploitdb","ref":"44557","stars":null,"title":"Drupal \u003c 7.58 - 'Drupalgeddon3' (Authenticated) Remote Code (Metasploit)"},{"date":"2018-07-12T05:08:14Z","kind":"github_poc","ref":"https://github.com/happynote3966/CVE-2018-7602","stars":0,"title":null},{"date":"2024-02-18T08:51:09Z","kind":"github_poc","ref":"https://github.com/132231g/CVE-2018-7602","stars":0,"title":null}],"tier":"exploited"},"has_fix":true,"headline":"Drupal Core Remote Code Execution","id":"CVE-2018-7602","indexable":true,"kev":{"dateAdded":"2022-04-13","dueDate":"2022-05-04","knownRansomwareCampaignUse":"Known","product":"Core","requiredAction":"Apply updates per vendor instructions.","vendorProject":"Drupal","vulnerabilityName":"Drupal Core Remote Code Execution Vulnerability"},"kind":"cve","links":{"ecosystem":"Packagist","product":"debian:debian_linux","products":["debian:debian_linux","drupal:drupal"],"type":"code_injection","year":"2018"},"n_packages":13,"n_references":7,"next":{"headline":"Search Autocomplete","id":"CVE-2018-7603"},"packages":[{"ecosystem":"Packagist","fixed":["7.59"],"introduced":["7.0"],"last_affected":[],"package":"drupal/core","purl":null,"source":"GHSA-297x-j9pm-xjgg"},{"ecosystem":"Packagist","fixed":["7.59"],"introduced":["7.0"],"last_affected":[],"package":"drupal/core","purl":"pkg:composer/drupal/core","source":"GHSA-297x-j9pm-xjgg"},{"ecosystem":"Packagist","fixed":["8.4.8"],"introduced":["8.0"],"last_affected":[],"package":"drupal/core","purl":null,"source":"GHSA-297x-j9pm-xjgg"},{"ecosystem":"Packagist","fixed":["8.4.8"],"introduced":["8.0"],"last_affected":[],"package":"drupal/core","purl":"pkg:composer/drupal/core","source":"GHSA-297x-j9pm-xjgg"},{"ecosystem":"Packagist","fixed":["8.4.8","8.5.3"],"introduced":["8.0.0","8.5.0"],"last_affected":[],"package":"drupal/core","purl":"pkg:composer/drupal/core","source":"DRUPAL-CORE-2018-004"},{"ecosystem":"Packagist","fixed":["8.5.3"],"introduced":["8.5"],"last_affected":[],"package":"drupal/core","purl":null,"source":"GHSA-297x-j9pm-xjgg"},{"ecosystem":"Packagist","fixed":["8.5.3"],"introduced":["8.5"],"last_affected":[],"package":"drupal/core","purl":"pkg:composer/drupal/core","source":"GHSA-297x-j9pm-xjgg"},{"ecosystem":"Packagist","fixed":["7.59"],"introduced":["7.0"],"last_affected":[],"package":"drupal/drupal","purl":null,"source":"GHSA-297x-j9pm-xjgg"},{"ecosystem":"Packagist","fixed":["7.59"],"introduced":["7.0"],"last_affected":[],"package":"drupal/drupal","purl":"pkg:composer/drupal/drupal","source":"GHSA-297x-j9pm-xjgg"},{"ecosystem":"Packagist","fixed":["8.4.8"],"introduced":["8.0"],"last_affected":[],"package":"drupal/drupal","purl":null,"source":"GHSA-297x-j9pm-xjgg"},{"ecosystem":"Packagist","fixed":["8.4.8"],"introduced":["8.0"],"last_affected":[],"package":"drupal/drupal","purl":"pkg:composer/drupal/drupal","source":"GHSA-297x-j9pm-xjgg"},{"ecosystem":"Packagist","fixed":["8.5.3"],"introduced":["8.5"],"last_affected":[],"package":"drupal/drupal","purl":null,"source":"GHSA-297x-j9pm-xjgg"},{"ecosystem":"Packagist","fixed":["8.5.3"],"introduced":["8.5"],"last_affected":[],"package":"drupal/drupal","purl":"pkg:composer/drupal/drupal","source":"GHSA-297x-j9pm-xjgg"}],"prev":{"headline":"Drupal Core Remote Code Execution","id":"CVE-2018-7600"},"products":["core"],"published":"2018-07-19","related":[{"cvss_score":10,"headline":"ProFTPD Improper Access Control","id":"CVE-2015-3306","kev_date_added":"2026-10-08","published":"2015-05-18"},{"cvss_score":9.9,"headline":"RoundCube Webmail Deserialization of Untrusted Data","id":"CVE-2025-49113","kev_date_added":"2026-02-20","published":"2025-06-02"},{"cvss_score":9.8,"headline":"GNU InetUtils Argument Injection","id":"CVE-2026-24061","kev_date_added":"2026-01-26","published":"2026-01-21"},{"cvss_score":9.8,"headline":"Linux Kernel Improper Check for Unusual or Exceptional Conditions","id":"CVE-2025-39682","kev_date_added":"2026-09-18","published":"2025-09-05"},{"cvss_score":9.8,"headline":"Mozilla Firefox Use-After-Free","id":"CVE-2024-9680","kev_date_added":"2024-10-15","published":"2024-10-09"},{"cvss_score":9.8,"headline":"RARLAB UnRAR Directory Traversal","id":"CVE-2022-30333","kev_date_added":"2022-08-09","published":"2022-05-09"},{"cvss_score":9.8,"headline":"Roundcube Webmail SQL Injection","id":"CVE-2021-44026","kev_date_added":"2023-06-22","published":"2021-11-19"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"MIT","name":"Drupal","prefix":"DRUPAL"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"open","licence":"CC0 1.0","name":"CISA KEV"},{"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"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"active","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-10-01","vendors":["Drupal"]},"summary":"Attackers can execute arbitrary code remotely on Drupal sites via multiple subsystems, leading to full site compromise.","url":"https://insights.sbomify.com/CVE-2018-7602/"}