{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2018-6222 exists.","fix":"No fix has been published for CVE-2018-6222 yet. Limit exposure of the affected software until one is available.","what":"CVE-2018-6222 is a high-severity command injection vulnerability in Trend Micro Email Encryption Gateway, published on 15 Mar 2018. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2018-6222 and fix it if it is affected.\n\nWhat it is: CVE-2018-6222 is a high-severity command injection vulnerability in Trend Micro Email Encryption Gateway, published on 15 Mar 2018. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2018-6222 exists.\n\nAffected product: Trend Micro Email Encryption Gateway. 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-2018-6222/ (Markdown: https://insights.sbomify.com/CVE-2018-6222/index.md)","id":"CVE-2018-6222","markdown":"https://insights.sbomify.com/CVE-2018-6222/index.md","name":"CVE-2018-6222","record":{"aliases":["GHSA-cmrj-247h-f4v8"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Email Encryption Gateway","requires_auth":"low_privilege","summary":"Attackers can manipulate log file locations to execute arbitrary commands on Trend Micro Email Encryption Gateway systems.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"trendmicro","cpe":[{"product":"email_encryption_gateway","vendor":"trendmicro"}],"cvss":{"score":7.8,"severity":"high","source":"nvd","vector":"CVSS:3.0/AV:L/AC:L/PR:L/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":"Arbitrary logs location in Trend Micro Email Encryption Gateway 5.5 could allow an attacker to change location of log files and be manipulated to execute arbitrary commands and attain command execution on a vulnerable system.","ecosystems":[],"exploits":{"exploitdb":1,"first_seen":"2018-02-22","github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[{"date":"2018-02-22","kind":"exploitdb","ref":"44166","stars":null,"title":"Trend Micro Email Encryption Gateway 5.5 (Build 1111.00) - Multiple Vulnerabilities"}],"tier":"weaponised"},"has_fix":null,"headline":"Command injection in Trend Micro Email Encryption Gateway","id":"CVE-2018-6222","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"command_injection","year":"2018"},"n_packages":0,"n_references":3,"next":{"headline":"Missing authorization in Trend Micro Email Encryption Gateway","id":"CVE-2018-6223"},"packages":[],"prev":{"headline":"Code injection in Trend Micro Email Encryption Gateway","id":"CVE-2018-6221"},"products":["Trend Micro Email Encryption Gateway"],"published":"2018-03-15","related":[{"cvss_score":9.8,"headline":"File upload in Trend Micro Email Encryption Gateway","id":"CVE-2018-6220","kev_date_added":null,"published":"2018-03-15"},{"cvss_score":9.8,"headline":"Missing authorization in Trend Micro Email Encryption Gateway","id":"CVE-2018-6223","kev_date_added":null,"published":"2018-03-15"},{"cvss_score":9.8,"headline":"SQL injection in Trend Micro Email Encryption Gateway","id":"CVE-2018-6228","kev_date_added":null,"published":"2018-03-15"},{"cvss_score":9.8,"headline":"SQL injection in Trend Micro Email Encryption Gateway","id":"CVE-2018-6229","kev_date_added":null,"published":"2018-03-15"},{"cvss_score":9.8,"headline":"SQL injection in n/a","id":"CVE-2016-4351","kev_date_added":null,"published":"2016-05-05"},{"cvss_score":8.8,"headline":"SQL injection in Trend Micro Email Encryption Gateway","id":"CVE-2018-10351","kev_date_added":null,"published":"2018-05-23"},{"cvss_score":8.8,"headline":"SQL injection in Trend Micro Email Encryption Gateway","id":"CVE-2018-10352","kev_date_added":null,"published":"2018-05-23"}],"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-05","vendors":["Trend Micro"]},"summary":"Attackers can manipulate log file locations to execute arbitrary commands on Trend Micro Email Encryption Gateway systems.","url":"https://insights.sbomify.com/CVE-2018-6222/"}