---
id: CVE-2024-58392
title: >-
  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
summary: >-
  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 crafte…
severity: low
cvss: 3.3
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L'
cwe:
  - CWE-125
published: '2026-10-14'
updated: '2026-10-14'
sourceUpdated: '2026-10-14T15:17:00.660'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2024-58392'
references:
  - url: >-
      https://github.com/icculus/physfs/blob/release-3.2.0/src/physfs_unicode.c#L165-L187
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/icculus/physfs/commit/8a90802778f14dea9c086fb5436839181a3222d5
    label: disclosure@vulncheck.com
  - url: 'https://github.com/icculus/physfs/issues/79'
    label: disclosure@vulncheck.com
  - url: 'https://hackmd.io/@haind-pwn/physfs-utf8-decoder-overread'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/physicsfs-through-3.2.0-out-of-bounds-read-via-physfs-utf8codepoint
    label: disclosure@vulncheck.com
tags:
  - nvd
ingestedAt: '2026-10-14T15:36:13.994Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
