Security mailing lists by PureSourceCode

PYSEC-2019-83

not scored yetwithdrawn / rejected

An issue was discovered in Django 1.11.x before 1.11.23, 2.1.x before 2.1.11, and 2.2.x before 2.2.4. Due to an error in shallow key transformation, key and index lookups for django.contrib.postgres.fields.JSONField, and key lookups for django.contrib.postgres.fields.HStoreField, were subject to SQL injection. This could, for example, be exploited via crafted use of "OR 1=1" in a key or index name to return all records, using a suitably crafted dictionary, with dictionary expansion, as the **kwargs passed to the QuerySet.filter() function.

Published
9 Aug 2019
Last modified
14 Mar 2023
Sources
OSVJSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV PyPI django >= 2.1, < 2.1.11; >= 1.11, < 1.11.23; >= 2.2, < 2.2.4 2.1.11, 1.11.23, 2.2.4

References

History

  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 9 Aug 2019)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.