{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-25147",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2026-01-29T15:39:11.821Z",
        "datePublished": "2026-02-27T16:44:40.734Z",
        "dateUpdated": "2026-02-27T18:27:59.160Z"
    },
    "containers": {
        "cna": {
            "title": "OpenEMR's Portal Payment Endpoint Trusts User-Controlled pid",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-639",
                            "lang": "en",
                            "description": "CWE-639: Authorization Bypass Through User-Controlled Key",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "attackComplexity": "LOW",
                        "attackVector": "NETWORK",
                        "availabilityImpact": "NONE",
                        "baseScore": 7.1,
                        "baseSeverity": "HIGH",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "LOW",
                        "privilegesRequired": "LOW",
                        "scope": "UNCHANGED",
                        "userInteraction": "NONE",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N",
                        "version": "3.1"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/openemr/openemr/security/advisories/GHSA-mwmw-qxv3-8whh",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/openemr/openemr/security/advisories/GHSA-mwmw-qxv3-8whh"
                },
                {
                    "name": "https://github.com/openemr/openemr/commit/d6ab3cd0b621b19b942cf49d2db2026e288aa214",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/openemr/openemr/commit/d6ab3cd0b621b19b942cf49d2db2026e288aa214"
                }
            ],
            "affected": [
                {
                    "vendor": "openemr",
                    "product": "openemr",
                    "versions": [
                        {
                            "version": "< 8.0.0",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2026-02-27T16:44:40.734Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "OpenEMR is a free and open source electronic health records and medical practice management application. Prior to version 8.0.0, in `portal/portal_payment.php`, the patient id used for the page is taken from the request (`$pid = $_REQUEST['pid'] ?? $pid` and `$pid = ($_REQUEST['hidden_patient_code'] ?? null) > 0 ? $_REQUEST['hidden_patient_code'] : $pid`) instead of being fixed to the authenticated portal user. The portal session already has a valid `$pid` for the logged-in patient. Overwriting it with user-supplied values and using it without authorization allows a portal user to view and interact with another patient's demographics, invoices, and payment history—horizontal privilege escalation and IDOR. Version 8.0.0 contains a fix for the issue."
                }
            ],
            "source": {
                "advisory": "GHSA-mwmw-qxv3-8whh",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2026-02-27T18:27:48.774045Z",
                                "id": "CVE-2026-25147",
                                "options": [
                                    {
                                        "Exploitation": "poc"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2026-02-27T18:27:59.160Z"
                }
            }
        ]
    }
}