What’s Vulnerable › Vulnerabilities
CVE-2024-39909: SQL Injection in the KubeClarity REST API
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-07-12 · updated 2026-06-17
- Weakness: CWE-89
Description
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.
Affected products
- openclarity kubeclarity: before 2.23.1 — fixed in 2.23.1
How to fix
Upgrade to a fixed version: openclarity kubeclarity 2.23.1. Check the vendor advisory for mitigations.
References
- https://github.com/openclarity/kubeclarity/blob/main/backend/pkg/database/id_view.go#L79
- https://github.com/openclarity/kubeclarity/commit/1d1178840703a72d9082b7fc4aea0a3326c5d294
- https://github.com/openclarity/kubeclarity/security/advisories/GHSA-5248-h45p-9pgw
- https://github.com/openclarity/kubeclarity/blob/main/backend/pkg/database/id_view.go#L79
- https://github.com/openclarity/kubeclarity/commit/1d1178840703a72d9082b7fc4aea0a3326c5d294
- https://github.com/openclarity/kubeclarity/security/advisories/GHSA-5248-h45p-9pgw
Get alerted when CVE-2024-39909 or the next vulnerability affects your stack