Описание
pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.5, binary REAL decoding builds a large mantissa one octet at a time by shifting a growing integer and slicing the remaining byte string. Attacker-controlled ASN.1 includes a binary-encoded REAL with a large mantissa and reaches BER, CER, or DER decode(), with or without a schema containing REAL. RealPayloadDecoder.valueDecoder repeatedly performs a left shift, OR, and suffix copy for every mantissa octet, making decode time quadratic in mantissa length. A comparatively small REAL value can hold a decoding worker on one CPU core for seconds or longer and cause availability loss. This issue is fixed in version 0.6.5.
A flaw was found in pyasn1. A remote attacker can exploit this vulnerability by submitting specially crafted Abstract Syntax Notation One (ASN.1) data containing a binary-encoded floating-point (REAL) value with a large mantissa. Processing this input leads to quadratic decoding time and excessive CPU consumption, resulting in a Denial of Service (DoS).
Отчет
This vulnerability is rated as Important because unauthenticated remote attackers can cause significant denial of service via CPU starvation in network services that parse untrusted ASN.1 data. While the pyasn1 library is widely packaged across Red Hat Enterprise Linux and containerized application stacks, practical risk requires that an exposed application accepts external input and processes binary-encoded floating-point definitions without schema restrictions. Services handling such untrusted input synchronously within worker threads are primarily vulnerable to CPU exhaustion and availability degradation.
Меры по смягчению последствий
--- CME Mitigation Guidance (2026-11-03) --- Disclaimer: The following mitigation solutions are provided as a courtesy, pending the application of an official patch. This content was generated utilizing AI tools in conjunction with data from https://cmetaxonomy.org. Customers are advised to independently evaluate and test these temporary mitigations within their own infrastructure. The highest-value action is to eliminate iterative per-octet bit-shifting and byte slicing in pyasn1 binary REAL mantissa decoding in favor of linear-time integer conversion: upgrade to pyasn1 0.6.5 (or the corresponding fixed Red Hat builds), which replace the iterative per-octet shifting, bitwise OR, and byte slicing loop with a single linear-time int.from_bytes call, closing crafted ASN.1 payload containing binary-encoded REAL with a large mantissa. Until patched, this is a concern on Applications parsing untrusted ASN.1 input with pyasn1 BER, CER, or DER decoding, so Reject or strictly enforce size limits on untrusted ASN.1 inputs that may contain REAL values. As a compensating measure, Enforce RLIMIT_CPU limits on decoding processes using ulimit or prlimit to terminate workers trapped in quadratic bit-shifting and slicing loops, Impose parsing timeouts or computational limits on decoding operations to bound worker hang time from quadratic mantissa processing, and Throttle client request volume and connections to impede sustained CPU starvation across worker threads. These controls limit blast radius and contain exploitation, but they do not fix the underlying quadratic complexity defect — apply the upstream patch to fully remediate. Highest-impact CME: CME-114 Process Resource Limits (ulimit/prlimit) (medium)
Затронутые пакеты
| Платформа | Пакет | Состояние | Рекомендация | Релиз |
|---|---|---|---|---|
| Ansible Automation Orchestrator 2026 | ansible-automation-platform/automation-orchestrator-backend-rhel9 | Affected | ||
| Exploit Intelligence | exploit-intelligence/vulnerability-analysis-rhel9 | Affected | ||
| Fence Agents Remediation Operator | workload-availability/fence-agents-remediation-rhel9-operator | Affected | ||
| Lightspeed Core | lightspeed-core/lightspeed-stack-rhel9 | Affected | ||
| Migration Toolkit for Applications 8 | mta/mta-rhel9-operator | Under investigation | ||
| Migration Toolkit for Applications 8 | mta/mta-solution-server-rhel9 | Under investigation | ||
| Migration Toolkit for Containers | rhmtc/openshift-migration-rhel8-operator | Affected | ||
| Migration Toolkit for Virtualization | migration-toolkit-virtualization/mtv-rhel9-operator | Affected | ||
| OpenShift Lightspeed | openshift-lightspeed/lightspeed-agentic-sandbox-rhel9 | Affected | ||
| OpenShift Lightspeed | openshift-lightspeed/lightspeed-service-api-rhel9 | Affected |
Показывать по
Ссылки на источники
Дополнительная информация
Статус:
EPSS
7.5 High
CVSS3
Связанные уязвимости
pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.5, binary REAL decoding builds a large mantissa one octet at a time by shifting a growing integer and slicing the remaining byte string. Attacker-controlled ASN.1 includes a binary-encoded REAL with a large mantissa and reaches BER, CER, or DER decode(), with or without a schema containing REAL. RealPayloadDecoder.valueDecoder repeatedly performs a left shift, OR, and suffix copy for every mantissa octet, making decode time quadratic in mantissa length. A comparatively small REAL value can hold a decoding worker on one CPU core for seconds or longer and cause availability loss. This issue is fixed in version 0.6.5.
pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.5, binary REAL decoding builds a large mantissa one octet at a time by shifting a growing integer and slicing the remaining byte string. Attacker-controlled ASN.1 includes a binary-encoded REAL with a large mantissa and reaches BER, CER, or DER decode(), with or without a schema containing REAL. RealPayloadDecoder.valueDecoder repeatedly performs a left shift, OR, and suffix copy for every mantissa octet, making decode time quadratic in mantissa length. A comparatively small REAL value can hold a decoding worker on one CPU core for seconds or longer and cause availability loss. This issue is fixed in version 0.6.5.
pyasn1: Quadratic-complexity denial of service in binary REAL decoding
pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.5, binary R ...
pyasn1 has quadratic-complexity denial of service in binary REAL decoding
EPSS
7.5 High
CVSS3