Bastillion Command Injection Vulnerability in Public Key Management System

Vulnerability

A command injection vulnerability exists in bastillion-io Bastillion versions through 4.0.1, specifically within the Public Key Management System component. The issue arises in the file AuthKeysKtrl.java, where insufficient validation of public key content allows authenticated users with key upload privileges to inject malicious commands. These commands are executed on remote systems during SSH key distribution. The vulnerability is currently unpatched.

Impact

Exploitation of this vulnerability allows authenticated users to execute arbitrary commands on systems where the injected SSH key is distributed, potentially leading to unauthorized access, data manipulation, and persistence on the affected hosts.

Reproduction

To reproduce this vulnerability, an authenticated user with public key upload rights can upload a malicious SSH public key containing command injection payloads. Once the key is uploaded, it can be distributed to target systems, where the injected commands will be executed.

Added: Jan 17, 2026, 8:18 PM
Updated: Jan 17, 2026, 8:18 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
2.5
exploitability
6.6
remediation
0.0
relevance
2.1
threat
6.4
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.