CVE-2021-41794 Memory corruption in n/a
A buffer overflow in Open5GS allows remote attackers to execute arbitrary code or cause a denial of service via a crafted PFCP request.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2021-41794?
CVE-2021-41794 is a high-severity memory corruption vulnerability in Open5gs Open5gs, published on 7 Oct 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
ogs_fqdn_parse in Open5GS 1.0.0 through 2.3.3 inappropriately trusts a client-supplied length value, leading to a buffer overflow. The attacker can send a PFCP Session Establishment Request with "internet" as the PDI Network Instance. The first character is interpreted as a length value to be used in a memcpy call. The destination buffer is only 100 bytes long on the stack. Then, 'i' gets interpreted as 105 bytes to copy from the source buffer to the destination buffer.
Weakness: CWE-120
Which versions are affected by CVE-2021-41794?
It affects 1 product.
Products include Open5gs Open5gs.
How do I fix CVE-2021-41794?
No fix has been published for CVE-2021-41794 yet. Limit exposure of the affected software until one is available.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2021-41794 being exploited?
There is no known exploitation of CVE-2021-41794 in the wild and no public exploit code.
Other vulnerabilities in Open5gs Open5gs
Sources
Also known as GHSA-mv7p-ffm6-58w7.