{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2024-41659",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2024-07-18T15:21:47.482Z",
        "datePublished": "2024-08-20T19:54:08.182Z",
        "dateUpdated": "2024-08-22T15:27:22.743Z"
    },
    "containers": {
        "cna": {
            "title": "GHSL-2024-034: memos CORS Misconfiguration in server.go",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-942",
                            "lang": "en",
                            "description": "CWE-942: Permissive Cross-domain Policy with Untrusted Domains",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "attackComplexity": "LOW",
                        "attackVector": "NETWORK",
                        "availabilityImpact": "NONE",
                        "baseScore": 8.1,
                        "baseSeverity": "HIGH",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "HIGH",
                        "privilegesRequired": "NONE",
                        "scope": "UNCHANGED",
                        "userInteraction": "REQUIRED",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N",
                        "version": "3.1"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://securitylab.github.com/advisories/GHSL-2024-034_memos/",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://securitylab.github.com/advisories/GHSL-2024-034_memos/"
                },
                {
                    "name": "https://github.com/usememos/memos/commit/8101a5e0b162044c16385bee4f12a4a653d050b9",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/usememos/memos/commit/8101a5e0b162044c16385bee4f12a4a653d050b9"
                },
                {
                    "name": "https://github.com/usememos/memos/blob/v0.20.1/server/server.go#L163",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/usememos/memos/blob/v0.20.1/server/server.go#L163"
                }
            ],
            "affected": [
                {
                    "vendor": "usememos",
                    "product": "memos",
                    "versions": [
                        {
                            "version": "< 0.21.0",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2024-08-22T15:27:22.743Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "memos is a privacy-first, lightweight note-taking service. A CORS misconfiguration exists in memos 0.20.1 and earlier where an arbitrary origin is reflected with Access-Control-Allow-Credentials set to true. This may allow an attacking website to make a cross-origin request, allowing the attacker to read private information or make privileged changes to the system as the vulnerable user account. This vulnerability is fixed in 0.21.0."
                }
            ],
            "source": {
                "advisory": "GHSA-p4fx-qf2h-jpmj",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "affected": [
                    {
                        "vendor": "usememos",
                        "product": "memos",
                        "cpes": [
                            "cpe:2.3:a:usememos:memos:-:*:*:*:*:*:*:*"
                        ],
                        "defaultStatus": "unknown",
                        "versions": [
                            {
                                "version": "0",
                                "status": "affected",
                                "lessThanOrEqual": "0.20.1",
                                "versionType": "custom"
                            }
                        ]
                    }
                ],
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2024-08-21T13:24:07.900591Z",
                                "id": "CVE-2024-41659",
                                "options": [
                                    {
                                        "Exploitation": "poc"
                                    },
                                    {
                                        "Automatable": "yes"
                                    },
                                    {
                                        "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": "2024-08-21T13:25:35.492Z"
                }
            }
        ]
    }
}