CVE-2024-24806

See a problem?
Source
https://nvd.nist.gov/vuln/detail/CVE-2024-24806
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-24806.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-24806
Aliases
  • GHSA-f74f-cvh7-c6q6
Related
Published
2024-02-07T22:15:10Z
Modified
2024-08-01T04:59:05.438046Z
Severity
  • 7.3 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L CVSS Calculator
Summary
[none]
Details

libuv is a multi-platform support library with a focus on asynchronous I/O. The uv_getaddrinfo function in src/unix/getaddrinfo.c (and its windows counterpart src/win/getaddrinfo.c), truncates hostnames to 256 characters before calling getaddrinfo. This behavior can be exploited to create addresses like 0x00007f000001, which are considered valid by getaddrinfo and could allow an attacker to craft payloads that resolve to unintended IP addresses, bypassing developer checks. The vulnerability arises due to how the hostname_ascii variable (with a length of 256 bytes) is handled in uv_getaddrinfo and subsequently in uv__idna_toascii. When the hostname exceeds 256 characters, it gets truncated without a terminating null byte. As a result attackers may be able to access internal APIs or for websites (similar to MySpace) that allows users to have username.example.com pages. Internal services that crawl or cache these user pages can be exposed to SSRF attacks if a malicious user chooses a long vulnerable username. This issue has been addressed in release version 1.48.0. Users are advised to upgrade. There are no known workarounds for this vulnerability.

References

Affected packages

Alpine:v3.20 / libuv

Package

Name
libuv
Purl
pkg:apk/alpine/libuv?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.48.0-r0

Affected versions

0.*

0.10.25-r0
0.10.27-r0
0.10.28-r0
0.10.29-r0

1.*

1.4.2-r0
1.5.0-r0
1.6.1-r0
1.7.0-r0
1.7.3-r0
1.7.4-r0
1.7.5-r0
1.8.0-r0
1.9.0-r0
1.9.1-r0
1.10.1-r0
1.10.2-r0
1.11.0-r0
1.11.0-r1
1.13.1-r0
1.14.0-r0
1.14.0-r1
1.14.1-r0
1.15.0-r0
1.17.0-r0
1.18.0-r0
1.19.1-r0
1.19.2-r0
1.20.2-r0
1.21.0-r0
1.22.0-r0
1.23.2-r0
1.25.0-r0
1.26.0-r0
1.28.0-r0
1.29.1-r0
1.30.1-r0
1.31.0-r0
1.32.0-r0
1.33.1-r0
1.33.1-r1
1.34.0-r0
1.34.1-r0
1.34.2-r0
1.35.0-r0
1.36.0-r0
1.37.0-r0
1.39.0-r0
1.40.0-r0
1.40.0-r1
1.41.0-r0
1.41.1-r0
1.42.0-r0
1.43.0-r0
1.43.0-r1
1.44.0-r0
1.44.1-r0
1.44.2-r0
1.44.2-r1
1.44.2-r2
1.44.2-r3
1.45.0-r0
1.46.0-r0
1.47.0-r0

Git / github.com/libuv/libuv

Affected ranges

Type
GIT
Repo
https://github.com/libuv/libuv
Events

Affected versions

node-v0.*

node-v0.10.0
node-v0.10.1
node-v0.11.0
node-v0.5.1
node-v0.5.10
node-v0.5.2
node-v0.5.4
node-v0.5.6
node-v0.5.7
node-v0.5.8
node-v0.5.9
node-v0.6.0
node-v0.6.1
node-v0.6.10
node-v0.6.11
node-v0.6.12
node-v0.6.13
node-v0.6.14
node-v0.6.15
node-v0.6.16
node-v0.6.17
node-v0.6.2
node-v0.6.3
node-v0.6.4
node-v0.6.5
node-v0.6.6
node-v0.6.7
node-v0.6.8
node-v0.6.9
node-v0.7.0
node-v0.7.1
node-v0.7.10
node-v0.7.11
node-v0.7.12
node-v0.7.2
node-v0.7.4
node-v0.7.6
node-v0.8.1
node-v0.8.10
node-v0.8.11
node-v0.8.12
node-v0.8.13
node-v0.8.14
node-v0.8.15
node-v0.8.16
node-v0.8.17
node-v0.8.18
node-v0.8.2
node-v0.8.3
node-v0.8.4
node-v0.8.5
node-v0.8.6
node-v0.8.7
node-v0.8.8
node-v0.8.9
node-v0.9.0
node-v0.9.1
node-v0.9.10
node-v0.9.11
node-v0.9.12
node-v0.9.2
node-v0.9.3
node-v0.9.4
node-v0.9.5
node-v0.9.6
node-v0.9.7
node-v0.9.8
node-v0.9.9

v0.*

v0.10.10
v0.10.11
v0.10.12
v0.10.13
v0.10.14
v0.10.15
v0.10.16
v0.10.17
v0.10.18
v0.10.19
v0.10.2
v0.10.20
v0.10.21
v0.10.22
v0.10.23
v0.10.24
v0.10.25
v0.10.26
v0.10.27
v0.10.28
v0.10.29
v0.10.3
v0.10.30
v0.10.31
v0.10.32
v0.10.33
v0.10.4
v0.10.5
v0.10.6
v0.10.7
v0.10.8
v0.10.9
v0.11.1
v0.11.10
v0.11.11
v0.11.12
v0.11.13
v0.11.14
v0.11.15
v0.11.16
v0.11.17
v0.11.18
v0.11.19
v0.11.2
v0.11.20
v0.11.21
v0.11.22
v0.11.23
v0.11.24
v0.11.25
v0.11.26
v0.11.27
v0.11.28
v0.11.29
v0.11.3
v0.11.4
v0.11.5
v0.11.6
v0.11.7
v0.11.8
v0.11.9

v1.*

v1.0.0
v1.0.0-rc1
v1.0.0-rc2
v1.0.1
v1.10.0
v1.10.1
v1.10.2
v1.11.0
v1.12.0
v1.13.0
v1.13.1
v1.14.0
v1.14.1
v1.15.0
v1.16.0
v1.16.1
v1.17.0
v1.18.0
v1.19.0
v1.19.1
v1.19.2
v1.2.0
v1.2.1
v1.20.0
v1.20.1
v1.20.2
v1.20.3
v1.21.0
v1.22.0
v1.23.0
v1.23.1
v1.23.2
v1.24.0
v1.24.1
v1.25.0
v1.26.0
v1.27.0
v1.28.0
v1.29.0
v1.29.1
v1.3.0
v1.30.0
v1.30.1
v1.31.0
v1.32.0
v1.33.0
v1.33.1
v1.34.0
v1.34.1
v1.34.2
v1.35.0
v1.36.0
v1.37.0
v1.38.0
v1.38.1
v1.39.0
v1.4.0
v1.4.1
v1.4.2
v1.40.0
v1.41.0
v1.42.0
v1.43.0
v1.44.0
v1.44.1
v1.44.2
v1.46.0
v1.47.0
v1.5.0
v1.6.0
v1.6.1
v1.7.0
v1.7.1
v1.7.2
v1.7.3
v1.7.4
v1.7.5
v1.8.0
v1.9.0
v1.9.1