CVE-2025-31692 AI (Artificial Intelligence) - Critical - Remote Code Execution - SA-CONTRIB-2025-021
Attackers can execute arbitrary OS commands via the Drupal AI module, requiring an upgrade to the latest version.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-31692?
CVE-2025-31692 is a high-severity command injection vulnerability in Drupal AI (Artificial Intelligence), published on 31 Mar 2025. Any signed-in user can exploit it over the network, with no action from the victim.
Official 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.
Weakness: CWE-78
Which versions are affected by CVE-2025-31692?
2 open source packages ship an affected version, including drupal/ai. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
drupal/ai Packagist | All versions | 1.0.5 |
drupal/ai Packagist | All versions | 1.0.5 |
Linux distribution packages (1)
drupal/ai Packagist:https://packages.drupal.org/8 | All versions | 1.0.5 |
Products include Artificial Intelligence Project Artificial Intelligence.
How do I fix CVE-2025-31692?
Upgrade drupal/ai to 1.0.5 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2025-31692 being exploited?
There is no known exploitation of CVE-2025-31692 in the wild and no public exploit code.
Other vulnerabilities in Drupal AI (Artificial Intelligence)
- CVE-2025-31677 AI (Artificial Intelligence) - Critical - Cross Site Request Forgery - SA-CONTRIB-2025-003
- CVE-2025-31678 AI (Artificial Intelligence) - Moderately critical - Access bypass, Information Disclosure - SA-CONTRIB-2025-004
- CVE-2026-3573 AI (Artificial Intelligence) - Moderately critical - Information Disclosure - SA-CONTRIB-2026-028
- CVE-2025-31693 AI (Artificial Intelligence) - Moderately critical - Gadget Chain - SA-CONTRIB-2025-022
- CVE-2026-13234 Cross-site scripting in AI (Artificial Intelligence)
Sources
Also known as DRUPAL-CONTRIB-2025-021, GHSA-pwjq-fx3v-8f9r.