CVE-2021-41794

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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:open5gs:open5gs:*:*:*:*:*:*:*:*

History

15 Oct 2021, 13:26

Type Values Removed Values Added
CPE cpe:2.3:a:open5gs:open5gs:*:*:*:*:*:*:*:*
CVSS v2 : unknown
v3 : unknown
v2 : 5.0
v3 : 7.5
CWE CWE-120
References (MISC) https://research.nccgroup.com/2021/10/06/technical-advisory-open5gs-stack-buffer-overflow-during-pfcp-session-establishment-on-upf-cve-2021-41794 - (MISC) https://research.nccgroup.com/2021/10/06/technical-advisory-open5gs-stack-buffer-overflow-during-pfcp-session-establishment-on-upf-cve-2021-41794 - Exploit, Third Party Advisory

07 Oct 2021, 15:15

Type Values Removed Values Added
New CVE

Information

Published : 2021-10-07 15:15

Updated : 2023-12-10 14:09


NVD link : CVE-2021-41794

Mitre link : CVE-2021-41794

CVE.ORG link : CVE-2021-41794


JSON object : View

Products Affected

open5gs

  • open5gs
CWE
CWE-120

Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')