CVE-2024-22261 SQL Injection in Harbor scan log API

Low 2.7 Published Updated

Privileged users can exploit SQL injection in the scan log API to leak task IDs in Harbor.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-22261?

CVE-2024-22261 is a low-severity SQL injection vulnerability in Harbor, published on 10 Jun 2024. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

SQL-Injection in Harbor allows priviledge users to leak the task IDs

Weakness: CWE-89, CWE-566

Which versions are affected by CVE-2024-22261?

8 open source packages ship an affected version, including github.com/goharbor/harbor and harbor. It affects 1 product.

PackageAffectedFixed in
github.com/goharbor/harbor GoAll versions2.8.6+incompatible, 2.9.4+incompatible, 2.10.2+incompatible
github.com/goharbor/harbor GoAll versions2.8.6
github.com/goharbor/harbor GoAll versions2.8.6
github.com/goharbor/harbor GoFrom 2.10.02.10.2
github.com/goharbor/harbor GoFrom 2.10.02.10.2
github.com/goharbor/harbor GoFrom 2.9.02.9.4
2 more packages
github.com/goharbor/harbor GoFrom 2.9.02.9.4
harbor BitnamiFrom 2.8.12.8.6, 2.9.4, 2.10.2

Products include Linuxfoundation Harbor.

How do I fix CVE-2024-22261?

Upgrade github.com/goharbor/harbor to a fixed version for your release line: 2.8.6+incompatible, 2.9.4+incompatible, 2.10.2+incompatible or 2.8.6.

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-2024-22261 being exploited?

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

Sources

Also known as BIT-harbor-2024-22261, GHSA-vw63-824v-qf2j, GO-2024-2916.

Is CVE-2024-22261 in your software?

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

Check your SBOMs for free