{"id":"CVE-2026-104139","summary":"OpenEMR: Missing Authorization on Document Template Download Endpoint Allows Any Authenticated User to Read Another Patient's PHI","details":"OpenEMR is a free and open source electronic health records and medical practice management application. Prior to 8.3.0, library/ajax/set_pt.php allows any authenticated user to set an arbitrary patient identifier in the active session without an ACL check, and interface/patient_file/download_template.php trusts that session value while enforcing only CSRF validation. A low-privilege user can select another patient and download a rendered document template containing the patient's demographics, encounter information, allergies, medications, and problem list despite lacking patients/docs access. This issue is fixed in version 8.3.0.","aliases":["GHSA-r3q3-p493-95x8"],"modified":"2026-11-12T02:47:16.625654392Z","published":"2026-11-05T19:55:24.266Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/104xxx/CVE-2026-104139.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-862"]},"references":[{"type":"WEB","url":"https://github.com/openemr/openemr/releases/tag/v8_3_0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/104xxx/CVE-2026-104139.json"},{"type":"ADVISORY","url":"https://github.com/openemr/openemr/security/advisories/GHSA-r3q3-p493-95x8"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-104139"},{"type":"FIX","url":"https://github.com/openemr/openemr/commit/7973cab3fe3f2fd2374ed71c02605e3c93491c36"},{"type":"FIX","url":"https://github.com/openemr/openemr/pull/13200"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/openemr/openemr","events":[{"introduced":"0"},{"fixed":"ebb62eb3036a726314ab3e1c3e9263a41608b17b"},{"fixed":"7973cab3fe3f2fd2374ed71c02605e3c93491c36"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"fixed":"8.3.0"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:open-emr:openemr:*:*:*:*:*:*:*:*"},{"range":[{"fixed":"7973cab3fe3f2fd2374ed71c02605e3c93491c36"}],"source":"REFERENCES_COMMIT"},{"original_tag":"v8_3_0","range":[{"fixed":"ebb62eb3036a726314ab3e1c3e9263a41608b17b"}],"source":"REFERENCES_TAG"}]}}],"versions":["v3_0_1","v3_0_0","v2_9_0","v2_8_3","v2_8_2","v2_8_1","v2_8_0","v2_7_3-rc1","v2_7_2","v2_7_2-rc2","v2_7_2-rc1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-104139.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"}]}