{"id":"CVE-2025-31692","aliases":["CVE-2025-31692","GHSA-pwjq-fx3v-8f9r","DRUPAL-CONTRIB-2025-021"],"related":[],"kind":"vulnerability","state":"published","title":"AI (Artificial Intelligence) - Critical - Remote Code Execution - SA-CONTRIB-2025-021","summary":"Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') vulnerability in Drupal AI (Artificial Intelligence) allows OS Command Injection.This issue affects AI (Artificial Intelligence): from 0.0.0 before 1.0.5.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') vulnerability in Drupal AI (Artificial Intelligence) allows OS Command Injection.This issue affects AI (Artificial Intelligence): from 0.0.0 before 1.0.5.","source":"cvelist"},{"lang":"en","text":"Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') vulnerability in Drupal AI (Artificial Intelligence) allows OS Command Injection. This issue affects AI (Artificial Intelligence): from 0.0.0 before 1.0.5.","format":"markdown","source":"ghsa"},{"lang":"en","text":"The AI Automators module (a submodule of AI) enables you to create different automated tasks that fills out field data using LLM outputs.\n\nThe module doesn't sufficiently sanitize input before passing it to the underlying shell as part of a command for execution, allowing an attacker to run arbitrary commands.\n\nThe vulnerability exists in optional Automator Types which are part of the optional AI Automators (sub)module.\n\nThe AI module is included in Drupal CMS.","format":"markdown","source":"drupal"},{"lang":"es","text":"Vulnerabilidad de neutralización incorrecta de elementos especiales utilizados en un comando del sistema operativo ('Inyección de comando del sistema operativo') en Drupal AI (Artificial Intelligence) permite la inyección de comandos del sistema operativo. Este problema afecta a AI (Inteligencia Artificial): desde 0.0.0 antes de 1.0.5.","source":"nvd"}],"published":"2025-03-05T17:18:25.000Z","modified":"2026-09-10T03:45:05.773Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:U","rating":"MEDIUM"}],"cwes":["CWE-78"],"affected":[{"ranges":[{"type":"semver","introduced":"0.0.0","fixed":"1.0.5","status":"affected"}],"vendor":"Drupal","product":"AI (Artificial Intelligence)","repo":"https://git.drupalcode.org/project/ai","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.0.5"}],"ecosystem":"Packagist","package":"drupal/ai","purl":"pkg:composer/drupal/ai","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.0.5"}],"ecosystem":"Packagist:https://packages.drupal.org/8","package":"drupal/ai","purl":"pkg:composer/drupal/ai?repository_url=https:%2F%2Fpackages.drupal.org%2F8","source":"drupal"},{"ranges":[{"status":"affected","fixed":"1.0.5"}],"vendor":"artificial_intelligence_project","product":"artificial_intelligence","cpe":"cpe:2.3:a:artificial_intelligence_project:artificial_intelligence:*:*:*:*:*:drupal:*:*","source":"nvd"}],"references":[{"url":"https://www.drupal.org/sa-contrib-2025-021","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","drupal","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-31692","tags":["advisory"],"sources":["ghsa"]},{"url":"https://git.drupalcode.org/project/ai","tags":["package"],"sources":["ghsa"]}],"credits":["Drew Webber (mcdruid)","Marcus Johansson (marcus_johansson)","Michal Gow (seogow)"],"assigner":"drupal","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-04-03T17:21:48.256Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-31692","url":"https://www.cve.org/CVERecord?id=CVE-2025-31692","licence":"CVE Terms of Use","modified":"2025-04-03T17:23:24.605Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-pwjq-fx3v-8f9r","url":"https://github.com/advisories/GHSA-pwjq-fx3v-8f9r","licence":"CC-BY-4.0","modified":"2025-12-10T23:41:11.732Z"},{"source":"drupal","name":"Drupal Security Team","id":"DRUPAL-CONTRIB-2025-021","url":"https://osv.dev/vulnerability/DRUPAL-CONTRIB-2025-021","licence":"MIT","modified":"2026-09-10T03:45:05.773Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-31692","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-31692","licence":"Public domain","modified":"2026-07-16T15:21:36.193Z"}],"updatedAt":"2026-11-25T22:58:55.756Z","epss":{"score":0.00774,"percentile":0.56954,"date":"2026-12-01T12:00:22.000Z"}}