Security

The app store accepted "." and ".." as app names

KSA-2026-0064

Status
Fixed, update coming
Severity
Medium
Affected versions
No released version (the weak check was in 0.2.0 to 0.2.6, but nothing in those versions could reach it)
Fixed in
0.2.28 (PR #243)
Published
2026-11-23
Updated
2026-11-23

Summary

The system's check for app ids allowed "." and "..". Each app is kept in a folder named after its id, so an app with one of those ids would have pointed at the apps folder itself or the folder above it, and removing that app could have deleted much more than the app.

In released versions this could not happen. An app is installed only when the store's signature covers its id, and the store never signs ids like these. An app can be removed only when it is installed. The new kpkg command in development code read ids from the store's list with the same weak check, so the check was made strict before that code was released.

App ids must now start with a letter or a digit and cannot contain "..", in the Store, in installing and removing apps, and in kpkg.

Credit

Brent Gordon