{"id":"CVE-2025-31692","aliases":["DRUPAL-CONTRIB-2025-021","EUVD-2025-9013","GHSA-pwjq-fx3v-8f9r"],"status":"published","title":"AI (Artificial Intelligence) - Critical - Remote Code Execution - SA-CONTRIB-2025-021","description":"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.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"adp","from":"cve"},"epss":{"day":"2026-11-11","score":0.00774,"percentile":0.56191,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-78"],"published":"2025-03-05T17:18:25Z","modified":"2026-10-28T02:30:37Z","fixes":[{"ecosystem":"Packagist","package":"drupal/ai","fixed_in":["1.0.5"],"sources":["ghsa","osv"]},{"ecosystem":"Packagist:https://packages.drupal.org/8","package":"drupal/ai","fixed_in":["1.0.5"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"drupal/ai","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.5"}]}]},{"source":"osv","ecosystem":"Packagist:https://packages.drupal.org/8","package":"drupal/ai","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.5"}]}]},{"source":"osv","ecosystem":"Packagist","package":"drupal/ai","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.5"}]}]}],"products":[{"vendor":"artificial_intelligence_project","product":"artificial_intelligence"},{"vendor":"drupal","product":"ai (artificial intelligence)"}],"references":[{"url":"https://www.drupal.org/sa-contrib-2025-021","tags":["Vendor Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-31692","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-pwjq-fx3v-8f9r"},{"url":"https://git.drupalcode.org/project/ai","tags":["web","package"]},{"url":"https://www.drupal.org/project/ai","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/31xxx/CVE-2025-31692.json","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2025-31692","title":"AI (Artificial Intelligence) - Critical - Remote Code Execution - SA-CONTRIB-2025-021","description":"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.","status":"published","published":"2025-03-31T21:50:34.673Z","modified":"2025-04-03T17:23:24.605Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"adp"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T14:32:44.424933Z"}],"euvd":[{"id":"EUVD-2025-9013","description":"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.","status":"published","published":"2025-03-31T21:50:34Z","modified":"2025-04-03T17:23:24Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T20:52:43.340305Z"}],"ghsa":[{"id":"GHSA-pwjq-fx3v-8f9r","title":"Drupal AI Vulnerable to OS Command Injection via Optional Automator Types","description":"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.","status":"published","published":"2025-04-01T00:30:35Z","modified":"2025-04-02T17:14:09Z","cvss":[{"version":"4.0","score":4.9,"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","level":"medium"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T14:38:37.325334Z"}],"nvd":[{"id":"CVE-2025-31692","description":"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.","status":"published","published":"2025-03-31T22:15:21.873Z","modified":"2026-07-16T15:21:36.193Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T14:10:57.134561Z"}],"osv":[{"id":"CVE-2025-31692","title":"AI (Artificial Intelligence) - Critical - Remote Code Execution - SA-CONTRIB-2025-021","description":"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.","status":"published","published":"2025-03-31T21:50:34.673Z","modified":"2026-10-28T02:30:37.180661031Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T15:44:48.02508Z"},{"id":"GHSA-pwjq-fx3v-8f9r","title":"Drupal AI Vulnerable to OS Command Injection via Optional Automator Types","description":"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.","status":"published","published":"2025-04-01T00:30:35Z","modified":"2025-12-10T23:41:11.732598Z","cvss":[{"version":"4.0","score":4.9,"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","level":"medium"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T15:46:53.700556Z"},{"id":"DRUPAL-CONTRIB-2025-021","description":"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.","status":"published","published":"2025-03-05T17:18:25Z","modified":"2026-09-10T03:45:05.773238473Z","updated_at":"2026-11-02T15:46:13.584509Z"}]}}
