{"id":"CVE-2024-39909","published":"2024-07-12T14:34:25Z","modified":"2024-08-02T04:33:11Z","title":"SQL Injection in the KubeClarity REST API","vendor":"openclarity","product":"kubeclarity","tier":"tail","description":{"text":"KubeClarity is a tool for detection and management of Software Bill Of Materials (SBOM) and vulnerabilities of container images and filesystems. A time/boolean SQL Injection is present in the following resource `/api/applicationResources` via the following parameter `packageID`. As it can be seen in backend/pkg/database/id_view.go, while building the SQL Query the `fmt.Sprintf` function is used to build the query string without the input having first been subjected to any validation. This vulnerability is fixed in 2.23.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00443,"percentile":0.39407,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/openclarity/kubeclarity/security/advisories/GHSA-5248-h45p-9pgw","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/openclarity/kubeclarity/commit/1d1178840703a72d9082b7fc4aea0a3326c5d294","tags":["x_refsource_MISC"]},{"url":"https://github.com/openclarity/kubeclarity/blob/main/backend/pkg/database/id_view.go#L79","tags":["x_refsource_MISC"]}],"priority":{"score":12.4,"factors":[{"name":"EPSS percentile","points":7.88},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"openclarity","affectedVersions":[{"vendor":"openclarity","product":"kubeclarity","versions":["< 2.23.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-07-12T15:50:47.905358Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/openclarity/kubeclarity/backend","vulnerableRanges":["<0.0.0-20240711173334-1d1178840703"],"patched":["0.0.0-20240711173334-1d1178840703"],"from":["GHSA-5248-h45p-9pgw","GO-2024-2981"],"provenance":"source"}],"summary":{"text":"A SQL injection flaw in the KubeClarity REST API, in the /api/applicationResources endpoint, is caused by the packageID parameter being concatenated into a SQL query via fmt.Sprintf without any validation. An attacker with network access and low-privileged authentication, requiring no user interaction, can run time-based or boolean SQL injection through packageID to read database contents.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:49:31Z"},"euvd":{"id":"EUVD-2024-2252","exploited":false,"provenance":"source"}}