CVE-2014-8681 SQL Injection in gogs.io/gogs

High 7.5 Published Updated

Remote attackers can execute arbitrary SQL commands via the label parameter in Gogs, potentially reading or modifying database contents.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2014-8681?

CVE-2014-8681 is a high-severity SQL injection vulnerability in n/a, published on 21 Nov 2014. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

SQL injection vulnerability in the GetIssues function in models/issue.go in Gogs (aka Go Git Service) 0.3.1-9 through 0.5.6.x before 0.5.6.1025 Beta allows remote attackers to execute arbitrary SQL commands via the label parameter to user/repos/issues.

Weakness: CWE-89

Which versions are affected by CVE-2014-8681?

5 open source packages ship an affected version, including github.com/gogits/gogs and gogs.io/gogs. It affects 1 product.

PackageAffectedFixed in
github.com/gogits/gogs GoAll versions0.5.8
github.com/gogits/gogs GoFrom 0.3.10.5.8
github.com/gogits/gogs GoFrom 0.3.10.5.8
gogs.io/gogs GoFrom 0.3.10.5.8
gogs.io/gogs GoFrom 0.3.10.5.8

Products include Gogits Gogs.

How do I fix CVE-2014-8681?

Upgrade github.com/gogits/gogs to 0.5.8 or later.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2014-8681 being exploited?

There is no known exploitation of CVE-2014-8681 in the wild and no public exploit code.

Public exploit code: 1 Exploit-DB entry.

Sources

Also known as GHSA-mr6h-chqp-p9g2, GO-2020-0021.

Is CVE-2014-8681 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free