{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-58213",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2026-06-29T17:09:25.873Z",
        "datePublished": "2026-07-08T19:52:12.148Z",
        "dateUpdated": "2026-07-09T13:33:07.155Z"
    },
    "containers": {
        "cna": {
            "title": "NATS Server: MQTT SUBSCRIBE Protocol Injection via Leaf Node/Route Forwarding allows arbitrary NATS command injection",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-74",
                            "lang": "en",
                            "description": "CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')",
                            "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/nats-io/nats-server/security/advisories/GHSA-qrcv-3558-gj4f",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/nats-io/nats-server/security/advisories/GHSA-qrcv-3558-gj4f"
                },
                {
                    "name": "https://github.com/nats-io/nats-server/pull/8163",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/nats-io/nats-server/pull/8163"
                },
                {
                    "name": "https://github.com/nats-io/nats-server/pull/8164",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/nats-io/nats-server/pull/8164"
                },
                {
                    "name": "https://github.com/nats-io/nats-server/commit/366837cfc65ab9ccb4f98193c65e8daf238582d8",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/nats-io/nats-server/commit/366837cfc65ab9ccb4f98193c65e8daf238582d8"
                },
                {
                    "name": "https://github.com/nats-io/nats-server/commit/64ebae40051ee497c481e10f316238faf0de1736",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/nats-io/nats-server/commit/64ebae40051ee497c481e10f316238faf0de1736"
                },
                {
                    "name": "https://github.com/nats-io/nats-server/commit/f14856b9e57a36818f43851cb69b6e33670885c9",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/nats-io/nats-server/commit/f14856b9e57a36818f43851cb69b6e33670885c9"
                },
                {
                    "name": "https://github.com/nats-io/nats-server/releases/tag/v2.12.9",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/nats-io/nats-server/releases/tag/v2.12.9"
                },
                {
                    "name": "https://github.com/nats-io/nats-server/releases/tag/v2.14.1",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/nats-io/nats-server/releases/tag/v2.14.1"
                }
            ],
            "affected": [
                {
                    "vendor": "nats-io",
                    "product": "nats-server",
                    "versions": [
                        {
                            "version": "< 2.12.9",
                            "status": "affected"
                        },
                        {
                            "version": ">= 2.14.0-RC.1, < 2.14.1",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2026-07-08T19:52:12.148Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "NATS Server is a high-performance server for NATS.io, the cloud and edge native messaging system. Prior to 2.14.1 and 2.12.9, an MQTT client could include protocol control characters in subscription filters that were later forwarded as NATS protocol data to route or leafnode connections, corrupting the forwarded protocol stream and allowing injection of unintended NATS protocol operations. This issue is fixed in versions 2.14.1 and 2.12.9."
                }
            ],
            "source": {
                "advisory": "GHSA-qrcv-3558-gj4f",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2026-07-09T13:32:57.416842Z",
                                "id": "CVE-2026-58213",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "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-07-09T13:33:07.155Z"
                }
            }
        ]
    }
}