CVE-2022-25304
High · 7.5CVSS
7.5
EPSS
1.6%
Published
Aug 23, 2022
CISA due date
—
Cloudanix analysis
Software used to let industrial machines talk to each other can be overwhelmed by an attacker sending too much data at once, causing those machines to stop working.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Trivial
- Impact
- Denial Of Service
- Component
- Library
- Class
- Denial of service
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The vulnerability permits an attacker to exhaust server resources by sending an unlimited number of large message chunks without the final closing chunk, either per session or across concurrent sessions.
Why it matters to the business
Disruption of industrial control and automation systems that rely on these libraries can lead to operational downtime, halted manufacturing processes, and potential safety issues in critical infrastructure environments.
How an attack unfolds
An attacker connects to an OPC UA endpoint, opens one or more sessions, and floods the server with oversized chunks without ever sending the final chunk, causing unbounded memory or CPU consumption until the service becomes unresponsive.
How to fix it
Upgrade the opcua and asyncua packages to versions that enforce chunk limits as soon as such releases become available; in the interim apply network-level rate limiting and segmentation for OPC UA traffic.
How to confirm the fix worked
Inspect installed package versions against vendor advisories, review server configuration for any added chunk-size or session limits, and perform controlled testing to confirm that incomplete chunk streams are rejected or throttled.
Typical attack path
- Connect to a vulnerable OPC UA server endpoint
- Initiate one or more sessions
- Transmit repeated large chunks (for example 2 GB each) without the final chunk
- Continue the pattern across sessions until resource exhaustion occurs
How to detect it
Examine OPC UA server logs for unusually high volumes of incomplete or oversized message chunks, repeated session initiations without message completion, and sudden spikes in memory or CPU usage tied to the OPC UA process.
What your security team should do
- Track upstream releases for fixed versions of opcua and asyncua and deploy them promptly
- Place OPC UA endpoints behind network controls that limit connection rates and message sizes
- Monitor for signs of resource exhaustion on servers hosting these libraries
The record
All versions of package opcua; all versions of package asyncua are vulnerable to Denial of Service (DoS) due to a missing limitation on the number of received chunks - per single session or in total for all concurrent sessions. An attacker can exploit this vulnerability by sending an unlimited number of huge chunks (e.g. 2GB each) without sending the Final closing chunk.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| PyPI | asyncua | 0 | 0.9.96 |
| PyPI | opcua | 0 | No fix |
| Debian:11 | python-opcua | 0 | No fix |
| Ubuntu:18.04:LTS | python-opcua | 0 | No fix |
| Ubuntu:20.04:LTS | python-opcua | 0 | No fix |
| Ubuntu:22.04:LTS | python-opcua | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | python-opcua | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | python-opcua | 0 | No fix |
| pypi | opcua | 0 | No fix |
Related vulnerabilities
- CVE-2026-114731 Roundcube Webmail before 1.6.20 and 1.7.x before 1.7.5 is affected by an uncontrolled… CWE-770
- CVE-2026-96377 Allocation of Resources Without Limits or Throttling vulnerability in Drupal Combined… CWE-770
- CVE-2026-96365 Allocation of Resources Without Limits or Throttling vulnerability in Drupal Webform… CWE-770
- CVE-2026-114723 Roundcube Webmail before 1.6.20 and 1.7.x before 1.7.5 allows the ImageMagick resource… CWE-770
- CVE-2026-113811 Algorithm::UrataniTakeda versions from 0.1.5 before 0.1.7 for Perl allow memory… CWE-770
- CVE-2026-113795 pypdf is a free and open-source pure-python PDF library. CWE-770
- CVE-2026-112400 Pillow is a Python imaging library. CWE-770
- CVE-2026-111064 AIOHTTP is an asynchronous HTTP client/server framework for asyncio and Python. CWE-770