CVE-2026-122043

Source
https://cve.org/CVERecord?id=CVE-2026-122043
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-122043.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-122043
Published
2026-11-11T17:17:17Z
Modified
2026-11-14T07:14:32Z
Severity
  • 6.0 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:L/VI:H/VA:H/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 Calculator
Summary
[none]
Details

repmgr 4.0.0 through 5.5.0 is affected by an OS command injection vulnerability (CWE-78) in event notifications. When event_notification_command is configured, repmgr substitutes the %a (node name), %c (connection string) and %d (details) placeholders into the command and runs it through the shell. %a and %c are inserted without escaping, and %d escapes only double quotes, so shell command substitution still works inside the quoting the documentation recommends. The node name and connection string come from node records in the repmgr.nodes table. An attacker with the credentials of a non-superuser repmgr database user can write a crafted node record and run OS commands, as the operating system user that runs repmgr or repmgrd (usually postgres), on other cluster nodes that process an event using these placeholders. The %a placeholder of failover_validation_command has the same flaw. Deployments whose repmgr database user is a superuser gain no new capability, because a superuser can already run OS commands, and deployments that do not use these placeholders are not affected. The issue is fixed in repmgr 5.5.1. After upgrading, operators must remove any quotes they placed around these placeholders, because a placeholder left inside double quotes is still open to command injection.

References

Affected packages

Git / github.com/enterprisedb/repmgr

Affected ranges

Type
GIT
Repo
https://github.com/enterprisedb/repmgr
Events
Database specific
Show details
{
    "extracted_events": [
        {
            "range": [
                {
                    "introduced": "4.0.0"
                },
                {
                    "last_affected": "5.5.0"
                }
            ],
            "source": "DESCRIPTION"
        },
        {
            "original_tag": "v5.5.1",
            "range": [
                {
                    "fixed": "8ade49d1fd19ab245202628750d9f5ca92d69487"
                }
            ],
            "source": "REFERENCES_TAG"
        }
    ]
}

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-122043.json"
vanir_signatures
[
    {
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "61836858280288677167296561187275910566",
                "86079536499340990805653342700131622946",
                "5185502026142197159686556066388985136"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2026-122043-1f5f48a6",
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/enterprisedb/repmgr/commit/8ade49d1fd19ab245202628750d9f5ca92d69487",
        "target": {
            "file": "strutil.h"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "function_hash": "204546804052985007076645109280812343690",
            "length": 4297
        },
        "id": "CVE-2026-122043-586c169e",
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/enterprisedb/repmgr/commit/8ade49d1fd19ab245202628750d9f5ca92d69487",
        "target": {
            "file": "dbutils.c",
            "function": "_create_event"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "147557184970612767201830168661831450793",
                "223558267375520211534978205480551170138",
                "40287453270628309153357590015852133399"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2026-122043-6ff3794a",
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/enterprisedb/repmgr/commit/8ade49d1fd19ab245202628750d9f5ca92d69487",
        "target": {
            "file": "strutil.c"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "145276540297864279784485382836517067365",
                "274306132144516853560231990734277569995",
                "3623586021040839715499338948041344550",
                "309515542313427927860993770465983804396"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2026-122043-a069db6a",
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/enterprisedb/repmgr/commit/8ade49d1fd19ab245202628750d9f5ca92d69487",
        "target": {
            "file": "repmgrd-physical.c"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "284330226463194410647125802974377973054",
                "232084728876824937086216262753065703780",
                "198875072112017085856412356192862200749",
                "149526039220608933313546294415639267591",
                "18122665887179610462752422829880686312",
                "289440823365886338880489100984351649748",
                "263179123842431210001085540078374803125",
                "197121837958168920290603310679907654247",
                "281962750286520679344466544945504525845",
                "81960521231261492060727084162458602197",
                "57209116828666462030109747652383702405",
                "180965367362446509315572186580299809261",
                "270023113353673913017998051859306508038",
                "128955383984709949524055759889028875428",
                "169698223840996424116600988372302523934",
                "97971687089413929781647462684387472502",
                "218220378260323736387886783218210677404",
                "83126814387733898102935271753164847717"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2026-122043-ff262cbc",
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/enterprisedb/repmgr/commit/8ade49d1fd19ab245202628750d9f5ca92d69487",
        "target": {
            "file": "dbutils.c"
        }
    }
]
vanir_signatures_modified
"2026-11-14T07:14:32Z"