{
    "data_version": "4.0",
    "data_type": "CVE",
    "data_format": "MITRE",
    "CVE_data_meta": {
        "ID": "CVE-2024-1902",
        "ASSIGNER": "security@huntr.com",
        "STATE": "PUBLIC"
    },
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "lunary-ai/lunary is vulnerable to a session reuse attack, allowing a removed user to change the organization name without proper authorization. The vulnerability stems from the lack of validation to check if a user is still part of an organization before allowing them to make changes. An attacker can exploit this by using an old authorization token to send a PATCH request, modifying the organization's name even after being removed from the organization. This issue is due to incorrect synchronization and affects the orgs.patch route."
            }
        ]
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-821 Incorrect Synchronization",
                        "cweId": "CWE-821"
                    }
                ]
            }
        ]
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "vendor_name": "lunary-ai",
                    "product": {
                        "product_data": [
                            {
                                "product_name": "lunary-ai/lunary",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_affected": "<",
                                            "version_name": "unspecified",
                                            "version_value": "1.2.8"
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            ]
        }
    },
    "references": {
        "reference_data": [
            {
                "url": "https://huntr.com/bounties/e536310e-abe7-4585-9cf6-21f77390a5e8",
                "refsource": "MISC",
                "name": "https://huntr.com/bounties/e536310e-abe7-4585-9cf6-21f77390a5e8"
            },
            {
                "url": "https://github.com/lunary-ai/lunary/commit/d8e2e73efd53ab4e92cf47bbf4b639a9f08853d2",
                "refsource": "MISC",
                "name": "https://github.com/lunary-ai/lunary/commit/d8e2e73efd53ab4e92cf47bbf4b639a9f08853d2"
            }
        ]
    },
    "source": {
        "advisory": "e536310e-abe7-4585-9cf6-21f77390a5e8",
        "discovery": "EXTERNAL"
    },
    "impact": {
        "cvss": [
            {
                "version": "3.0",
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "NONE",
                "confidentialityImpact": "NONE",
                "integrityImpact": "HIGH",
                "privilegesRequired": "NONE",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N",
                "baseScore": 7.5,
                "baseSeverity": "HIGH"
            }
        ]
    }
}