CVE-2022-34265

An issue was discovered in Django 3.2 before 3.2.14 and 4.0 before 4.0.6

published July 4, 2022

Patch now

High probability of exploitation

NVD has not assigned a CVSS score to this record. It sits in the 99.5th percentile for exploit probability.

CVSS
—
EPSS
74%
Percentile
99.5
In the wild
Unconfirmed
What it is

⚠️ Heads up, Django developers! A sneaky SQL injection vulnerability lurks in the Trunc() and Extract() functions before versions 3.2.14 and 4.0.6! 🔍 Think of it like a restaurant that lets diners specify any dish without vetting their choices first. If someone orders a 'secret ingredient' that shouldn’t be on the menu, it could lead to some disastrous outcomes! An attacker could exploit this vulnerability by injecting malicious SQL code through untrusted or user-supplied data, potentially compromising your database. This could allow unauthorized access to sensitive information or even alter data, creating a chaotic kitchen scenario.

Put simply

Think of it like a restaurant that lets diners specify any dish without vetting their choices first. If someone orders a 'secret ingredient' that shouldn’t be on the menu, it could lead to some disastrous outcomes! This SQL injection vulnerability occurs when the Trunc() and Extract() functions in Django accept untrusted input as kind/lookup_name values without proper validation, allowing attackers to manipulate queries.

What to do

An attacker could exploit this vulnerability by injecting malicious SQL code through untrusted or user-supplied data, potentially compromising your database. This could allow unauthorized access to sensitive information or even alter data, creating a chaotic kitchen scenario. To protect your application, make sure to update Django to version 3.2.14 or 4.0.6. Additionally, validate and restrict any kind/lookup_name inputs to a predefined, safe list to ensure security against injections. 🛡️ You've got this! Following these steps will secure your application and keep your database safe. 🚀

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.73607 · 99.5th percentile
Published
2022-07-04T00:00Z
EPSS history
Timeline
  • 04 JUL 00:00Z
    An issue was discovered in Django 3.2 before 3.2.14 and 4.0 before 4.0.6
    cvelistv5