---
id: CVE-2026-126489
title: OpenEMR before 8.5.0 SQL Injection via IPPF Contraceptive Issue Feature
summary: >-
  OpenEMR before 8.5.0 contains a second-order SQL injection vulnerability in
  the IPPF contraceptive issue feature because issue_ippf_con_save concatenates
  layout_options field_id values into a REPLACE INTO query as column names.
  Authentic…
severity: high
cvss: 7.2
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H'
cvssSource: cna
cwe:
  - CWE-89
vendor: openemr
product: openemr
affected:
  - openemr < 8.5.0
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-11-13T18:43:51.564255Z'
exploitAvailable: true
published: '2026-11-13'
updated: '2026-11-13'
sourceUpdated: '2026-11-13T18:44:25.373Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-126489'
references:
  - url: 'https://github.com/openemr/openemr/security/advisories/GHSA-8j6v-q545-q9q7'
    label: GitHub Security Advisory (GHSA-8j6v-q545-q9q7)
  - url: >-
      https://www.vulncheck.com/advisories/openemr-before-8.5.0-sql-injection-via-ippf-contraceptive-issue-feature
    label: >-
      VulnCheck Advisory: OpenEMR before 8.5.0 SQL Injection via IPPF
      Contraceptive Issue Feature
tags:
  - cve.org
  - exploit-available
epss: 0.00508
epssPercentile: 0.43999
ingestedAt: '2026-11-13T10:36:39.596Z'
---

## Overview

OpenEMR before 8.5.0 contains a second-order SQL injection vulnerability in the IPPF contraceptive issue feature because issue_ippf_con_save concatenates layout_options field_id values into a REPLACE INTO query as column names. Authenticated administrators can add a malicious field_id via edit_layout.php, then trigger issue_ippf_con_save through add_edit_issue.php to execute arbitrary SQL.

## Affected

- `openemr < 8.5.0`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
