Skip to main content
← All vulnerabilities
CVE-2024-39909GO-2024-2981GHSA-5248-H45P-9PGW

SQL Injection in the KubeClarity REST API

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.23.1, 0.0.0-20240711173334-1d1178840703
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • openclarity kubeclarity

    fixed in 2.23.1

  • github.com/openclarity/kubeclarity/backendGo

    fixed in 0.0.0-20240711173334-1d1178840703

References 3

GitHub · openclarity/kubeclarity