CVE-2026-30308
CriticalSummary
HAI Build Code Generator ma dwie opcje automatycznego wykonywania poleceń: wykonywanie bezpiecznych poleceń oraz wykonywanie wszystkich poleceń. System jest podatny na ataki typu prompt injection, co pozwala atakującemu na obejście wymogu zatwierdzenia przez użytkownika i wykonanie dowolnych poleceń.
Risk Assessment
Organizacja narażona jest na ryzyko nieautoryzowanego wykonania poleceń, co może prowadzić do poważnych konsekwencji, w tym utraty danych lub naruszenia bezpieczeństwa systemu.
Recommendation
Zaleca się ograniczenie możliwości automatycznego wykonywania poleceń oraz wdrożenie dodatkowych mechanizmów weryfikacji bezpieczeństwa przed ich wykonaniem.
Original NVD description (English source)
In its design for automatic terminal command execution, HAI Build Code Generator offers two options: Execute safe commands and Execute all commands. The description for the former states that commands determined by the model to be safe will be automatically executed, whereas if the model judges a command to be potentially destructive, it still requires user approval. However, this design is highly susceptible to prompt injection attacks. An attacker can employ a generic template to wrap any malicious command and mislead the model into misclassifying it as a 'safe' command, thereby bypassing the user approval requirement and resulting in arbitrary command execution.

