| Summary | Pydantic is a data validation and settings management using Python type hinting. In affected versions passing either `'infinity'`, `'inf'` or `float('inf')` (or their negatives) to `datetime` or `date` fields causes validation to run forever with 100% CPU usage (on one CPU). Pydantic has been patched with fixes available in the following versions: v1.8.2, v1.7.4, v1.6.2. All these versions are available on pypi(https://pypi.org/project/pydantic/#history), and will be available on conda-forge(https://anaconda.org/conda-forge/pydantic) soon. See the changelog(https://pydantic-docs.helpmanual.io/) for details. If you absolutely can't upgrade, you can work around this risk using a validator(https://pydantic-docs.helpmanual.io/usage/validators/) to catch these values. This is not an ideal solution (in particular you'll need a slightly different function for datetimes), instead of a hack like this you should upgrade pydantic. If you are not using v1.8.x, v1.7.x or v1.6.x and are unable to upgrade to a fixed version of pydantic, please create an issue at https://github.com/samuelcolvin/pydantic/issues requesting a back-port, and we will endeavour to release a patch for earlier versions of pydantic. |
|---|---|
| Publication Date | May 14, 2021, 4:15 a.m. |
| Registration Date | May 14, 2021, 10 a.m. |
| Last Update | Nov. 21, 2024, 3:01 p.m. |
| CVSS3.1 : HIGH | |
| スコア | 7.5 |
|---|---|
| Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| 攻撃元区分(AV) | ネットワーク |
| 攻撃条件の複雑さ(AC) | 低 |
| 攻撃に必要な特権レベル(PR) | 不要 |
| 利用者の関与(UI) | 不要 |
| 影響の想定範囲(S) | 変更なし |
| 機密性への影響(C) | なし |
| 完全性への影響(I) | なし |
| 可用性への影響(A) | 高 |
| CVSS2.0 : MEDIUM | |
| Score | 5.0 |
|---|---|
| Vector | AV:N/AC:L/Au:N/C:N/I:N/A:P |
| 攻撃元区分(AV) | ネットワーク |
| 攻撃条件の複雑さ(AC) | 低 |
| 攻撃前の認証要否(Au) | 不要 |
| 機密性への影響(C) | なし |
| 完全性への影響(I) | なし |
| 可用性への影響(A) | 低 |
| Get all privileges. | いいえ |
| Get user privileges | いいえ |
| Get other privileges | いいえ |
| User operation required | いいえ |
| Configuration1 | or higher | or less | more than | less than | |
| cpe:2.3:a:pydantic_project:pydantic:*:*:*:*:*:*:*:* | 1.8 | 1.8.2 | |||
| cpe:2.3:a:pydantic_project:pydantic:*:*:*:*:*:*:*:* | 1.7 | 1.7.4 | |||
| cpe:2.3:a:pydantic_project:pydantic:*:*:*:*:*:*:*:* | 1.6.2 | ||||
| Configuration2 | or higher | or less | more than | less than | |
| cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:* | |||||
| cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* | |||||
| Title | Pydantic における無限ループに関する脆弱性 |
|---|---|
| Summary | Pydantic には、無限ループに関する脆弱性が存在します。 |
| Possible impacts | サービス運用妨害 (DoS) 状態にされる可能性があります。 |
| Solution | ベンダより正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。 |
| Publication Date | May 12, 2021, midnight |
| Registration Date | Feb. 3, 2022, 12:30 p.m. |
| Last Update | Feb. 3, 2022, 12:30 p.m. |
| pydantic project |
| Pydantic 1.6.2 未満 |
| Pydantic 1.7.4 未満 |
| Pydantic 1.8.2 未満 |
| Fedora Project |
| Fedora |
| No | Changed Details | Date of change |
|---|---|---|
| 1 | [2022年02月03日] 掲載 |
Feb. 3, 2022, 12:30 p.m. |