pyasn1 decoder can be slowed to a crawl by crafted input
A specially crafted small piece of data can make programs that read certain security-related data formats use a lot of processor time. This can slow down or stall the service reading it.
| Severity | HighCVSS 7.5 of 10 |
|---|---|
| Being exploited? | UnclearNo reports either way yet |
| Fix available? | Yespyasn1 0.6.5 · since 30 Oct 2026 |
| How sure is this? | Official, 2 sourcesBacked by an official source |
How the attack works simplified
- 1Attacker sends crafted dataSmall valid input with many colliding long tag IDs
- 2Data reaches the serviceApplication passes bytes to schemaless decoder
- 3Decoder slows downEach insertion compares against earlier colliding tags
- 4CPU is exhaustedRepeated inputs consume processor time
- ResultService becomes slow or unavailable
What happened
In pyasn1 versions 0.3.3 up to 0.6.5, schemaless BER, CER, and DER decoding inserts every component's TagSet into a growing set; attacker-chosen long tag IDs with colliding hashes make each insertion compare against all earlier colliding tags, causing quadratic CPU work.
Are you affected?
You are affected if your application uses pyasn1 0.3.3 or later but below 0.6.5 and passes attacker-controlled bytes to schemaless BER, CER, or DER decoding.
| Package / product | Affected versions | Fixed in |
|---|---|---|
| pyasn1 · pip | >= 0.3.3, < 0.6.5 | 0.6.5 |
What to do
- Upgrade pyasn1 to version 0.6.5 or later (pip install --upgrade pyasn1)
- If upgrading is not possible now, avoid decoding untrusted BER, CER, or DER data without a schema
- Check your dependency lock files to confirm pyasn1 is at 0.6.5 or later
Timeline
- 29 Oct 2026, 20:17 UTCPublicly disclosed
- 29 Oct 2026, 20:17 UTCReported by NVD · NVD
- 29 Oct 2026, 20:21 UTCPicked up by Zero Radar
- 30 Oct 2026, 23:04 UTCGitHub Advisory reported on it · GitHub Advisory
- 30 Oct 2026, 23:04 UTCFixed version published: pyasn1 0.6.5 · GitHub Advisory
Sources 2 reports, oldest first
Official vendor, government CERT or advisory database
- CVE-2026-119194NVD · 29 Oct 2026, 20:17 UTC
- pyasn1 has quadratic CPU use in schemaless BER/CER/DER container decodingGitHub Advisory · 30 Oct 2026, 23:03 UTC
Technical details
- ID
- CVE-2026-119194 · GHSA-fm9c-5rcf-2q5p
- CVSS
- 7.5 / 10
- Disclosed
- 29 Oct 2026, 20:17 UTC
- On Zero Radar
- 29 Oct 2026, 20:21 UTC (4 min after disclosure)
- Last change
- 30 Oct 2026, 23:04 UTC
The plain-language parts and the attack diagram were written by an AI model (anthropic/claude-haiku-5.5) from the sources above. Facts like versions, exploitation and dates come from the sources themselves. How Zero Radar works