CVE-2025-46646

Published Apr 26, 2025

Last updated a year ago

Overview

AI description

Automated description summarized from trusted sources.

CVE-2025-46646 describes a vulnerability found in Artifex Ghostscript, specifically within the `decode_utf8` function located in `base/gp_utf8.c`. This flaw stems from the software's mishandling of overlong UTF-8 encoding when processing certain inputs. The issue is noted as an incomplete fix for a prior vulnerability, CVE-2024-46954. The vulnerability arises due to improper validation of UTF-8 sequences, where the previous fix failed to detect certain 2-byte sequences as overlong. This allows malformed UTF-8 sequences to bypass security checks, potentially leading to the manipulation of text encoding, incorrect processing of UTF-8 characters, or unexpected application behavior. It can also enable path traversal, as well as arbitrary file read, write, and directory listing operations.

Description
In Artifex Ghostscript before 10.05.0, decode_utf8 in base/gp_utf8.c mishandles overlong UTF-8 encoding. NOTE: this issue exists because of an incomplete fix for CVE-2024-46954.
Source
cve@mitre.org
NVD status
Analyzed
Products
ghostscript

Risk scores

CVSS 3.1

Type
Secondary
Base score
4.5
Impact score
2.7
Exploitability score
1.4
Vector string
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
Severity
MEDIUM

Weaknesses

cve@mitre.org
CWE-24

Social media

Hype score
Not currently trending

Configurations