{ "dataType": "CVE_RECORD", "dataVersion": "5.1", "cveMetadata": { "cveId": "CVE-2023-28424", "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "state": "PUBLISHED", "assignerShortName": "GitHub_M", "dateReserved": "2023-03-15T15:59:10.046Z", "datePublished": "2023-03-20T12:47:13.250Z", "dateUpdated": "2025-02-25T14:52:46.552Z" }, "containers": { "cna": { "title": "Soko SQL Injection vulnerability", "problemTypes": [ { "descriptions": [ { "cweId": "CWE-89", "lang": "en", "description": "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", "type": "CWE" } ] } ], "metrics": [ { "cvssV3_1": { "attackComplexity": "LOW", "attackVector": "NETWORK", "availabilityImpact": "HIGH", "baseScore": 9.1, "baseSeverity": "CRITICAL", "confidentialityImpact": "NONE", "integrityImpact": "HIGH", "privilegesRequired": "NONE", "scope": "UNCHANGED", "userInteraction": "NONE", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H", "version": "3.1" } } ], "references": [ { "name": "https://github.com/gentoo/soko/security/advisories/GHSA-gc2x-86p3-mxg2", "tags": [ "x_refsource_CONFIRM" ], "url": "https://github.com/gentoo/soko/security/advisories/GHSA-gc2x-86p3-mxg2" }, { "name": "https://gitweb.gentoo.org/sites/soko.git/commit/?id=4fa6e4b619c0362728955b6ec56eab0e0cbf1e23", "tags": [ "x_refsource_MISC" ], "url": "https://gitweb.gentoo.org/sites/soko.git/commit/?id=4fa6e4b619c0362728955b6ec56eab0e0cbf1e23" }, { "name": "https://www.sonarsource.com/blog/why-orms-and-prepared-statements-cant-always-win", "tags": [ "x_refsource_MISC" ], "url": "https://www.sonarsource.com/blog/why-orms-and-prepared-statements-cant-always-win" } ], "affected": [ { "vendor": "gentoo", "product": "soko", "versions": [ { "version": "< 1.0.2", "status": "affected" } ] } ], "providerMetadata": { "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "shortName": "GitHub_M", "dateUpdated": "2024-12-12T20:40:18.902Z" }, "descriptions": [ { "lang": "en", "value": "Soko if the code that powers packages.gentoo.org. Prior to version 1.0.2, the two package search handlers, `Search` and `SearchFeed`, implemented in `pkg/app/handler/packages/search.go`, are affected by a SQL injection via the `q` parameter. As a result, unauthenticated attackers can execute arbitrary SQL queries on `https://packages.gentoo.org/`. It was also demonstrated that primitive was enough to gain code execution in the context of the PostgreSQL container. The issue was addressed in commit `4fa6e4b619c0362728955b6ec56eab0e0cbf1e23y` of version 1.0.2 using prepared statements to interpolate user-controlled data in SQL queries." } ], "source": { "advisory": "GHSA-gc2x-86p3-mxg2", "discovery": "UNKNOWN" } }, "adp": [ { "providerMetadata": { "orgId": "af854a3a-2127-422b-91ae-364da2661108", "shortName": "CVE", "dateUpdated": "2024-08-02T12:38:25.448Z" }, "title": "CVE Program Container", "references": [ { "name": "https://github.com/gentoo/soko/security/advisories/GHSA-gc2x-86p3-mxg2", "tags": [ "x_refsource_CONFIRM", "x_transferred" ], "url": "https://github.com/gentoo/soko/security/advisories/GHSA-gc2x-86p3-mxg2" }, { "name": "https://gitweb.gentoo.org/sites/soko.git/commit/?id=4fa6e4b619c0362728955b6ec56eab0e0cbf1e23", "tags": [ "x_refsource_MISC", "x_transferred" ], "url": "https://gitweb.gentoo.org/sites/soko.git/commit/?id=4fa6e4b619c0362728955b6ec56eab0e0cbf1e23" } ] }, { "metrics": [ { "other": { "type": "ssvc", "content": { "timestamp": "2025-02-25T14:30:22.571444Z", "id": "CVE-2023-28424", "options": [ { "Exploitation": "none" }, { "Automatable": "yes" }, { "Technical Impact": "partial" } ], "role": "CISA Coordinator", "version": "2.0.3" } } } ], "title": "CISA ADP Vulnrichment", "providerMetadata": { "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "shortName": "CISA-ADP", "dateUpdated": "2025-02-25T14:52:46.552Z" } } ] } }