CVE-2020-28991

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)…

published November 24, 2020

CVSS
—
EPSS
2%
Percentile
77.5
In the wild
Unconfirmed
What it is

⚠️ A sneaky newline in a TCP port could lead to unintended consequences! Gitea versions 0.9.99 through 1.12.x before 1.12.6 are vulnerable due to improper path handling! Think of it like a restaurant accepting an order that has the chef's secret ingredient request hidden in a poorly formatted note. If the kitchen doesn’t read the instructions carefully, they might serve up a dish no one asked for! This vulnerability allows an attacker to manipulate the Git protocol to specify a TCP port, which can lead to a range of issues, including unauthorized access to repositories. It’s an open invitation for mischief if the wrong hands get the recipe!

Put simply

Think of it like a restaurant accepting an order that has the chef's secret ingredient request hidden in a poorly formatted note. If the kitchen doesn’t read the instructions carefully, they might serve up a dish no one asked for! In Gitea versions 0.9.99 through 1.12.x before 1.12.6, the issue stems from the ParseRemoteAddr function not properly validating input that includes newlines in TCP port specifications, allowing potential exploitation of the protocol.

What to do

This vulnerability allows an attacker to manipulate the Git protocol to specify a TCP port, which can lead to a range of issues, including unauthorized access to repositories. It’s an open invitation for mischief if the wrong hands get the recipe! To protect your Gitea instance, upgrade to version 1.12.6 or later immediately. Additionally, audit your configurations for any unexpected TCP port interactions to ensure they are secure. 🛡️ You've got this! By following these steps, you'll lock things down in no time! 🔒

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01736 · 77.5th percentile
Published
2020-11-24T00:29Z
EPSS history
Timeline
  • 24 NOV 00:29Z
    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)…
    cvelistv5