{"id":"CVE-2026-124476","summary":"OpenEMR before 8.3.0 IDOR via form_pid in portal/lib/paylib.php","details":"OpenEMR before 8.3.0 contains an insecure direct object reference in portal/lib/paylib.php, which writes the request-supplied form_pid (or the patient_id_cc value in Sphere data) to onsite_portal_activity without checking it against the session patient. Authenticated portal patients can submit portal-save, review-save, AuthorizeNet, Stripe, or Sphere requests to insert or modify forged payment-audit records in other patients' billing records.","aliases":["GHSA-c9wg-vrr9-65wj"],"modified":"2026-11-18T21:01:26.124887249Z","published":"2026-11-08T13:15:57.286Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/124xxx/CVE-2026-124476.json","cna_assigner":"VulnCheck","cwe_ids":["CWE-639"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/124xxx/CVE-2026-124476.json"},{"type":"ADVISORY","url":"https://github.com/openemr/openemr/security/advisories/GHSA-c9wg-vrr9-65wj"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-124476"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/openemr-before-8.3.0-idor-via-form-pid-in-portal-lib-paylib-php"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/openemr/openemr","events":[{"introduced":"0"},{"fixed":"ebb62eb3036a726314ab3e1c3e9263a41608b17b"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"fixed":"8.3.0"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"},{"cpe":"cpe:2.3:a:open-emr:openemr:*:*:*:*:*:*:*:*","range":[{"introduced":"0"},{"fixed":"8.3.0"}],"source":"CPE_RANGE"}]}}],"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-124476.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"}]}