Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2019-19118

Django 2.1 before 2.1.15 and 2.2 before 2.2.8 allows unintended model editing. A Django model admin displaying inline related models, where the user has view-only permissions to a parent model but edit permissions to the inline model, would be presented with an editing UI, allowing POST requests, for updating the inline model. Directly editing the view-only parent model was not possible, but the parent model's save() method was called, triggering potential side effects, and causing pre and post-save signal handlers to be invoked. (To resolve this, the Django admin is adjusted to require edit permissions on the parent model in order for inline models to be editable.)

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2019-19118
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 05:05 UTC · Revision 1

Source evidence

CVE-2019-19118

core-osv · Original source

Published 2 Dec 2019, 14:15 UTC

Django 2.1 before 2.1.15 and 2.2 before 2.2.8 allows unintended model editing. A Django model admin displaying inline related models, where the user has view-only permissions to a parent model but edit permissions to the inline model, would be presented with an editing UI, allowing POST requests, for updating the inline model. Directly editing the view-only parent model was not possible, but the parent model's save() method was called, triggering potential side effects, and causing pre and post-save signal handlers to be invoked. (To resolve this, the Django admin is adjusted to require edit permissions on the parent model in order for inline models to be editable.)

osv:CVE-2019-19118
Complete source record
{
  "id": "c01322b0d2751b5d9d1932a17a8cdb90939bae363a426626a37d2fc168d4b039",
  "url": "https://osv.dev/vulnerability/CVE-2019-19118",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2019-19118",
    "summary": "Django 2.1 before 2.1.15 and 2.2 before 2.2.8 allows unintended model editing. A Django model admin displaying inline related models, where the user has view-only permissions to a parent model but edit permissions to the inline model, would be presented with an editing UI, allowing POST requests, for updating the inline model. Directly editing the view-only parent model was not possible, but the parent model's save() method was called, triggering potential side effects, and causing pre and post-save signal handlers to be invoked. (To resolve this, the Django admin is adjusted to require edit permissions on the parent model in order for inline models to be editable.)",
    "evidence": "osv:CVE-2019-19118",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2019-19118",
      "aliases": [
        "CVE-2019-19118",
        "GHSA-hvmf-r92r-27hr",
        "PYSEC-2019-15"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/django/django",
              "type": "GIT",
              "events": [
                {
                  "introduced": "df591468251ed489a3e147d7c359f387f4effe66"
                },
                {
                  "fixed": "3baf68b4efc660ff68fd246d2f7092bfd42a7a4a"
                },
                {
                  "introduced": "2a62cdcfec85938f40abb2e9e6a9ff497e02afe8"
                },
                {
                  "fixed": "b8782c52c99175916a1dceaece758608ac5856d0"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.1"
                      },
                      {
                        "fixed": "2.1.15"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.2"
                      },
                      {
                        "fixed": "2.2.8"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-19118.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:24.529979155Z",
      "provider": "osv",
      "references": [
        "https://groups.google.com/forum/#%21topic/django-announce/GjGqDvtNmWQ",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6R4HD22PVEVQ45H2JA2NXH443AYJOPL5/",
        "https://security.gentoo.org/glsa/202004-17",
        "https://security.netapp.com/advisory/ntap-20191217-0003/",
        "https://docs.djangoproject.com/en/dev/releases/security/",
        "https://www.djangoproject.com/weblog/2019/dec/02/security-releases/"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:fedoraproject:fedora:31:*:*:*:*:*:*:*"
            ],
            "vendor_product": "fedoraproject:fedora",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "31"
                  },
                  {
                    "last_affected": "31"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2019-19118",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 431171,
  "published_at": "2019-12-02T14:15:10.88+00:00"
}