Gitea 0.9.99 through 1.12.x before 1.12.6 does not prevent a git protocol path that specifies a TCP port number and also contains newlines (with URL encoding) in ParseRemoteAddr in modules/auth/repo_form.go.
{
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:a:gitea:gitea:*:*:*:*:*:*:*:*"
],
"extracted_events": [
{
"range": [
{
"introduced": "0.9.99"
},
{
"fixed": "1.12.6"
}
],
"source": "CPE_RANGE"
}
],
"vendor_product": "gitea:gitea"
}
]
}{
"extracted_events": [
{
"cpe": "cpe:2.3:a:gitea:gitea:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0.9.99"
},
{
"fixed": "1.12.6"
}
],
"source": "CPE_RANGE"
},
{
"original_tag": "v1.12.6",
"range": [
{
"fixed": "53b89c34742855e0c5a7f989d6506f02791678af"
}
],
"source": "REFERENCES_TAG"
}
]
}