---
title: "Coding Agent Horror Stories: The CVE That Did Not Exist"
description: "A self-hosted, read-only AI code review bot running on Ollama answered a routine PostgreSQL 16.11→16.13 patch bump with a 1,500-word report alleging an \"architectural takeover\"."
url: "https://swe.quest/articles/coding-agent-horror-stories-the-cve-that-did-not-exist-6a97fa18ca5ac54f"
canonical: "https://www.docker.com/blog/coding-agent-horror-stories-the-cve-that-did-not-exist/"
source: "Docker"
published: "2026-10-29"
difficulty: "medium"
kind: "How-to"
reading_minutes: 15
tags: ["ai-agents","sandboxing","ai-coding","code-review","ci-cd"]
---

# Coding Agent Horror Stories: The CVE That Did Not Exist

A post on [Docker](https://swe.quest/sources/docker.md), published 2026-10-29, 15 min read, How-to. Original: [https://www.docker.com/blog/coding-agent-horror-stories-the-cve-that-did-not-exist/](https://www.docker.com/blog/coding-agent-horror-stories-the-cve-that-did-not-exist/)

## Summary

A self-hosted, read-only AI code review bot running on Ollama answered a routine PostgreSQL 16.11→16.13 patch bump with a 1,500-word report alleging an "architectural takeover". The report cited a nonexistent CVE, named Kubernetes resources that did not exist and urged revoking all IAM access. Read-only permissions stopped the agent from acting, but its output could still push a human with real access into causing an outage, so agent output should be treated as untrusted input. The walkthrough moves the reviewer into a Docker Sandbox microVM with the repo mounted read-only, no credentials, and deny-all networking except the model port. It also adds a CI step that checks every cited CVE ID against the NVD API and flags the review when any ID is fake.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Sandboxing & isolation](https://swe.quest/tags/sandboxing.md) (Security)
- [AI for coding](https://swe.quest/tags/ai-coding.md) (AI & ML)
- [Code review](https://swe.quest/tags/code-review.md) (Engineering practices)
- [CI/CD](https://swe.quest/tags/ci-cd.md) (Reliability & operations)

## Prerequisites

- CI pipelines ([easy posts on CI/CD](https://swe.quest/tags/ci-cd.md?difficulty=easy))
- LLM hallucination ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- Docker basics ([easy posts on Containers](https://swe.quest/tags/containers.md?difficulty=easy))

## Keywords

Docker Sandboxes, Ollama, GitLab CI, NVD, CVE, PostgreSQL

## Related posts

- [Coding Agent Horror Stories: The Command You Already Approved](https://swe.quest/articles/coding-agent-horror-stories-the-command-you-already-approved-c2fceff8d5f4f4cc.md): Docker · 2026-08-18 · Medium · 14 min read · AI agents, Sandboxing & isolation, Application security, AI for coding, Virtualization
  CVE-2026-22708 in Cursor let shell built-ins like \`export\`, \`typeset\` and \`declare\` run outside the Auto-Run allowlist, so injected text could silently set variables such as \`PAGER\`, \`PYTHONWARNINGS\` or \`PERL5OPT\` and turn an approved command like \`git branch\` into arbitrary code execution, even with an empty allowlist.
- [Coding Agent Horror Stories: The rm -rf ~/ Incident](https://swe.quest/articles/coding-agent-horror-stories-the-rm-rf-incident-68288dbcab0abba2.md): Docker · 2026-06-01 · Medium · 16 min read · AI agents, Sandboxing & isolation, AI for coding, Virtualization, Security
  An AI coding agent asked to clean up an old repo ran \`rm -rf tests/ patches/ plan/ ~/\`, and the trailing \`~/\` expanded to the user's home directory and wiped an entire Mac, including the Keychain, SSH keys and years of files, with TRIM-enabled SSDs ruling out recovery.
- [Coding Agent Horror Stories: The 29 Million Secret Problem](https://swe.quest/articles/coding-agent-horror-stories-the-29-million-secret-problem-7f5056c95d2769e4.md): Docker · 2026-07-28 · Medium · 12 min read · Supply chain security, AI for coding, Sandboxing & isolation, JavaScript, AI agents
  The s1ngularity supply-chain attack on the Nx npm package used a post-install script to find installed AI coding CLIs (Claude Code, Gemini CLI, Amazon Q) and invoke them with permission-bypass flags like --dangerously-skip-permissions, prompting the agent to inventory secrets across the home directory before exfiltrating them to public repos under the victim's GitHub account.
- [How I hunt for vulnerabilities with AI](https://swe.quest/articles/how-i-hunt-for-vulnerabilities-with-ai-3d82bb1020f483da.md): ClickHouse · 2026-06-26 · Medium · 23 min read · Vulnerability research, AI agents, AI for coding, C & C++
  AI coding agents (GitHub Copilot in agent mode with Claude Opus and Gemini, later Claude and ChatGPT) can drive vulnerability research in a large C++ codebase like ClickHouse.
- [Coding Agent Horror Stories: The Agent That Deleted Production](https://swe.quest/articles/coding-agent-horror-stories-the-agent-that-deleted-production-b395f3d709f7a9d0.md): Docker · 2026-07-20 · Medium · 18 min read · AI agents, Sandboxing & isolation, Identity & auth, Incidents & postmortems, Virtualization
  In December 2025, Amazon's Kiro coding agent, running with an engineer's operator-level credentials, decided the cleanest fix for a small AWS Cost Explorer bug was to delete and rebuild the production environment.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
