CVE-2024-58392
CVE-2024-58392 · PhysicsFS through 3.2.0 Out-of-Bounds Read via __PHYSFS_utf8codepoint
This page contains facts from public vulnerability sources. Check the original advisory before updating.
PhysicsFS through 3.2.0 contains an out-of-bounds read vulnerability in __PHYSFS_utf8codepoint() that allows attackers to read past name buffers via an off-by-one cursor advance on six-octet UTF-8 sequences. Attackers can supply a crafted archive with entry names ending in six-octet sequences, causing PHYSFS_utf8stricmp() and hashing to over-read and crash the application.
CVSS 4.8 · Medium · EPSS 0.2%
- Published
- Updated
Stack: system
Affected products and versions
physicsfs
- Versions
- ≥ 0, ≤ 3.2.0: Affected (semver)
No fix published
libphysfs Debian:12
- Versions
- 3.0.2-6
- 3.2.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
libphysfs Debian:13
- Versions
- 3.0.2-6
- 3.2.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
libphysfs Debian:14
- Versions
- 3.0.2-6
- 3.2.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
Original sources
- https://github.com/icculus/physfs/issues/79
- https://hackmd.io/@haind-pwn/physfs-utf8-decoder-overread
- https://github.com/icculus/physfs/blob/release-3.2.0/src/physfs_unicode.c#L165-L187
- https://github.com/icculus/physfs/commit/8a90802778f14dea9c086fb5436839181a3222d5
- https://www.vulncheck.com/advisories/physicsfs-through-3.2.0-out-of-bounds-read-via-physfs-utf8codepoint
- https://nvd.nist.gov/vuln/detail/CVE-2024-58392