{"id":"CVE-2024-39909","summary":"SQL Injection in the KubeClarity REST API","details":"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.","aliases":["GHSA-5248-h45p-9pgw","GO-2024-2981"],"modified":"2026-04-10T05:15:59.265079Z","published":"2024-07-12T14:34:25.230Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/39xxx/CVE-2024-39909.json","cwe_ids":["CWE-89"],"cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://github.com/openclarity/kubeclarity/blob/main/backend/pkg/database/id_view.go#L79"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/39xxx/CVE-2024-39909.json"},{"type":"ADVISORY","url":"https://github.com/openclarity/kubeclarity/security/advisories/GHSA-5248-h45p-9pgw"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39909"},{"type":"FIX","url":"https://github.com/openclarity/kubeclarity/commit/1d1178840703a72d9082b7fc4aea0a3326c5d294"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/openclarity/kubeclarity","events":[{"introduced":"0"},{"fixed":"1d1178840703a72d9082b7fc4aea0a3326c5d294"}]},{"type":"GIT","repo":"https://github.com/openclarity/kubeclarity","events":[{"introduced":"0"},{"fixed":"1d1178840703a72d9082b7fc4aea0a3326c5d294"}]}],"versions":["1.0.0","1.0.1","1.0.10","1.0.11","1.0.12","1.0.13","1.0.14","1.0.15","1.0.16","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6","1.0.7","1.0.8","1.0.9","api/v2.1.0","backend/v2.1.0","cis_docker_benchmark_scanner/v2.1.0","cli/v2.1.0","kubeclarity-v2.0.0-helm","kubeclarity-v2.1.0-helm","kubeclarity-v2.1.1-helm","kubeclarity-v2.1.2-helm","kubeclarity-v2.10.0-helm","kubeclarity-v2.11.0-helm","kubeclarity-v2.12.0-helm","kubeclarity-v2.12.1-helm","kubeclarity-v2.12.2-helm","kubeclarity-v2.13.0-helm","kubeclarity-v2.14.0-helm","kubeclarity-v2.15.1-helm","kubeclarity-v2.16.0-helm","kubeclarity-v2.17.0-helm","kubeclarity-v2.17.1-helm","kubeclarity-v2.18.0-helm","kubeclarity-v2.18.1-helm","kubeclarity-v2.19.0-helm","kubeclarity-v2.2.0-helm","kubeclarity-v2.20.0-helm","kubeclarity-v2.20.1-helm","kubeclarity-v2.21.0-helm","kubeclarity-v2.21.1-helm","kubeclarity-v2.22.0-helm","kubeclarity-v2.22.1-helm","kubeclarity-v2.23.0-helm","kubeclarity-v2.23.1-helm","kubeclarity-v2.3.0-helm","kubeclarity-v2.4.0-helm","kubeclarity-v2.5.0-helm","kubeclarity-v2.6.0-helm","kubeclarity-v2.7.0-helm","kubeclarity-v2.7.1-helm","kubeclarity-v2.8.0-helm","kubeclarity-v2.9.0-helm","runtime_k8s_scanner/v2.1.0","runtime_scan/api/v2.1.0","runtime_scan/v2.1.0","sbom_db/api/v2.1.0","sbom_db/backend/v2.1.0","shared/v2.1.0","v2.0.0","v2.1.0","v2.1.1","v2.1.2","v2.10.0","v2.11.0","v2.12.0","v2.12.1","v2.12.2","v2.13.0","v2.14.0","v2.15.0","v2.15.1","v2.16.0","v2.17.0","v2.17.1","v2.18.0","v2.18.1","v2.19.0","v2.2.0","v2.20.0","v2.20.1","v2.21.0","v2.21.1","v2.22.0","v2.22.1","v2.23.0","v2.23.1","v2.3.0","v2.4.0","v2.5.0","v2.6.0","v2.7.0","v2.7.1","v2.8.0","v2.9.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-39909.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"}]}