# CVE-2026-0313: Cortex OS Query content pack command injection

An authenticated administrator can run arbitrary OS commands on remote endpoints through the OS Query content pack. Palo Alto Networks is not aware of any malicious exploitation.

- Vendor: Palo Alto Networks, Cortex XSOAR and Cortex XSIAM OS Query content pack
- Severity: MEDIUM (CVSS 4.0 8.6)
- Exploited (CISA KEV): not listed
- EPSS: 0.8% on 2026-12-02
- Public exploit: none reported
- Patch available: yes
- Vendor advisory: https://security.paloaltonetworks.com/CVE-2026-0313
- Published: 2026-10-14; updated: 2026-10-16
- Page: https://patchtonight.com/cve/CVE-2026-0313/

## Affected and fixed versions

| Affected | Fixed in |
| --- | --- |
| Cortex XSOAR OS Query content pack 1.0.0 to 1.0.16 | 1.0.17 or later |
| Cortex XSIAM OS Query content pack 1.0.0 to 1.0.16 | 1.0.17 or later |

## What it is

The OS Query content pack for Cortex XSOAR and Cortex XSIAM lets playbooks run queries on remote endpoints over SSH. A command injection flaw ([CWE-78](https://cwe.mitre.org/data/definitions/78.html)) in the pack lets an **authenticated administrator** run arbitrary OS commands on those remote endpoints.

This is a post-authentication bug. The attacker needs a high-privileged account in the platform first. Its value is reach: one admin account in XSOAR or XSIAM becomes command execution on every endpoint the SSH integration can connect to. Palo Alto Networks rates it medium (CVSS-BT 6.1) with a suggested urgency of moderate, though the base score is 8.6 (CVSS 4.0). Exploit maturity is listed as unreported.

Palo Alto Networks credits Mohamed Lemine Ahmed Jidou (AegisSec) for reporting it. The vendor says it is not aware of any malicious exploitation.

## Am I affected?

You're exposed only if **both** are true:

1. The **OS Query content pack** is installed at a version from 1.0.0 up to, but not including, 1.0.17.
2. The **SSH integration** is installed and configured.

Both Cortex XSOAR and Cortex XSIAM are affected. If the OS Query pack isn't installed, or the SSH integration isn't configured, the advisory says the issue isn't exploitable.

To check, look at the installed version of the OS Query pack in your content pack list. The advisory gives no menu path or command for this, so use your platform's normal content pack management view.

## What to do

1. **Update the OS Query content pack to 1.0.17 or later** from the Cortex XSOAR Marketplace.
2. **If you can't update yet, disable the `OSQueryBasicQuery` automation.** This is Palo Alto Networks' workaround. Playbooks that call it will stop working until you re-enable it after updating.
3. **Review who holds administrator rights** in XSOAR and XSIAM. The bug needs a privileged account, so trim the list and check that those accounts are protected with strong authentication.
4. **If you suspect misuse,** review activity from the SSH integration's accounts on the remote endpoints (see Detection) and treat any unexplained commands as a possible compromise of those endpoints. Rotate the credentials or keys the SSH integration uses.

## Detection

The advisory and CVE record publish no indicators of compromise and no detection guidance. Based on how the bug works, these are reasonable places to look:

- Runs of the `OSQueryBasicQuery` automation that you don't recognise, especially by users who don't normally run it. Check the platform's audit and war room records.
- Unexpected commands in the shell history and authentication logs of the endpoints that the SSH integration connects to, around the time of those runs.
- Logins to those endpoints by the SSH integration's account from outside your normal automation windows.

These are suggestions, not vendor-published signatures.

## Sources

- [Palo Alto Networks advisory](https://security.paloaltonetworks.com/CVE-2026-0313)
- [CVE record (CVE Program)](https://cveawg.mitre.org/api/cve/CVE-2026-0313)

---

Data from PatchTonight (https://patchtonight.com), compiled from vendor advisories, CISA KEV and FIRST EPSS. Please credit PatchTonight and link to the CVE page when you use it.
