Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-35333 — CVE-2026-35333: strongSwan RADIUS attribute iterator infinite loop PoC | Kitploit
Tools/GitHubGitHub/johanneslks/cve-2026-35333
Vulnerability AnalysisExploitationFuzzingNetwork SecurityPenetration Testing
GitHubjohanneslks/cve-2026-35333

CVE-2026-35333

CVE-2026-35333: strongSwan RADIUS attribute iterator infinite loop PoC

View Repository
23 months agoNot yet reviewed
Website

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-35333

strongSwan RADIUS attribute-iterator pre-auth infinite loop / remote DoS.

Description

attribute_enumerate() in src/libradius/radius_message.c:247-271 accepts RADIUS attributes whose length byte is smaller than sizeof(rattr_t) (2). For length == 0:

  • data->len = next->length - sizeof(rattr_t) underflows to (size_t)-2
  • this->left -= next->length is left -= 0 — counter never decreases
  • this->next += next->length is next += 0 — pointer never advances
  • The enumerator returns the same bogus attribute every iteration, hanging the caller's while (enumerate(...)) loop.

    The DAE receive callback in eap_radius_dae.c calls request->verify(..., NULL, secret, ...) before dispatching on the RADIUS code. For code == Access-Request, verify() skips the Response-Authenticator MD5 check and walks the attribute enumerator to find Message-Authenticator — so the zero-length attribute traps the parser before the shared secret is checked. The attack is unauthenticated.

    One UDP packet pegs a charon worker thread at 100% CPU forever. Repeat N times to exhaust all N worker threads.

    Affected: strongSwan <= 5.9.13. Fixed in upstream master commit e067d24293 (2026-04-21).

    Usage

    root@kitploit:~
    python3 poc.py --target <charon-host> --port 3799
    

    Requirements

    • Target: strongSwan charon with eap-radius plugin loaded and dae.enable = yes (UDP/3799 listener)
    • Attacker: network reachability to UDP/3799, Python 3 (stdlib only)

    References

    • https://www.johannes-moeller.dev/blog/cve-2026-35333-strongswan-libradius
    • https://github.com/strongswan/strongswan/commit/e067d24293
    • https://nvd.nist.gov/vuln/detail/CVE-2026-35333

    Legal Notice

    This project is released under the GNU GPLv3.

    It is provided for defensive security research, education, and authorized testing. Do not use this code against systems or services without explicit permission from the owner.

    Unauthorized use may violate applicable law. The authors do not grant permission to test third-party systems and are not responsible for misuse.

    See the LICENSE file for warranty and liability terms.

    Download Tool