# A single asterisk in musl libc hands attackers root on Alpine

Original title: *sshole, or when are we going to get rid of C?

> Hacker News story 50399400 · language: en · submitted 2026-11-06
> Web version: https://zeli.app/story/50399400
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 49 · by [hasheddan](<https://news.ycombinator.com/user?id=hasheddan>) · 💬 26
[original](<https://sunshowers.io/posts/sshole/>) · [HN discussion](<https://news.ycombinator.com/item?id=50399400>)

## Summary

A new vulnerability in musl's crypt function lets an unauthenticated attacker gain a possibly root shell on systems like the official Alpine AWS image. The cause isn't memory unsafety but in-band signaling: musl returns "*" for an overlong password, the same value Unix uses to mark a locked account. The author argues C's type system and community norms make such sentinel misuse inevitable, while Rust's culture would force callers to handle the error.

## Key quote

> The engineering norms of C developers allow for "*" to be an acceptable sentinel value indicating an error; the engineering norms of Rust developers simply do not.

## HN discussion (26 comments)

### [PeterWhittaker](<https://news.ycombinator.com/item?id=50400687>)

> This is less a problem with C and more a bad design decision by the musl team. In response to poor practices (programmers not checking what crypt returned), they built an arguably worse one (returning a sentinel value).
>
> Sure, Rust's std::result can make it harder to dumb, but dumb can always find a way.

### [zeroCalories](<https://news.ycombinator.com/item?id=50399706>)

> I just really hate rust compile times man

### [varispeed](<https://news.ycombinator.com/item?id=50399730>)

> What does it have to do with C? It's just poor design.
>
> It's like blaming poor driving on one's tracksuit.

---

## Cite

- Page: https://zeli.app/story/50399400
- Date: 2026-11-06
- Source: sunshowers.io (https://sunshowers.io/posts/sshole/)
- Hacker News: https://news.ycombinator.com/item?id=50399400

## Other languages

- zh: https://zeli.app/zh/story/50399400 · markdown: https://zeli.app/zh/story/50399400.md
- ja: https://zeli.app/ja/story/50399400 · markdown: https://zeli.app/ja/story/50399400.md
- ko: https://zeli.app/ko/story/50399400 · markdown: https://zeli.app/ko/story/50399400.md
- de: https://zeli.app/de/story/50399400 · markdown: https://zeli.app/de/story/50399400.md
- es: https://zeli.app/es/story/50399400 · markdown: https://zeli.app/es/story/50399400.md
- ru: https://zeli.app/ru/story/50399400 · markdown: https://zeli.app/ru/story/50399400.md
