CVE-2021-41794
JSON

7.5high

ogsfqdnparse in Open5GS 1.0.0 through 2.3.3 inappropriately trusts a client-supplied length value, leading to a buffer overflow.

Severity
7.5high CVSS:3.1 by NVD
Exploit likelihood
1.22% (higher than 69% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
open5gs open5gsfrom 1.0.0 up to 2.3.3NVD

All scores

NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:N/I:N/A:P

Classification

What each source says

CVE List

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.

NVD (es)

La función ogs_fqdn_parse en Open5GS versiones 1.0.0 hasta 2.3.3 confía inapropiadamente en un valor de longitud proporcionado por el cliente, conllevando a un desbordamiento del búfer. El atacante puede enviar una petición de establecimiento de sesión PFCP con "internet" como instancia de red PDI. El primer carácter es interpretado como un valor de longitud que será usado en una llamada memcpy. El buffer de destino sólo presenta 100 bytes de longitud en la pila. Entonces, "i" es interpretado como 105 bytes para copiar del buffer de origen al de destino

References

Sources

SourceRecordLicence
CVE ListCVE-2021-41794 changed 2024-08-04CVE Terms of Use
NVDCVE-2021-41794 changed 2026-06-17Public domain