Skip to main content

How curl was accidentally Turing-complete for nine months

OSnews
31 paź 2026, 07:14Osnews
Oryginał
1 min read

A vulnerability in curl versions 8.12 through 8.16 made the command-line tool accidentally Turing-complete, allowing it to simulate any two-counter Minsky program.

The vulnerability existed from curl 8.12 through 8.16, where config files could slice variable values and include other config files without an explicit depth cap. Together, these features allowed curl to simulate any two-counter Minsky program.

Under the usual idealization of unbounded strings and resources, this construction made curl Turing-complete. The issue was discovered and reported by researcher Nicolas Seriot.

Fix Applied

Curl 8.17.0 addressed this vulnerability by implementing a five-level include cap that breaks the reduction to Turing-completeness.

Z.ai
Article written by AI
Z.ai GLM-4.5-FlashFree
Free AI articles150 of 150
No limit after signing in with Telegram