<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://cve.radiocsirt.org/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-15T18:04:53.230676+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>csirt@opendfir.org</email>
  </author>
  <link href="https://cve.radiocsirt.org" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://cve.radiocsirt.org/vuln/cve-2026-33718</id>
    <title>CVE-2026-33718 — OpenHands is Vulnerable to Command Injection through its Git Diff Handler</title>
    <updated>2026-10-15T18:04:53.232905+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> OpenHands</p>
<p>OpenHands is software for AI-driven development. Starting in version 1.5.0, a Command Injection vulnerability exists in the `get_git_diff()` method at `openhands/runtime/utils/git_handler.py:134`. The `path` parameter from the `/api/conversations/{conversation_id}/git/diff` API endpoint is passed unsanitized to a shell command, allowing authenticated attackers to execute arbitrary commands in the agent sandbox. The user is already allowed to instruct the agent to execute commands, but this bypasses the normal channels. Version 1.5.0 fixes the issue.</p></div>
    </content>
    <link href="https://cve.radiocsirt.org/vuln/cve-2026-33718"/>
  </entry>
  <entry>
    <id>https://cve.radiocsirt.org/vuln/ghsa-7h8w-hj9j-8rjw</id>
    <title>GHSA-7h8w-hj9j-8rjw — OpenHands is Vulnerable to Command Injection through its Git Diff Handler</title>
    <updated>2026-10-15T18:04:53.232964+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> PyPI: openhands-ai</p>
<p>## Summary</p>
<p>A Command Injection vulnerability exists in the `get_git_diff()` method at `openhands/runtime/utils/git_handler.py:134`. The `path` parameter from the `/api/conversations/{conversation_id}/git/diff` API endpoint is passed unsanitized to a shell command, allowing authenticated attackers to execute arbitrary commands in the agent sandbox. The user is already allowed to instruct the agent to execute commands, but this bypasses the normal channels.</p>
<p>---</p>
<p>## Details</p>
<p>### Vulnerable Code Path</p>
<p>The vulnerability flows through these files:</p>
<p>1. **API Endpoint** (`openhands/server/routes/files.py:267-277`)
```python
@app.get('/git/diff')
async def git_diff(
    path: str,  # &lt;-- User input from HTTP request
    ...
):
    ...
    diff = await call_sync_from_async(runtime.get_git_diff, path, cwd)  # No sanitization
```</p>
<p>2. **Runtime** (`openhands/runtime/base.py:1231-1233`)
```python
def get_git_diff(self, file_path: str, cwd: str) -&gt; dict[str, str]:
    self.git_handler.set_cwd(cwd)
    return self.git_handler.get_git_diff(file_path)  # Passed directly
```</p>
<p>3. **Vulnerable Method** (`openhands/runtime/utils/git_handler.py:10-12, 134`)
```python
# Command template with placeholder
GIT_DIFF_CMD = 'python3 /openhands/code/openhands/runtime/utils/git_diff.py "{file_path}"'</p>
<p># Line 134 - VULNERABLE: User input directly interpolated
result = self.execute(self.git_diff_cmd.format(file_path=file_path), self.cwd)
```</p>
<p>4. **Shell Execution** (`openhands/runtime/utils/git_diff.py:25-…</p></div>
    </content>
    <link href="https://cve.radiocsirt.org/vuln/ghsa-7h8w-hj9j-8rjw"/>
  </entry>
</feed>
