{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2023-40034",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2023-08-08T13:46:25.244Z",
        "datePublished": "2023-08-16T20:48:03.087Z",
        "dateUpdated": "2024-10-02T19:57:12.309Z"
    },
    "containers": {
        "cna": {
            "title": "Repositoty takeover in woodpecker-ci",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-20",
                            "lang": "en",
                            "description": "CWE-20: Improper Input Validation",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "attackComplexity": "HIGH",
                        "attackVector": "NETWORK",
                        "availabilityImpact": "HIGH",
                        "baseScore": 8.1,
                        "baseSeverity": "HIGH",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "HIGH",
                        "privilegesRequired": "NONE",
                        "scope": "UNCHANGED",
                        "userInteraction": "NONE",
                        "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
                        "version": "3.1"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/woodpecker-ci/woodpecker/security/advisories/GHSA-4gcf-5m39-98mc",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/woodpecker-ci/woodpecker/security/advisories/GHSA-4gcf-5m39-98mc"
                },
                {
                    "name": "https://github.com/woodpecker-ci/woodpecker/pull/2221",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/woodpecker-ci/woodpecker/pull/2221"
                },
                {
                    "name": "https://github.com/woodpecker-ci/woodpecker/pull/2222",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/woodpecker-ci/woodpecker/pull/2222"
                },
                {
                    "name": "https://github.com/woodpecker-ci/woodpecker/commit/6e4c2f84cc84661d58cf1c0e5c421a46070bb105",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/woodpecker-ci/woodpecker/commit/6e4c2f84cc84661d58cf1c0e5c421a46070bb105"
                }
            ],
            "affected": [
                {
                    "vendor": "woodpecker-ci",
                    "product": "woodpecker",
                    "versions": [
                        {
                            "version": ">= 1.0.0, < 1.0.2",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2023-08-16T20:48:03.087Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "Woodpecker is a community fork of the Drone CI system. In affected versions an attacker can post malformed webhook data witch lead to an update of the repository data that can e.g. allow the takeover of an repo. This is only critical if the CI is configured for public usage and connected to a forge witch is also in public usage. This issue has been addressed in version 1.0.2. Users are advised to upgrade. Users unable to upgrade should secure the CI system by making it inaccessible to untrusted entities, for example, by placing it behind a firewall."
                }
            ],
            "source": {
                "advisory": "GHSA-4gcf-5m39-98mc",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-02T18:24:55.528Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "name": "https://github.com/woodpecker-ci/woodpecker/security/advisories/GHSA-4gcf-5m39-98mc",
                        "tags": [
                            "x_refsource_CONFIRM",
                            "x_transferred"
                        ],
                        "url": "https://github.com/woodpecker-ci/woodpecker/security/advisories/GHSA-4gcf-5m39-98mc"
                    },
                    {
                        "name": "https://github.com/woodpecker-ci/woodpecker/pull/2221",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/woodpecker-ci/woodpecker/pull/2221"
                    },
                    {
                        "name": "https://github.com/woodpecker-ci/woodpecker/pull/2222",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/woodpecker-ci/woodpecker/pull/2222"
                    },
                    {
                        "name": "https://github.com/woodpecker-ci/woodpecker/commit/6e4c2f84cc84661d58cf1c0e5c421a46070bb105",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/woodpecker-ci/woodpecker/commit/6e4c2f84cc84661d58cf1c0e5c421a46070bb105"
                    }
                ]
            },
            {
                "affected": [
                    {
                        "vendor": "woodpecker-ci",
                        "product": "woodpecker",
                        "cpes": [
                            "cpe:2.3:a:woodpecker-ci:woodpecker:*:*:*:*:*:*:*:*"
                        ],
                        "defaultStatus": "unknown",
                        "versions": [
                            {
                                "version": "1.0.0",
                                "status": "affected",
                                "lessThan": "1.0.2",
                                "versionType": "custom"
                            }
                        ]
                    }
                ],
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2024-10-02T19:56:26.550569Z",
                                "id": "CVE-2023-40034",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "total"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-10-02T19:57:12.309Z"
                }
            }
        ]
    }
}