Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. Django
  4. ›
  5. CVE-2014-0474

CVE-2014-0474: Django Vulnerable to MySQL Injection

May 17, 2022 (updated April 13, 2025)

The (1) FilePathField, (2) GenericIPAddressField, and (3) IPAddressField model field classes in Django before 1.4.11, 1.5.x before 1.5.6, 1.6.x before 1.6.3, and 1.7.x before 1.7 beta 2 do not properly perform type conversion, which allows remote attackers to have unspecified impact and vectors, related to “MySQL typecasting.”

References

  • github.com/advisories/GHSA-wqjj-hx84-v449
  • github.com/django/django
  • github.com/django/django/commit/5f0829a27e85d89ad8c433f5c6a7a7d17c9e9292
  • github.com/django/django/commit/985434fb1d6bf2335bf96c6ebf91c3674f1f399f
  • github.com/django/django/commit/aa80f498de6d687e613860933ac58433ab71ea4b
  • github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2014-3.yaml
  • nvd.nist.gov/vuln/detail/CVE-2014-0474
  • www.djangoproject.com/weblog/2014/apr/21/security

Code Behaviors & Features

Detect and mitigate CVE-2014-0474 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.4.11, all versions starting from 1.5 before 1.5.6, all versions starting from 1.6 before 1.6.3

Fixed versions

  • 1.4.11
  • 1.5.6
  • 1.6.3

Solution

Upgrade to versions 1.4.11, 1.5.6, 1.6.3 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

pypi/Django/CVE-2014-0474.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:50 +0000.