Remote code execution in SPIP (SQLite) - CVE-2026-66738
A code injection flaw in SPIP's navigation-menu endpoint on SQLite-backed installations lets an authenticated editor, and in some configurations an anonymous visitor, execute arbitrary OS commands. The bug arises because array-typed input bypasses sanitisation and SQLite quoting leaves backslashes intact, allowing a value to break out of a quoted string that is later evaluated as PHP.
fenrisk.com
Published on fenrisk.com
An authenticated editor, and in some configurations an anonymous visitor, can run arbitrary OS commands on SPIP installations backed by SQLite.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the combination of array-typed input bypassing string sanitisation functions and SQLite quoting not escaping backslashes, allowing a crafted value to break out of a quoted string that is later passed to eval().
Impact
An authenticated editor, and in some configurations an anonymous visitor, could execute arbitrary OS commands on the server, leading to full compromise.
What the attacker needed
SQLite backend; editor privileges or anonymous comment access; victim clicks a link (for unauthenticated)
The fix
SPIP 4.4.18 fixed the issue by restricting menu keys to scalars, disabling models in forum comments, and fixing the ajax filter in models; backslash handling in SQLite quoting remains a deeper concern.
How it was found
- Install SPIP 4.4.16 with SQLite and create an admin plus a redacteur.
- As the redacteur, send a GET request to /ecrire/?exec=navigation with a menu[] parameter containing a crafted payload.
- The payload breaks out of the quoted string and executes shell_exec("id"), printing the output in the page.
- For unauthenticated access, publish an article with comments enabled and submit a model in the comment preview.
- Extract the ajax-env token from the preview response.
- Replay the token with the menu[] payload to trigger the eval() sink without authentication.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
SPIP is a content management system written in PHP. A flaw in how it handles a menu parameter on SQLite databases lets an attacker inject PHP code that runs system commands, because the input is not properly cleaned and is later executed by PHP's eval function.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.