{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-123638",
        "assignerOrgId": "88ee5874-cf24-4952-aea0-31affedb7ff2",
        "state": "PUBLISHED",
        "assignerShortName": "Gitea",
        "dateReserved": "2026-11-15T20:29:37.618Z",
        "datePublished": "2026-11-15T21:14:03.522Z",
        "dateUpdated": "2026-11-15T21:14:03.522Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "88ee5874-cf24-4952-aea0-31affedb7ff2",
                "shortName": "Gitea",
                "dateUpdated": "2026-11-15T21:14:03.522Z"
            },
            "title": "Gitea protected file pattern bypass with quoted file names",
            "descriptions": [
                {
                    "lang": "en",
                    "value": "The \"Protected file patterns\" setting of a branch protection rule was checked against file names as git prints them, and git quotes names that contain a double quote, a backslash or a control character. Such names never matched a pattern, so a user with write access could add or change files under a protected pattern by direct push or through a pull request merge, and could move a protected file out of the pattern's reach by renaming it. Where the patterns protect workflow files, this allowed adding a workflow that then ran on the repository's runners. Changed files are now listed unquoted, and a rename reports both the old and the new path."
                }
            ],
            "affected": [
                {
                    "vendor": "Gitea",
                    "product": "Gitea",
                    "packageName": "gitea.dev",
                    "defaultStatus": "unaffected",
                    "versions": [
                        {
                            "version": "0",
                            "status": "affected",
                            "lessThan": "28.4.0",
                            "versionType": "semver"
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://github.com/go-gitea/gitea/security/advisories/GHSA-w87g-xmrp-86v2",
                    "name": "GitHub Security Advisory GHSA-w87g-xmrp-86v2",
                    "tags": [
                        "vendor-advisory"
                    ]
                },
                {
                    "url": "https://github.com/go-gitea/gitea/pull/40362",
                    "name": "Fix on release/v28: go-gitea/gitea pull request #40362",
                    "tags": [
                        "patch"
                    ]
                },
                {
                    "url": "https://blog.gitea.com/release-of-28.4.0/",
                    "name": "Gitea 28.4.0 release announcement",
                    "tags": [
                        "release-notes"
                    ]
                },
                {
                    "url": "https://github.com/go-gitea/gitea/releases/tag/v28.4.0",
                    "name": "go-gitea/gitea v28.4.0 release",
                    "tags": [
                        "release-notes"
                    ]
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "lang": "en",
                            "type": "CWE",
                            "cweId": "CWE-693",
                            "description": "CWE-693: Protection Mechanism Failure"
                        }
                    ]
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "value": "https://github.com/Bryan-Project",
                    "type": "reporter"
                },
                {
                    "lang": "en",
                    "value": "https://github.com/yagcioglutoprak",
                    "type": "reporter"
                },
                {
                    "lang": "en",
                    "value": "https://github.com/lunny",
                    "type": "remediation developer"
                }
            ]
        }
    }
}