# jakabakos/cve-2017-9096-itext-xxe architecture

> Architecture diagram of the GitHub repository jakabakos/cve-2017-9096-itext-xxe, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jakabakos/cve-2017-9096-itext-xxe
- Repository: https://github.com/jakabakos/cve-2017-9096-itext-xxe

## Overview

This is a minimal Java proof of concept for exercising CVE-2017-9096 with a PDF containing XXE payloads. The workflow is to run the Java entry point, which opens the prepared PDF, obtains its XFA DOM and XMP metadata, then prints the metadata. The README describes how the PDF payloads were prepared and the intended attack; the source excerpt does not establish whether entity resolution reaches an external host, so that behavior is not shown as a runtime connection.

Main entry points: [`src/main/java/com/poc/Exec.java`](https://github.com/jakabakos/cve-2017-9096-itext-xxe/blob/main/src/main/java/com/poc/Exec.java) (Java runner), [`output_with_xxe.pdf`](https://github.com/jakabakos/cve-2017-9096-itext-xxe/blob/main/output_with_xxe.pdf) (XXE PDF)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["PoC runtime"]
  node_exec["Java runner<br/>[Exec.java]"]
  node_itext["iText PDF APIs"]
  node_xfa["XFA DOM"]
end

subgraph group_artifacts["PDF artifact"]
  node_payload["XXE PDF"]
end

node_user(("Operator"))
node_stdout["Console output"]

node_user -->|"runs"| node_exec
node_exec -->|"reads"| node_payload
node_exec -->|"opens PDF"| node_itext
node_exec -->|"extracts DOM"| node_xfa
node_exec -->|"reads XMP"| node_itext
node_exec -->|"prints metadata"| node_stdout

click node_exec "https://github.com/jakabakos/cve-2017-9096-itext-xxe/blob/main/src/main/java/com/poc/Exec.java"
click node_payload "https://github.com/jakabakos/cve-2017-9096-itext-xxe/blob/main/output_with_xxe.pdf"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_exec,node_itext,node_xfa toneBlue
class node_payload toneAmber
class node_user,node_stdout toneIndigo
```

## Components

### PoC runtime

- [Java runner](https://github.com/jakabakos/cve-2017-9096-itext-xxe/blob/main/src/main/java/com/poc/Exec.java): `src/main/java/com/poc/Exec.java`
- **iText PDF APIs**
- **XFA DOM**

### PDF artifact

- [XXE PDF](https://github.com/jakabakos/cve-2017-9096-itext-xxe/blob/main/output_with_xxe.pdf): `output_with_xxe.pdf`

### Other components

- **Operator**
- **Console output**

## Connections

- Operator → Java runner: runs (evidence: `README.md`)
- Java runner → XXE PDF: reads (evidence: `src/main/java/com/poc/Exec.java`)
- Java runner → iText PDF APIs: opens PDF (evidence: `src/main/java/com/poc/Exec.java`)
- Java runner → XFA DOM: extracts DOM (evidence: `src/main/java/com/poc/Exec.java`)
- Java runner → iText PDF APIs: reads XMP (evidence: `src/main/java/com/poc/Exec.java`)
- Java runner → Console output: prints metadata (evidence: `src/main/java/com/poc/Exec.java`)
