CVE-2024-39909 SQL Injection in the KubeClarity REST API
MediumCVSS 6.5
EPSS 0.44%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| openclarity github.com/openclarity/kubeclarity/backend(Go) | < 0.0.0-20240711173334-1d1178840703 | 0.0.0-20240711173334-1d1178840703 | Fixed |
| openclarity kubeclarity | < 2.23.1; = < 2.23.1 | 2.23.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| openclarity github.com/openclarity/kubeclarity/backend(Go) | < 0.0.0-20240711173334-1d1178840703 | 0.0.0-20240711173334-1d1178840703 |
| openclarity kubeclarity | = < 2.23.1 | No fix listed |
| openclarity kubeclarity | < 2.23.1 | 2.23.1 |
References
- https://github.com/openclarity/kubeclarity/security/advisories/GHSA-5248-h45p-9pgw vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/openclarity/kubeclarity/commit/1d1178840703a72d9082b7fc4aea0a3326c5d294 patch
- github.com product
- https://github.com/openclarity/kubeclarity/blob/main/backend/pkg/database/id_view.go#L79
- github.com