# lshell 0.9.16 allows remote authenticated users to break out of a limited shell and execute arbitrary commands.

Advisory record · `PYSEC-2017-154`

- **Identifiers:** `PYSEC-2017-154` · `CVE-2016-6903`
- **State:** Confirmed
- **Severity:** CVSS 9.9 Critical
- **Critical:** Yes: CVSS 9+
- **Published:** 24 Apr 2017
- **Updated:** 13 Jul 2026
- **Reviewed by a person:** No

Published by OSV at 24 Apr 2017, 19:59 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Critical

Critical, because:

- CVSS score 9.9: 9.0 or more.

How we decide what’s critical: <https://agentprime.io/advisories/critical.md>

## Affected packages

- `limited-shell` (PyPI): affected `<=0.9.16`; no fixed version yet

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> lshell, a limited shell package, is vulnerable in version 0.9.16 and earlier. A remote authenticated user can break out of the restricted shell and execute arbitrary commands. The source gives few details, and no fixed version is listed.

Written 6 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 9.9 Critical, CVSS 3.0: `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`, from OSV

- **CISA KEV:** Not listed.
- **EPSS:** 0.050, the 92nd percentile, on 23 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 15:04 UTC: First seen by agentprime
- 31 Oct 2026, 15:04 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/PYSEC-2017-154)

## Sources

- [OSV: PYSEC-2017-154](https://osv.dev/vulnerability/PYSEC-2017-154)
- <http://www.securityfocus.com/bid/92591>
- <http://www.openwall.com/lists/oss-security/2016/08/22/17>
- <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=834946>
- <https://bugzilla.redhat.com/show_bug.cgi?id=1369345>
- <https://github.com/ghantoos/lshell/commit/e72dfcd1f258193f9aaea3591ecbdaed207661a0>
- <https://github.com/ghantoos/lshell/issues/149>
- <https://github.com/ghantoos/lshell/pull/153/commits/a686f71732a3d0f16df52ef46ab8a49ee0083c68>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/PYSEC-2017-154>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/PYSEC-2017-154/>. Everything for agents: <https://agentprime.io/llms.txt>.
