{
    "data_version": "4.0",
    "data_type": "CVE",
    "data_format": "MITRE",
    "CVE_data_meta": {
        "ID": "CVE-2024-5798",
        "ASSIGNER": "security@hashicorp.com",
        "STATE": "PUBLIC"
    },
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "Vault and Vault Enterprise did not properly validate the JSON Web Token (JWT) role-bound audience claim when using the Vault JWT auth method. This may have resulted in Vault validating a JWT the audience and role-bound claims do not match, allowing an invalid login to succeed when it should have been rejected.\n\nThis vulnerability, CVE-2024-5798, was fixed in Vault and Vault Enterprise 1.17.0, 1.16.3, and 1.15.9"
            }
        ]
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-285: Improper Authorization",
                        "cweId": "CWE-285"
                    }
                ]
            }
        ]
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "vendor_name": "HashiCorp",
                    "product": {
                        "product_data": [
                            {
                                "product_name": "Vault",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_value": "not down converted",
                                            "x_cve_json_5_version_data": {
                                                "versions": [
                                                    {
                                                        "changes": [
                                                            {
                                                                "at": "1.15.9",
                                                                "status": "unaffected"
                                                            },
                                                            {
                                                                "at": "1.14.13",
                                                                "status": "unaffected"
                                                            }
                                                        ],
                                                        "lessThan": "1.16.2",
                                                        "status": "affected",
                                                        "version": "0.11.0",
                                                        "versionType": "semver"
                                                    }
                                                ],
                                                "defaultStatus": "unaffected"
                                            }
                                        }
                                    ]
                                }
                            },
                            {
                                "product_name": "Vault Enterprise",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_value": "not down converted",
                                            "x_cve_json_5_version_data": {
                                                "versions": [
                                                    {
                                                        "changes": [
                                                            {
                                                                "at": "1.15.9",
                                                                "status": "unaffected"
                                                            },
                                                            {
                                                                "at": "1.14.13",
                                                                "status": "unaffected"
                                                            }
                                                        ],
                                                        "lessThan": "1.16.2",
                                                        "status": "affected",
                                                        "version": "0.11.0",
                                                        "versionType": "semver"
                                                    }
                                                ],
                                                "defaultStatus": "unaffected"
                                            }
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            ]
        }
    },
    "references": {
        "reference_data": [
            {
                "url": "https://discuss.hashicorp.com/t/hcsec-2024-11-vault-incorrectly-validated-json-web-tokens-jwt-audience-claims/67770",
                "refsource": "MISC",
                "name": "https://discuss.hashicorp.com/t/hcsec-2024-11-vault-incorrectly-validated-json-web-tokens-jwt-audience-claims/67770"
            }
        ]
    },
    "source": {
        "advisory": "HCSEC-2024-HCSEC-2024-11",
        "discovery": "EXTERNAL"
    },
    "impact": {
        "cvss": [
            {
                "baseScore": 2.6,
                "baseSeverity": "LOW",
                "vectorString": "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:L/I:N/A:N",
                "version": "3.1"
            }
        ]
    }
}