{
  "id": "CVE-2026-55848",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-55848",
  "published_at": "2026-08-28T22:31:26.705Z",
  "title": "mapfish-print: XXE on MapFish Print allows reading arbitrary files of certain types",
  "vendor": "mapfish",
  "product": "mapfish-print",
  "cvss": {
    "score": 8.6,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "mapfish-print is a component of MapFish for printing templated cartographic maps. Prior to 3.28.30, 3.30.32, 3.31.24, 3.33.16, and 4.0.5, MapFish Print accepts an attacker-controlled GML layer url in requests to the /api/print3/print endpoint and fetches XML parsed by core/src/main/java/org/mapfish/print/map/geotools/GmlLayer.java without disabling external entities and external DTDs. A remote XML document and DTD can expand a local file entity, and the resulting content can be exposed through the GML parsing and error path. This allows unauthenticated attackers to read files such as operating-system account data, Kubernetes service-account tokens, and certificates. Replacing the file entity target with an internal HTTP endpoint also permits server-side request forgery. This issue is fixed in versions 3.28.30, 3.30.32, 3.31.24, 3.33.16, and 4.0.5.",
  "cwe": "CWE-611",
  "cvss_by_source": {
    "cna": 8.6
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "mapfish",
        "product": "mapfish-print",
        "ranges": [
          "\u003e= 3.0.0, \u003c 3.28.30",
          "\u003e= 3.29.0, \u003c 3.30.32",
          "\u003e= 3.31.0, \u003c 3.31.24",
          "\u003e= 3.32.0, \u003c 3.33.16",
          "\u003e= 4.0.0, \u003c 4.0.5"
        ],
        "fixed_in": [
          "3.28.30",
          "3.30.32",
          "3.31.24",
          "3.33.16",
          "4.0.5"
        ]
      },
      {
        "vendor": "mapfish",
        "product": "org.mapfish.print.print-lib",
        "ranges": [
          "\u003e= 3.0.0, \u003c 3.28.30",
          "\u003e= 3.29.0, \u003c 3.30.32",
          "\u003e= 3.31.0, \u003c 3.31.24",
          "\u003e= 3.32.0, \u003c 3.33.16",
          "\u003e= 4.0.0, \u003c 4.0.5"
        ],
        "fixed_in": [
          "3.28.30",
          "3.30.32",
          "3.31.24",
          "3.33.16",
          "4.0.5"
        ]
      },
      {
        "vendor": "mapfish",
        "product": "org.mapfish.print.print-servlet",
        "ranges": [
          "\u003e= 3.0.0, \u003c 3.28.30",
          "\u003e= 3.29.0, \u003c 3.30.32",
          "\u003e= 3.31.0, \u003c 3.31.24",
          "\u003e= 3.32.0, \u003c 3.33.16",
          "\u003e= 4.0.0, \u003c 4.0.5"
        ],
        "fixed_in": [
          "3.28.30",
          "3.30.32",
          "3.31.24",
          "3.33.16",
          "4.0.5"
        ]
      }
    ],
    "upgrade": [
      "Upgrade mapfish-print to 3.28.30 or 3.30.32 or 3.31.24 or 3.33.16 or 4.0.5 or later.",
      "Upgrade org.mapfish.print.print-lib to 3.28.30 or 3.30.32 or 3.31.24 or 3.33.16 or 4.0.5 or later.",
      "Upgrade org.mapfish.print.print-servlet to 3.28.30 or 3.30.32 or 3.31.24 or 3.33.16 or 4.0.5 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/mapfish/mapfish-print/security/advisories/GHSA-5v29-34h8-v68r"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/mapfish/mapfish-print/pull/4212"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/mapfish/mapfish-print/pull/4215"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/mapfish/mapfish-print/pull/4216"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/mapfish/mapfish-print/pull/4217"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/mapfish/mapfish-print/pull/4219"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/mapfish/mapfish-print/pull/4221"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/mapfish/mapfish-print/commit/13beae7a7f970fc3526c1f7ca5db817d8d51fbec"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
