{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "state": "PUBLISHED",
        "cveId": "CVE-2023-28113",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "assignerShortName": "GitHub_M",
        "dateUpdated": "2024-08-02T12:30:24.345Z",
        "dateReserved": "2023-03-10T00:00:00",
        "datePublished": "2023-03-16T00:00:00"
    },
    "containers": {
        "cna": {
            "title": "russh may use insecure Diffie-Hellman keys",
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2023-03-16T00:00:00"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "russh is a Rust SSH client and server library. Starting in version 0.34.0 and prior to versions 0.36.2 and 0.37.1, Diffie-Hellman key validation is insufficient, which can lead to insecure shared secrets and therefore breaks confidentiality. Connections between a russh client and server or those of a russh peer with some other misbehaving peer are most likely to be problematic. These may vulnerable to eavesdropping. Most other implementations reject such keys, so this is mainly an interoperability issue in such a case. This issue is fixed in versions 0.36.2 and 0.37.1"
                }
            ],
            "affected": [
                {
                    "vendor": "warp-tech",
                    "product": "russh",
                    "versions": [
                        {
                            "version": "0.34.0",
                            "status": "affected",
                            "lessThan": "0.34.0*",
                            "versionType": "custom"
                        },
                        {
                            "version": "0.36.2",
                            "status": "affected",
                            "lessThan": "0.36.2",
                            "versionType": "custom"
                        },
                        {
                            "version": "0.37.0",
                            "status": "affected",
                            "lessThan": "0.37.0*",
                            "versionType": "custom"
                        },
                        {
                            "version": "0.37.1",
                            "status": "affected",
                            "lessThan": "0.37.1",
                            "versionType": "custom"
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://github.com/warp-tech/russh/commit/d831a3716d3719dc76f091fcea9d94bd4ef97c6e"
                },
                {
                    "url": "https://github.com/warp-tech/russh/blob/master/russh/src/kex/dh/groups.rs#L72-L76"
                },
                {
                    "url": "https://github.com/warp-tech/russh/blob/master/russh/src/kex/dh/groups.rs#L78-L81"
                },
                {
                    "url": "https://github.com/warp-tech/russh/releases/tag/v0.36.2"
                },
                {
                    "url": "https://github.com/warp-tech/russh/releases/tag/v0.37.1"
                },
                {
                    "url": "https://github.com/warp-tech/russh/security/advisories/GHSA-cqvm-j2r2-hwpg"
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N",
                        "attackVector": "NETWORK",
                        "attackComplexity": "HIGH",
                        "privilegesRequired": "NONE",
                        "userInteraction": "NONE",
                        "scope": "UNCHANGED",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "NONE",
                        "availabilityImpact": "NONE",
                        "baseScore": 5.9,
                        "baseSeverity": "MEDIUM"
                    }
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "type": "CWE",
                            "lang": "en",
                            "description": "CWE-20 Improper Input Validation",
                            "cweId": "CWE-20"
                        }
                    ]
                },
                {
                    "descriptions": [
                        {
                            "type": "CWE",
                            "lang": "en",
                            "description": "CWE-358 Improperly Implemented Security Check for Standard",
                            "cweId": "CWE-358"
                        }
                    ]
                }
            ],
            "x_generator": {
                "engine": "Vulnogram 0.0.9"
            },
            "source": {
                "advisory": "GHSA-cqvm-j2r2-hwpg",
                "defect": [
                    "GHSA-cqvm-j2r2-hwpg"
                ],
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-02T12:30:24.345Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "url": "https://github.com/warp-tech/russh/commit/d831a3716d3719dc76f091fcea9d94bd4ef97c6e",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://github.com/warp-tech/russh/blob/master/russh/src/kex/dh/groups.rs#L72-L76",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://github.com/warp-tech/russh/blob/master/russh/src/kex/dh/groups.rs#L78-L81",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://github.com/warp-tech/russh/releases/tag/v0.36.2",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://github.com/warp-tech/russh/releases/tag/v0.37.1",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://github.com/warp-tech/russh/security/advisories/GHSA-cqvm-j2r2-hwpg",
                        "tags": [
                            "x_transferred"
                        ]
                    }
                ]
            }
        ]
    }
}