{"id":"CVE-2026-124479","kind":"vulnerability","aliases":["CVE-2026-124479"],"related":[],"title":"OpenEMR: document download lets logged-in users read server files","description":"OpenEMR before 8.4.0 contains an arbitrary local file read vulnerability in REST document download, where the controller passes stored uploaded document bytes to Symfony's BinaryFileResponse as a filesystem path instead of returning them as content. Authenticated users with document upload and download access can upload a document containing an absolute pathname, such as the sqlconf.php location, then download it to read server files and recover database credentials.","summary":"OpenEMR before 8.4.0 has a REST document download flaw where stored document bytes are treated as a filesystem path. An authenticated user with upload and download access can read arbitrary server files, including the sqlconf.php file that holds database credentials.","severity":"high","cvss":7.1,"epss":null,"exploited":false,"exploited_at":null,"products":[{"name":"openemr","fixed":[],"affected":"","ecosystem":"vendor"}],"ecosystems":["vendor"],"tags":["healthcare","openemr","package","php","self-hosted"],"not_affected_if":["no-document-upload-permission","version-8.4.0-or-later"],"how_to_check":"- Check the OpenEMR version in the deployment; versions below `8.4.0` are in range.\n- Confirm whether document upload and REST document download are enabled for user roles.","fix":"- Upgrade OpenEMR to `8.4.0` or later.","status":"open","published_at":"2026-11-08T14:18:17+00:00","first_seen_at":"2026-11-08T14:48:41+00:00","triaged_at":"2026-11-08T14:49:30+00:00","updated_at":"2026-11-08T14:49:30+00:00","category":"package","confidence":0.8,"triage":{"at":"2026-11-08T14:49:30Z","model":"claude-haiku-5-5","output":{"fix":"- Upgrade OpenEMR to `8.4.0` or later.","reach":"network","title":"OpenEMR: document download lets logged-in users read server files","impact":"high","summary":"OpenEMR before 8.4.0 has a REST document download flaw where stored document bytes are treated as a filesystem path. An authenticated user with upload and download access can read arbitrary server files, including the sqlconf.php file that holds database credentials.","audience":"businesses","category":"package","nicknames":[],"who_cares":["openemr","healthcare","php","self-hosted"],"confidence":0.8,"fix_status":"available","needs_auth":"yes","worst_case":"Server config files read, database credentials exposed to the attacker","analyst_note":"","how_to_check":"- Check the OpenEMR version in the deployment; versions below `8.4.0` are in range.\n- Confirm whether document upload and REST document download are enabled for user roles.\n- unknown","plain_action":"","product_name":"openemr","needs_analyst":false,"not_affected_if":["version-8.4.0-or-later","no-document-upload-permission"],"who_is_affected":"Self-hosted OpenEMR installations before 8.4.0 where users can upload and download documents through the REST API are exposed. An attacker needs a valid account with document upload and download permissions. Installations on 8.4.0 or later, or where those permissions are restricted to trusted staff, are less exposed.","user_interaction":"no","product_ecosystem":"vendor","needs_special_setup":"unknown","severity_if_unknown":"unknown"},"cost_usd":0.000735,"input_tokens":4631,"output_tokens":544,"severity_before":"high"},"analyst_status":null,"analyst_note":null,"search":"'-124479':14A,17A '-2026':13A,16A '8.4.0':28B,68C 'absolut':116C 'access':52B,109C 'arbitrari':55B,71C 'authent':46B,102C 'binaryfilerespons':91C 'byte':38B,87C 'contain':69C,114C 'content':101C 'control':82C 'credenti':65B,133C 'cve':12A,15A 'databas':64B,132C 'document':2A,32B,37B,78C,86C,105C,113C 'download':3A,33B,51B,79C,108C,124C 'file':11A,57B,61B,73C,129C 'filesystem':43B,94C 'flaw':34B 'healthcar':19B 'hold':63B 'host':25B 'includ':58B 'instead':96C 'let':4A 'local':72C 'locat':122C 'log':6A 'logged-in':5A 'openemr':1A,18A,20B,26B,66C 'packag':21B 'pass':83C 'path':44B,95C 'pathnam':117C 'php':22B 'read':9A,54B,74C,127C 'recov':131C 'rest':31B,77C 'return':98C 'self':24B 'self-host':23B 'server':10A,56B,128C 'sqlconf.php':60B,121C 'store':36B,84C 'symfoni':89C 'treat':40B 'upload':49B,85C,106C,111C 'user':8A,47B,103C 'vulner':75C","nicknames":[],"mitigations":[],"who_affected":"Self-hosted OpenEMR installations before 8.4.0 where users can upload and download documents through the REST API are exposed. An attacker needs a valid account with document upload and download permissions. Installations on 8.4.0 or later, or where those permissions are restricted to trusted staff, are less exposed.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"businesses","plain_action":null,"pkeys":["openemr"],"ptokens":["openemr"],"labels":["healthcare","high","openemr","package","php","selfhosted","vendor"],"campaign_type":null,"search_a":"'-124479':14A,17A '-2026':13A,16A 'cve':12A,15A 'document':2A 'download':3A 'file':11A 'let':4A 'log':6A 'logged-in':5A 'openemr':1A,18A 'read':9A 'server':10A 'user':8A","search_b":"'8.4.0':28B 'access':52B 'arbitrari':55B 'authent':46B 'byte':38B 'credenti':65B 'databas':64B 'document':32B,37B 'download':33B,51B 'file':57B,61B 'filesystem':43B 'flaw':34B 'healthcar':19B 'hold':63B 'host':25B 'includ':58B 'openemr':20B,26B 'packag':21B 'path':44B 'php':22B 'read':54B 'rest':31B 'self':24B 'self-host':23B 'server':56B 'sqlconf.php':60B 'store':36B 'treat':40B 'upload':49B 'user':47B","search_c":"'8.4.0':68C 'absolut':116C 'access':109C 'arbitrari':71C 'authent':102C 'binaryfilerespons':91C 'byte':87C 'contain':69C,114C 'content':101C 'control':82C 'credenti':133C 'databas':132C 'document':78C,86C,105C,113C 'download':79C,108C,124C 'file':73C,129C 'filesystem':94C 'instead':96C 'local':72C 'locat':122C 'openemr':66C 'pass':83C 'path':95C 'pathnam':117C 'read':74C,127C 'recov':131C 'rest':77C 'return':98C 'server':128C 'sqlconf.php':121C 'store':84C 'symfoni':89C 'upload':85C,106C,111C 'user':103C 'vulner':75C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-09-13T09:40:21+00:00","kev":null,"cvss_vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"disclosure@vulncheck.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-124479","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-124479","severity":null,"published_at":"2026-11-08T14:18:17+00:00","modified_at":"2026-11-08T14:18:17+00:00","first_seen_at":"2026-11-08T14:48:41+00:00","fetched_at":"2026-11-08T14:48:41+00:00","note":null}],"documents":[{"id":102146,"url":"https://github.com/openemr/openemr/security/advisories/GHSA-xgxv-36g2-hq5g","title":"Vendor advisory: github.com","kind":"vendor","source":"nvd","publisher":"vendor","text":null,"published_at":"2026-09-13T09:40:21+00:00","relation":"advisory","confidence":null,"note":"Vendor advisory: github.com"},{"id":102147,"url":"https://www.vulncheck.com/advisories/openemr-before-8.4.0-arbitrary-file-read-via-rest-document-download","title":"Third-party advisory: www.vulncheck.com","kind":"advisory","source":"nvd","publisher":"research","text":null,"published_at":null,"relation":"advisory","confidence":null,"note":"Third-party advisory: www.vulncheck.com"}],"disclosures":[],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}