Lucene search

K
archlinuxArchLinuxASA-202105-24
HistoryMay 25, 2021 - 12:00 a.m.

[ASA-202105-24] python-pydantic: denial of service

2021-05-2500:00:00
security.archlinux.org
206
python-pydantic
denial of service
vulnerability

CVSS2

5

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:N/I:N/A:P

CVSS3

7.5

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

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

EPSS

0.002

Percentile

54.8%

Arch Linux Security Advisory ASA-202105-24

Severity: Medium
Date : 2021-05-25
CVE-ID : CVE-2021-29510
Package : python-pydantic
Type : denial of service
Remote : Yes
Link : https://security.archlinux.org/AVG-1951

Summary

The package python-pydantic before version 1.8.2-1 is vulnerable to
denial of service.

Resolution

Upgrade to 1.8.2-1.

pacman -Syu “python-pydantic>=1.8.2-1”

The problem has been fixed upstream in version 1.8.2.

Workaround

None.

Description

A security issue has been found in pydantic before version 1.8.2.
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).

Impact

An attacker could cause high CPU usage using invalid datetime or date
fields, leading to denial of service.

References

https://github.com/samuelcolvin/pydantic/security/advisories/GHSA-5jqp-qgf6-3pvh
https://github.com/samuelcolvin/pydantic/commit/1c24f1d74ba95ea985b50bdc001ce96c813229aa
https://security.archlinux.org/CVE-2021-29510

OSVersionArchitecturePackageVersionFilename
ArchLinuxanyanypython-pydantic< 1.8.2-1UNKNOWN

CVSS2

5

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:N/I:N/A:P

CVSS3

7.5

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

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

EPSS

0.002

Percentile

54.8%