{
  "id": "CVE-2026-42589",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-42589",
  "published_at": "2026-05-14T15:11:30.619Z",
  "title": "Gotenberg: Unauthenticated RCE via ExifTool Metadata Key Injection",
  "vendor": "gotenberg",
  "product": "gotenberg",
  "cvss": {
    "score": 9.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-05-30T06:54:17Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 15.7,
    "repo": "fineman999/POC_CVE-2026-42589",
    "source": "github"
  },
  "poc_repo_count": 2,
  "exploit_count": 1,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Gotenberg is a Docker-powered stateless API for PDF files. Prior to 8.31.0, Gotenberg's /forms/pdfengines/metadata/write HTTP endpoint accepts a JSON metadata object and passes its keys directly to ExifTool via the go-exiftool library. No validation is performed on key characters. A \\n embedded in a JSON key splits the ExifTool stdin stream into a new argument line, allowing an attacker to inject arbitrary ExifTool flags — including -if, which evaluates Perl expressions. This achieves unauthenticated OS command execution in a single HTTP request. The response is HTTP 200 with a valid PDF, making the attack transparent to basic monitoring. This vulnerability is fixed in 8.31.0.",
  "cwe": "CWE-78",
  "cpes": [
    "cpe:2.3:a:thecodingmachine:gotenberg:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 9.8
  },
  "repos": [
    {
      "repo": "fineman999/POC_CVE-2026-42589",
      "url": "https://github.com/fineman999/POC_CVE-2026-42589",
      "created_at": "2026-05-30T06:54:17Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 3,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2019-01-17T13:51:46Z"
    },
    {
      "repo": "HackfutSecRoot/-GOTENBERG-RCE-CHAIN",
      "url": "https://github.com/HackfutSecRoot/-GOTENBERG-RCE-CHAIN",
      "created_at": "2026-10-03T21:40:17Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 2,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2026-08-13T22:46:29Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "gotenberg",
        "product": "gotenberg",
        "ranges": [
          "\u003c 8.31.0"
        ],
        "fixed_in": [
          "8.31.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade gotenberg to 8.31.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/gotenberg/gotenberg/security/advisories/GHSA-rqgh-gxv4-6657"
      }
    ]
  },
  "exploit_refs": [
    {
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-42589.yaml",
      "source": "nuclei",
      "title": "nuclei template: Gotenberg - Command Injection",
      "published_at": "2026-05-30T07:38:57Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [
    {
      "method": "POST",
      "path_template": "/forms/pdfengines/metadata/write",
      "headers": [
        {
          "name": "Accept",
          "value": "*/*"
        }
      ],
      "body_markers": [
        "--BOUNDARY\nContent-Disposition: form-data; name=\"files\"; filename=\"test.pdf\"\nContent-Type: application/pdf",
        "------NucleiBoundaryCVE202642589\nContent-Disposition: form-data; name=\"files\"; filename=\"sample.pdf\"\nContent-Type: appli"
      ],
      "content_type": "multipart/form-data; boundary=...",
      "ports": [
        3000,
        5000,
        8000,
        8080
      ],
      "user_agents": [
        "Mozilla/5.0"
      ],
      "protocol": "http",
      "repos": [
        "HackfutSecRoot/-GOTENBERG-RCE-CHAIN",
        "fineman999/POC_CVE-2026-42589"
      ],
      "repo_count": 2,
      "confidence": 0.85,
      "evidence": [
        "HackfutSecRoot/-GOTENBERG-RCE-CHAIN/README.md:261",
        "HackfutSecRoot/-GOTENBERG-RCE-CHAIN/auto_revshell.py:261",
        "HackfutSecRoot/-GOTENBERG-RCE-CHAIN/auto_revshell.py:302",
        "HackfutSecRoot/-GOTENBERG-RCE-CHAIN/gotenberg_rce.py:227",
        "HackfutSecRoot/-GOTENBERG-RCE-CHAIN/gotenberg_rce.py:268",
        "fineman999/POC_CVE-2026-42589/CVE-2026-42589.yaml:42"
      ]
    },
    {
      "method": "GET",
      "path_template": "/forms/pdfengines/metadata/write",
      "ports": [
        3000,
        5000,
        8000,
        8080
      ],
      "protocol": "http",
      "repos": [
        "HackfutSecRoot/-GOTENBERG-RCE-CHAIN"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "HackfutSecRoot/-GOTENBERG-RCE-CHAIN/auto_revshell.py:745",
        "HackfutSecRoot/-GOTENBERG-RCE-CHAIN/gotenberg_rce.py:518"
      ]
    }
  ],
  "rules": []
}
