{"id":"BIT-harbor-2024-22261","revision":null,"records":[{"revision":"33c7dd7509fc4142920d1cb0228dee29","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2024-22261","aliases":[],"title":"SQL Injection in Harbor scan log API","description":"SQL-Injection in Harbor allows priviledge users to leak the task IDs","state":0,"publishedAt":"2024-06-10T23:25:32.158+00:00","modifiedAt":"2024-08-01T22:43:34.096+00:00","affected":[{"ecosystem":"Vendor product","name":"Harbor","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"defaultStatus\": \"unaffected\",\n                    \"packageName\": \"Harbor\",\n                    \"product\": \"Harbor\",\n                    \"repo\": \"https://github.com/goharbor\",\n                    \"vendor\": \"Harbor\",\n                    \"versions\": [\n                        {\n                            \"lessThanOrEqual\": \"2.8.5\",\n                            \"status\": \"affected\",\n                            \"version\": \"2.8.1\",\n                            \"versionType\": \"custom\"\n                        },\n                        {\n                            \"lessThanOrEqual\": \"2.9.3\",\n                            \"status\": \"affected\",\n                            \"version\": \"2.9.0\",\n                            \"versionType\": \"custom\"\n                        },\n                        {\n                            \"lessThanOrEqual\": \"2.10.1\",\n                            \"status\": \"affected\",\n                            \"version\": \"2.10.0\",\n                            \"versionType\": \"custom\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N","score":2.7,"severity":"LOW"}],"references":["https://github.com/goharbor/harbor/security/advisories/GHSA-vw63-824v-qf2j"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2024-22261","license":"CVE Program Terms of Use","key":"cve-program:CVE-2024-22261","identifiers":["CVE-2024-22261"]},"retained":false,"historicalAffected":[]},{"revision":"965380ceabc24da49a9b78518d30f5ed","observedAt":"2026-11-25T05:10:04.662+00:00","statement":{"source":"euvd","id":"EUVD-2024-2184","aliases":["CVE-2024-22261","GHSA-vw63-824v-qf2j"],"title":"SQL-Injection in Harbor allows priviledge users to leak the task IDs","description":"SQL-Injection in Harbor allows priviledge users to leak the task IDs","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N","score":2.7,"severity":null}],"references":["https://github.com/goharbor/harbor/security/advisories/GHSA-vw63-824v-qf2j"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-2184","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Jun 10, 2024, 11:25:32 PM","dateUpdated":"Aug 1, 2024, 10:43:34 PM"},"relatedAdvisories":[{"id":"WID-SEC-W-2024-1263","title":"Harbor: Mehrere Schwachstellen","vulnerabilityIds":["CVE-2024-22261","CVE-2024-22244"]}],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2024-2184","identifiers":["EUVD-2024-2184","CVE-2024-22261","GHSA-vw63-824v-qf2j"]},"retained":false,"historicalAffected":[]},{"revision":"1f86b11c3e5e4f049e5926a6d8125096","observedAt":"2026-10-24T23:17:22.571+00:00","statement":{"source":"nvd","id":"CVE-2024-22261","aliases":[],"title":"SQL-Injection in Harbor allows priviledge users to leak the task IDs","description":"SQL-Injection in Harbor allows priviledge users to leak the task IDs","state":0,"publishedAt":"2024-06-11T00:15:13.79+00:00","modifiedAt":"2026-06-17T07:11:03.337+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security@vmware.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N","score":2.7,"severity":"LOW"},{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:L/A:N","score":5.5,"severity":"MEDIUM"}],"references":["https://github.com/goharbor/harbor/security/advisories/GHSA-vw63-824v-qf2j"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2024-22261","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Analyzed","weaknesses":["CWE-566","CWE-89"],"productCriteria":["cpe:2.3:a:linuxfoundation:harbor:*:*:*:*:*:*:*:*"],"sourceDates":{"published":"2024-06-11T00:15:13.790","lastModified":"2026-06-17T07:11:03.337"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2024-22261","identifiers":["CVE-2024-22261"]},"retained":false,"historicalAffected":[]},{"revision":"dab5bf5b3bc44ab2a25b412a08870186","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-vw63-824v-qf2j","aliases":["BIT-harbor-2024-22261","CVE-2024-22261","GO-2024-2916"],"title":"SQL Injection in Harbor scan log API","description":"### Impact\n\nA user with an administrator, project_admin, or project_maintainer role could utilize and exploit SQL Injection to allow the execution of any Postgres function or the extraction of sensitive information from the database through this API:\n```\nGET /api/v2.0/projects/{project_name}/repositories/{repository_name}/artifacts/{reference}/scan/{report_id}/log\n```\nThe SQL injection might happen in the code: \n\nhttps://github.com/goharbor/harbor/blob/9b7c1a2274fbc5ea16e19a484532f86c08926577/src/pkg/task/task.go#L241\n\nBecause raw SQL executed in ormer.Raw(Sql).QueryRows() is PrepareStatement. In the driver of Postgres, one PrepareStatement must contain only ONE SQL command, see https://www.postgresql.org/docs/15/libpq-exec.html#LIBPQ-PQPREPARE.  The SQL should start with:\n```\nSELECT * FROM task WHERE extra_attrs::jsonb->'report_uuids' @>\n```\nAdding a delete/update operation by appending malicious content to the current SQL is impossible. Furthermore, the query result of the task is just an intermediate result, the task ID is used to locate the job log file, and the response only contains the content of the job log file. so this vulnerability can be used to execute SQL functions, but it can't leak any useful information to the response.\n\nHarbor >=v2.8.1, >=2.9.0, >=2.10.0 are impacted.\n\n### Patches\nHarbor v2.8.6, v2.9.4, v2.10.2 fixes this issue.\n\n### Workarounds\nThere is no workaround for this issue.\n\n### Credits\n\nThanks Taisei Inoue ([taisei.inoue@gmo-cybersecurity.com](mailto:taisei.inoue@gmo-cybersecurity.com))","state":0,"publishedAt":"2024-06-02T22:32:40+00:00","modifiedAt":"2026-07-08T06:53:07.7667032+00:00","affected":[{"ecosystem":"Go","name":"github.com/goharbor/harbor","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"2.8.6"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/goharbor/harbor","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"2.9.0"},{"kind":"fixed","version":"2.9.4"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/goharbor/harbor","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"2.10.0"},{"kind":"fixed","version":"2.10.2"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"LOW"}],"references":["https://github.com/goharbor/harbor/security/advisories/GHSA-vw63-824v-qf2j","https://nvd.nist.gov/vuln/detail/CVE-2024-22261","https://github.com/goharbor/harbor","https://pkg.go.dev/vuln/GO-2024-2916"],"sourceUrl":"https://github.com/advisories/GHSA-vw63-824v-qf2j","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-vw63-824v-qf2j","identifiers":["GHSA-vw63-824v-qf2j","BIT-harbor-2024-22261","CVE-2024-22261","GO-2024-2916"]},"retained":false,"historicalAffected":[]},{"revision":"87881fefdfd94b11ba76fdfe9e4e4938","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2024-2916","aliases":["BIT-harbor-2024-22261","CVE-2024-22261","GHSA-vw63-824v-qf2j"],"title":"SQL Injection in Harbor scan log API in github.com/goharbor/harbor","description":"SQL Injection in Harbor scan log API in github.com/goharbor/harbor","state":0,"publishedAt":"2024-06-14T13:41:08+00:00","modifiedAt":"2026-03-03T04:55:27.620474+00:00","affected":[{"ecosystem":"Go","name":"github.com/goharbor/harbor","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"2.8.6+incompatible"},{"kind":"introduced","version":"2.9.0+incompatible"},{"kind":"fixed","version":"2.9.4+incompatible"},{"kind":"introduced","version":"2.10.0+incompatible"},{"kind":"fixed","version":"2.10.2+incompatible"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/goharbor/harbor/security/advisories/GHSA-vw63-824v-qf2j","https://nvd.nist.gov/vuln/detail/CVE-2024-22261"],"sourceUrl":"https://osv.dev/vulnerability/GO-2024-2916","license":"OSV · upstream source license applies","key":"osv:GO-2024-2916","identifiers":["GO-2024-2916","BIT-harbor-2024-22261","CVE-2024-22261","GHSA-vw63-824v-qf2j"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-25T14:28:46.1367144+00:00","complete":true,"records":1795,"lastAttemptAt":"2026-11-25T14:28:46.1367144+00:00","lastSuccessAt":"2026-11-25T14:28:51.9077546+00:00","error":null,"lastVerifiedAt":"2026-11-25T14:28:51.9080982+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-8d356adab43082cb10bb7c033ed58312cf2ad2f0fb10e0afdf27fc89fa361f3b-c8a5bbe81e5c97f1ef0204d9f424811c3ab0e015216b17be9cd9061ec365cc09","complete":true,"records":432153,"lastAttemptAt":"2026-11-25T15:28:37.3830721+00:00","lastSuccessAt":"2026-11-25T15:28:37.2582332+00:00","error":null,"lastVerifiedAt":"2026-11-25T15:28:37.3830721+00:00","snapshotPublishedAt":"2026-11-25T14:30:07+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-20a49458ceae49e394c48dea1e375753","complete":false,"records":13938,"lastAttemptAt":"2026-11-25T14:34:23.2072341+00:00","lastSuccessAt":"2026-11-25T14:34:23.203+00:00","error":"120 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-25T14:34:23.203+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13664,"expectedIdentifiers":13986,"failedIdentifiers":120},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-25T14:28:46.1367144+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-25T14:28:46.1367144+00:00","lastSuccessAt":"2026-11-25T14:28:52.1107389+00:00","error":null,"lastVerifiedAt":"2026-11-25T14:28:52.1107403+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-0706f4f26289468d8444f9f1b50f35d8","complete":true,"records":13950,"lastAttemptAt":"2026-11-25T14:29:34.8783794+00:00","lastSuccessAt":"2026-11-25T14:29:34.81+00:00","error":null,"lastVerifiedAt":"2026-11-25T14:29:34.81+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13986,"expectedIdentifiers":13986,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-70b1e3058f76fab20c77bb1c4924a4c57f7654dd208befb5b1f237e682d6ddca","complete":true,"records":10077,"lastAttemptAt":"2026-11-25T14:28:43.5224151+00:00","lastSuccessAt":"2026-11-25T11:46:59.5507764+00:00","error":null,"lastVerifiedAt":"2026-11-25T14:28:43.5224151+00:00","snapshotPublishedAt":"2026-11-25T11:03:15+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-6ba2352decd0c95d34a1b50f642582aa34659ce946f552488f0a5cea4e0cc09a","complete":true,"records":2020,"lastAttemptAt":"2026-11-25T15:28:37.4627555+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-25T15:28:37.4627555+00:00","snapshotPublishedAt":"2026-11-20T14:48:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-5be533520b83c9bfaebc80695093f6f0d59feafc2a1eab94e91dd79d1bb9241b","complete":true,"records":3222,"lastAttemptAt":"2026-11-25T14:28:43.9301039+00:00","lastSuccessAt":"2026-11-25T11:47:03.6026853+00:00","error":null,"lastVerifiedAt":"2026-11-25T14:28:43.9301039+00:00","snapshotPublishedAt":"2026-11-25T11:18:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-13386314c41bf037eb8784b89525b249650641e645a6e70d1fe37f29e9ef714c","complete":true,"records":233128,"lastAttemptAt":"2026-11-25T15:28:44.4217768+00:00","lastSuccessAt":"2026-11-25T13:47:03.1039798+00:00","error":null,"lastVerifiedAt":"2026-11-25T14:28:43.327083+00:00","snapshotPublishedAt":"2026-11-25T13:33:45+00:00","importing":true,"stagedRecords":195500,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}