CVE-2024-39909 (GCVE-0-2024-39909)
Vulnerability from cvelistv5 – Published: 2024-07-12 14:34 – Updated: 2024-08-02 04:33
VLAI?
Title
SQL Injection in the KubeClarity REST API
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.
Severity ?
6.5 (Medium)
CWE
- CWE-89 - Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Assigner
References
| URL | Tags | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
|||||||||||
Impacted products
| Vendor | Product | Version | ||
|---|---|---|---|---|
| openclarity | kubeclarity |
Affected:
< 2.23.1
|
{
"containers": {
"adp": [
{
"affected": [
{
"cpes": [
"cpe:2.3:a:openclarity:kubeclarity:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unknown",
"product": "kubeclarity",
"vendor": "openclarity",
"versions": [
{
"lessThan": "2.23.1",
"status": "affected",
"version": "0",
"versionType": "custom"
}
]
}
],
"metrics": [
{
"other": {
"content": {
"id": "CVE-2024-39909",
"options": [
{
"Exploitation": "poc"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2024-07-12T15:50:47.905358Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2024-07-12T18:04:01.688Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
},
{
"providerMetadata": {
"dateUpdated": "2024-08-02T04:33:11.579Z",
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE"
},
"references": [
{
"name": "https://github.com/openclarity/kubeclarity/security/advisories/GHSA-5248-h45p-9pgw",
"tags": [
"x_refsource_CONFIRM",
"x_transferred"
],
"url": "https://github.com/openclarity/kubeclarity/security/advisories/GHSA-5248-h45p-9pgw"
},
{
"name": "https://github.com/openclarity/kubeclarity/commit/1d1178840703a72d9082b7fc4aea0a3326c5d294",
"tags": [
"x_refsource_MISC",
"x_transferred"
],
"url": "https://github.com/openclarity/kubeclarity/commit/1d1178840703a72d9082b7fc4aea0a3326c5d294"
},
{
"name": "https://github.com/openclarity/kubeclarity/blob/main/backend/pkg/database/id_view.go#L79",
"tags": [
"x_refsource_MISC",
"x_transferred"
],
"url": "https://github.com/openclarity/kubeclarity/blob/main/backend/pkg/database/id_view.go#L79"
}
],
"title": "CVE Program Container"
}
],
"cna": {
"affected": [
{
"product": "kubeclarity",
"vendor": "openclarity",
"versions": [
{
"status": "affected",
"version": "\u003c 2.23.1"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "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."
}
],
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 6.5,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "HIGH",
"integrityImpact": "NONE",
"privilegesRequired": "LOW",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N",
"version": "3.1"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-89",
"description": "CWE-89: Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2024-07-12T14:34:25.230Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/openclarity/kubeclarity/security/advisories/GHSA-5248-h45p-9pgw",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/openclarity/kubeclarity/security/advisories/GHSA-5248-h45p-9pgw"
},
{
"name": "https://github.com/openclarity/kubeclarity/commit/1d1178840703a72d9082b7fc4aea0a3326c5d294",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/openclarity/kubeclarity/commit/1d1178840703a72d9082b7fc4aea0a3326c5d294"
},
{
"name": "https://github.com/openclarity/kubeclarity/blob/main/backend/pkg/database/id_view.go#L79",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/openclarity/kubeclarity/blob/main/backend/pkg/database/id_view.go#L79"
}
],
"source": {
"advisory": "GHSA-5248-h45p-9pgw",
"discovery": "UNKNOWN"
},
"title": "SQL Injection in the KubeClarity REST API"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2024-39909",
"datePublished": "2024-07-12T14:34:25.230Z",
"dateReserved": "2024-07-02T19:37:18.600Z",
"dateUpdated": "2024-08-02T04:33:11.579Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.1",
"vulnerability-lookup:meta": {
"epss": {
"cve": "CVE-2024-39909",
"date": "2026-05-02",
"epss": "0.00145",
"percentile": "0.34555"
},
"fkie_nvd": {
"descriptions": "[{\"lang\": \"en\", \"value\": \"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.\"}, {\"lang\": \"es\", \"value\": \"KubeClarity es una herramienta para la detecci\\u00f3n y gesti\\u00f3n de listas de materiales de software (SBOM) y vulnerabilidades de im\\u00e1genes de contenedores y sistemas de archivos. Una inyecci\\u00f3n SQL booleana/hora est\\u00e1 presente en el siguiente recurso `/api/applicationResources` a trav\\u00e9s del siguiente par\\u00e1metro `packageID`. Como se puede ver en backend/pkg/database/id_view.go, mientras se construye la consulta SQL, la funci\\u00f3n `fmt.Sprintf` se utiliza para construir la cadena de consulta sin que la entrada haya sido sometida primero a ninguna validaci\\u00f3n. Esta vulnerabilidad se solucion\\u00f3 en 2.23.1.\"}]",
"id": "CVE-2024-39909",
"lastModified": "2024-11-21T09:28:32.873",
"metrics": "{\"cvssMetricV31\": [{\"source\": \"security-advisories@github.com\", \"type\": \"Secondary\", \"cvssData\": {\"version\": \"3.1\", \"vectorString\": \"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N\", \"baseScore\": 6.5, \"baseSeverity\": \"MEDIUM\", \"attackVector\": \"NETWORK\", \"attackComplexity\": \"LOW\", \"privilegesRequired\": \"LOW\", \"userInteraction\": \"NONE\", \"scope\": \"UNCHANGED\", \"confidentialityImpact\": \"HIGH\", \"integrityImpact\": \"NONE\", \"availabilityImpact\": \"NONE\"}, \"exploitabilityScore\": 2.8, \"impactScore\": 3.6}]}",
"published": "2024-07-12T15:15:11.393",
"references": "[{\"url\": \"https://github.com/openclarity/kubeclarity/blob/main/backend/pkg/database/id_view.go#L79\", \"source\": \"security-advisories@github.com\"}, {\"url\": \"https://github.com/openclarity/kubeclarity/commit/1d1178840703a72d9082b7fc4aea0a3326c5d294\", \"source\": \"security-advisories@github.com\"}, {\"url\": \"https://github.com/openclarity/kubeclarity/security/advisories/GHSA-5248-h45p-9pgw\", \"source\": \"security-advisories@github.com\"}, {\"url\": \"https://github.com/openclarity/kubeclarity/blob/main/backend/pkg/database/id_view.go#L79\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\"}, {\"url\": \"https://github.com/openclarity/kubeclarity/commit/1d1178840703a72d9082b7fc4aea0a3326c5d294\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\"}, {\"url\": \"https://github.com/openclarity/kubeclarity/security/advisories/GHSA-5248-h45p-9pgw\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\"}]",
"sourceIdentifier": "security-advisories@github.com",
"vulnStatus": "Awaiting Analysis",
"weaknesses": "[{\"source\": \"security-advisories@github.com\", \"type\": \"Secondary\", \"description\": [{\"lang\": \"en\", \"value\": \"CWE-89\"}]}]"
},
"nvd": "{\"cve\":{\"id\":\"CVE-2024-39909\",\"sourceIdentifier\":\"security-advisories@github.com\",\"published\":\"2024-07-12T15:15:11.393\",\"lastModified\":\"2024-11-21T09:28:32.873\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"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.\"},{\"lang\":\"es\",\"value\":\"KubeClarity es una herramienta para la detecci\u00f3n y gesti\u00f3n de listas de materiales de software (SBOM) y vulnerabilidades de im\u00e1genes de contenedores y sistemas de archivos. Una inyecci\u00f3n SQL booleana/hora est\u00e1 presente en el siguiente recurso `/api/applicationResources` a trav\u00e9s del siguiente par\u00e1metro `packageID`. Como se puede ver en backend/pkg/database/id_view.go, mientras se construye la consulta SQL, la funci\u00f3n `fmt.Sprintf` se utiliza para construir la cadena de consulta sin que la entrada haya sido sometida primero a ninguna validaci\u00f3n. Esta vulnerabilidad se solucion\u00f3 en 2.23.1.\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"security-advisories@github.com\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N\",\"baseScore\":6.5,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"NONE\"},\"exploitabilityScore\":2.8,\"impactScore\":3.6}]},\"weaknesses\":[{\"source\":\"security-advisories@github.com\",\"type\":\"Secondary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-89\"}]}],\"references\":[{\"url\":\"https://github.com/openclarity/kubeclarity/blob/main/backend/pkg/database/id_view.go#L79\",\"source\":\"security-advisories@github.com\"},{\"url\":\"https://github.com/openclarity/kubeclarity/commit/1d1178840703a72d9082b7fc4aea0a3326c5d294\",\"source\":\"security-advisories@github.com\"},{\"url\":\"https://github.com/openclarity/kubeclarity/security/advisories/GHSA-5248-h45p-9pgw\",\"source\":\"security-advisories@github.com\"},{\"url\":\"https://github.com/openclarity/kubeclarity/blob/main/backend/pkg/database/id_view.go#L79\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"https://github.com/openclarity/kubeclarity/commit/1d1178840703a72d9082b7fc4aea0a3326c5d294\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"https://github.com/openclarity/kubeclarity/security/advisories/GHSA-5248-h45p-9pgw\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"}]}}",
"vulnrichment": {
"containers": "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://github.com/openclarity/kubeclarity/security/advisories/GHSA-5248-h45p-9pgw\", \"name\": \"https://github.com/openclarity/kubeclarity/security/advisories/GHSA-5248-h45p-9pgw\", \"tags\": [\"x_refsource_CONFIRM\", \"x_transferred\"]}, {\"url\": \"https://github.com/openclarity/kubeclarity/commit/1d1178840703a72d9082b7fc4aea0a3326c5d294\", \"name\": \"https://github.com/openclarity/kubeclarity/commit/1d1178840703a72d9082b7fc4aea0a3326c5d294\", \"tags\": [\"x_refsource_MISC\", \"x_transferred\"]}, {\"url\": \"https://github.com/openclarity/kubeclarity/blob/main/backend/pkg/database/id_view.go#L79\", \"name\": \"https://github.com/openclarity/kubeclarity/blob/main/backend/pkg/database/id_view.go#L79\", \"tags\": [\"x_refsource_MISC\", \"x_transferred\"]}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2024-08-02T04:33:11.579Z\"}}, {\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2024-39909\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"poc\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-07-12T15:50:47.905358Z\"}}}], \"affected\": [{\"cpes\": [\"cpe:2.3:a:openclarity:kubeclarity:*:*:*:*:*:*:*:*\"], \"vendor\": \"openclarity\", \"product\": \"kubeclarity\", \"versions\": [{\"status\": \"affected\", \"version\": \"0\", \"lessThan\": \"2.23.1\", \"versionType\": \"custom\"}], \"defaultStatus\": \"unknown\"}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-07-12T15:57:08.394Z\"}}], \"cna\": {\"title\": \"SQL Injection in the KubeClarity REST API\", \"source\": {\"advisory\": \"GHSA-5248-h45p-9pgw\", \"discovery\": \"UNKNOWN\"}, \"metrics\": [{\"cvssV3_1\": {\"scope\": \"UNCHANGED\", \"version\": \"3.1\", \"baseScore\": 6.5, \"attackVector\": \"NETWORK\", \"baseSeverity\": \"MEDIUM\", \"vectorString\": \"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N\", \"integrityImpact\": \"NONE\", \"userInteraction\": \"NONE\", \"attackComplexity\": \"LOW\", \"availabilityImpact\": \"NONE\", \"privilegesRequired\": \"LOW\", \"confidentialityImpact\": \"HIGH\"}}], \"affected\": [{\"vendor\": \"openclarity\", \"product\": \"kubeclarity\", \"versions\": [{\"status\": \"affected\", \"version\": \"\u003c 2.23.1\"}]}], \"references\": [{\"url\": \"https://github.com/openclarity/kubeclarity/security/advisories/GHSA-5248-h45p-9pgw\", \"name\": \"https://github.com/openclarity/kubeclarity/security/advisories/GHSA-5248-h45p-9pgw\", \"tags\": [\"x_refsource_CONFIRM\"]}, {\"url\": \"https://github.com/openclarity/kubeclarity/commit/1d1178840703a72d9082b7fc4aea0a3326c5d294\", \"name\": \"https://github.com/openclarity/kubeclarity/commit/1d1178840703a72d9082b7fc4aea0a3326c5d294\", \"tags\": [\"x_refsource_MISC\"]}, {\"url\": \"https://github.com/openclarity/kubeclarity/blob/main/backend/pkg/database/id_view.go#L79\", \"name\": \"https://github.com/openclarity/kubeclarity/blob/main/backend/pkg/database/id_view.go#L79\", \"tags\": [\"x_refsource_MISC\"]}], \"descriptions\": [{\"lang\": \"en\", \"value\": \"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.\"}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-89\", \"description\": \"CWE-89: Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)\"}]}], \"providerMetadata\": {\"orgId\": \"a0819718-46f1-4df5-94e2-005712e83aaa\", \"shortName\": \"GitHub_M\", \"dateUpdated\": \"2024-07-12T14:34:25.230Z\"}}}",
"cveMetadata": "{\"cveId\": \"CVE-2024-39909\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2024-08-02T04:33:11.579Z\", \"dateReserved\": \"2024-07-02T19:37:18.600Z\", \"assignerOrgId\": \"a0819718-46f1-4df5-94e2-005712e83aaa\", \"datePublished\": \"2024-07-12T14:34:25.230Z\", \"assignerShortName\": \"GitHub_M\"}",
"dataType": "CVE_RECORD",
"dataVersion": "5.1"
}
}
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…