External Control of File Name or Path in OpenEMR - #VU158848
Published: November 3, 2026
Vulnerability details
The vulnerability allows a remote user to disclose local file contents through generated PDF documents.
The vulnerability exists due to insufficient restriction of externally controlled file paths in mPDF's nested SVG resource loading when rendering user-supplied HTML submitted to POST /portal/lib/doc_lib.php. A remote user can reference an external SVG containing a nested image path beginning with :/php://filter/ to bypass the initial stream-wrapper check and embed transformed local file bytes in the returned PDF to disclose sensitive information.