{
    "data_version": "4.0",
    "data_type": "CVE",
    "data_format": "MITRE",
    "CVE_data_meta": {
        "ID": "CVE-2024-5248",
        "ASSIGNER": "security@huntr.com",
        "STATE": "PUBLIC"
    },
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "In lunary-ai/lunary version 1.2.5, an improper access control vulnerability exists due to a missing permission check in the `GET /v1/users/me/org` endpoint. The platform's role definitions restrict the `Prompt Editor` role to prompt management and project viewing/listing capabilities, explicitly excluding access to user information. However, the endpoint fails to enforce this restriction, allowing users with the `Prompt Editor` role to access the full list of users in the organization. This vulnerability allows unauthorized access to sensitive user information, violating the intended access controls."
            }
        ]
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-284 Improper Access Control",
                        "cweId": "CWE-284"
                    }
                ]
            }
        ]
    },
    "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": "latest"
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            ]
        }
    },
    "references": {
        "reference_data": [
            {
                "url": "https://huntr.com/bounties/4ec75087-5630-4813-952b-88ccabe6d117",
                "refsource": "MISC",
                "name": "https://huntr.com/bounties/4ec75087-5630-4813-952b-88ccabe6d117"
            }
        ]
    },
    "source": {
        "advisory": "4ec75087-5630-4813-952b-88ccabe6d117",
        "discovery": "EXTERNAL"
    },
    "impact": {
        "cvss": [
            {
                "version": "3.0",
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "NONE",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "NONE",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N",
                "baseScore": 6.5,
                "baseSeverity": "MEDIUM"
            }
        ]
    }
}