# CVE-2024-39909: SQL Injection in the KubeClarity REST API

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.44%, higher than 40% of CVEs (2026-12-01)
- Published: 2024-07-12T13:56:42.000Z
- Modified: 2026-09-10T03:50:16.243Z
- Also known as: GHSA-5248-h45p-9pgw, GO-2024-2981
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- openclarity kubeclarity: < 2.23.1; before 2.23.1
- github.com/openclarity/kubeclarity/backend (Go): before 0.0.0-20240711173334-1d1178840703

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 6.5 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`

## References

- <https://github.com/openclarity/kubeclarity/security/advisories/GHSA-5248-h45p-9pgw> (web)
- <https://github.com/openclarity/kubeclarity/commit/1d1178840703a72d9082b7fc4aea0a3326c5d294> (web)
- <https://github.com/openclarity/kubeclarity/blob/main/backend/pkg/database/id_view.go#L79> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-39909> (advisory)
- <https://github.com/openclarity/kubeclarity> (package)

## Sources

- CVE List: [CVE-2024-39909](https://www.cve.org/CVERecord?id=CVE-2024-39909), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-5248-h45p-9pgw](https://github.com/advisories/GHSA-5248-h45p-9pgw), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2024-2981](https://pkg.go.dev/vuln/GO-2024-2981), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2024-39909](https://nvd.nist.gov/vuln/detail/CVE-2024-39909), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-39909 · Whole record: https://cve.day/CVE-2024-39909.json · Rebuilt by cve.day 2026-11-25T22:58:42.894Z
