CVE-2023-28424CWE-89

Soko SQL Injection vulnerability

Critical · published March 20, 2023

CVSS v3.1
9.1
EPSS
1%
Percentile
66.6
In the wild
Unconfirmed
What it is

🚨 A sneaky SQL injection lurking in Soko could let attackers run arbitrary queries without breaking a sweat! 🔥 This vulnerability behaves like a careless restaurant where anyone can write their own special order without the chef checking — you've got a recipe for disaster if someone decides to make a mess in the kitchen! An unauthenticated attacker could exploit this flaw to execute arbitrary SQL commands on the Gentoo package repository. This could lead to unauthorized data exposure, manipulation, or even full control over the PostgreSQL container, potentially wreaking havoc on the entire system. Absolutely devastating!

Put simply

This vulnerability behaves like a careless restaurant where anyone can write their own special order without the chef checking — you've got a recipe for disaster if someone decides to make a mess in the kitchen! Prior to version 1.0.2, the Soko package search handlers `Search` and `SearchFeed` were vulnerable to SQL injection through the `q` parameter. This flaw allowed attackers to inject malicious queries directly into the backend, compromising the database's integrity.

What to do

An unauthenticated attacker could exploit this flaw to execute arbitrary SQL commands on the Gentoo package repository. This could lead to unauthorized data exposure, manipulation, or even full control over the PostgreSQL container, potentially wreaking havoc on the entire system. Absolutely devastating! Upgrade to Soko version 1.0.2 or later to patch this vulnerability. Ensure that prepared statements are utilized to safeguard against SQL injection in the future. Regularly audit your code and dependencies for similar weaknesses! You've got this! Follow these steps, and you'll be a security hero in no time! 🦸

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01150 · 66.6th percentile
Weakness
CWE-89 · Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Published
2023-03-20T12:47Z
EPSS history
Timeline
  • 20 MAR 12:47Z
    Soko SQL Injection vulnerability
    cvelistv5