Skip to content

Security

iperf3-lib loads the system libiperf; it does not bundle or patch the native library. Use patched libiperf 3.22 or newer and follow upstream iperf security releases. The 3.19.1 minimum is a compatibility baseline tested in CI, not a security recommendation. Upstream versions >=3.14,<3.22, including unpatched 3.19.1, are affected by the UDP receive-worker denial of service CVE-2026-102253. Version 3.22 fixes this and other native security issues. Distributors may backport fixes; check their advisories for the exact installed build. Upgrading the Python package does not apply native fixes. Linux is the tested platform; see compatibility.

Report privately

Use the repository's Security → Report a vulnerability to report a suspected vulnerability. If private reporting is unavailable, request a private channel through the maintainer's GitHub profile. Include affected versions, a minimal reproduction, and impact where possible. Keep exploit details, credentials, and private network information out of public issues.

The repository security policy defines supported versions and the reporting process. Upstream native-library issues should also be reported to ESnet.

Operational boundary

Benchmarks generate network traffic. Applications choose the target, duration, protocol, and stream count; the wrapper does not authorize targets or provide enforced network traffic limits. Native output can contain host addresses and test metadata. Review what you retain or publish in metrics and reports.

Serialize basic direct native calls within one process. Async methods, expanded controls and explicit timeouts use isolated workers. In 0.4.0 and later, cancelling arun() or aserve_once() requests worker termination and waits for cleanup and any active callback. Unconfirmed cleanup raises IperfCleanupError; the library retains ownership of the worker. Cancelling an application-owned executor wrapper around a synchronous call does not stop its operation. See execution limits.

On Linux, library-launched workers install a parent-death signal before native execution. Parent death kills that worker and releases its OS resources; final reaping belongs to init or a subreaper. This is a worker lifetime mechanism, not a sandbox for native code or a supervisor for arbitrary descendants. See worker lifetime for startup and platform boundaries.