深刻度 緊急
Django bypasses validation when using one form field to upload multiple files
django(ライブラリ)の脆弱性です。深刻度は「緊急」、CVSS は 9.8です。修正版は 3.2.19 です。
- 対象
- django(ライブラリ)
- CVE 番号
- CVE-2023-31047
- 深刻度
- 緊急CVSS 9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- 影響を受けるバージョン
- 3.2a1 以上、3.2.19 未満
- 修正版
- 3.2.19
- 公開日
- 情報の更新日
- 出典
- OSV.dev(GitHub Advisory を含む OSS 脆弱性データベース)
どのような脆弱性ですか
日本語解説は確認中です。
In Django 3.2 before 3.2.19, 4.x before 4.1.9, and 4.2 before 4.2.1, it was possible to bypass validation when using one form field to upload multiple files. This multiple upload has never been supported by forms.FileField or forms.ImageField (only the last uploaded file was validated). However, Dj…(原文の抜粋です。全文は下の参考情報から確認できます)
どう対応すればよいですか
django を、修正版の 3.2.19 以降に更新してください。
更新の前に、サイトのバックアップを取っておくと、不具合が出たときに戻せます。
参考情報
- https://nvd.nist.gov/vuln/detail/CVE-2023-31047(新しいタブで開きます)
- https://github.com/django/django/commit/21b1b1fc03e5f9e9f8c977ee6e35618dd3b353dd(新しいタブで開きます)
- https://github.com/django/django/commit/e7c3a2ccc3a562328600be05068ed9149e12ce64(新しいタブで開きます)
- https://github.com/django/django/commit/eed53d0011622e70b936e203005f0e6f4ac48965(新しいタブで開きます)
- https://docs.djangoproject.com/en/4.2/releases/security(新しいタブで開きます)
- https://github.com/django/django(新しいタブで開きます)
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2023-61.yaml(新しいタブで開きます)
- https://groups.google.com/forum/#!forum/django-announce(新しいタブで開きます)
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/A45VKTUVQ2BN6D5ZLZGCM774R6QGFOHW(新しいタブで開きます)
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DNEHD6N435OE2XUFGDAAVAXSYWLCUBFD(新しいタブで開きます)
django のほかの脆弱性
- Django vulnerable to denial-of-service attack via the urlize() and urlizetrunc() template filters
- Django potential denial of service vulnerability in UsernameField on Windows
- Resource exhaustion in Django
- Django contains Uncontrolled Resource Consumption via cached header
- Django denial-of-service vulnerability in internationalized URLs
あなたのサイトは影響を受けていますか
Cyber Shield Guard は、サイトで使っているプラグインとテーマを脆弱性データベースと毎日突き合わせ、該当があれば通知します。登録したサイトが対象かどうかを確かめられます。