cve.bz

CVE-2023-4504 Out-of-bounds Write

7.0 highExploit referenceEPSS 0.6%

High (7.0). EPSS 0.6% estimated probability of exploitation activity in the next 30 days.

On this page
Due to failure in validating the length provided by an attacker-crafted PPD PostScript document, CUPS and libppd are susceptible to a heap-based buffer overflow and possibly code execution. This issue has been fixed in CUPS version 2.4.7, released in September of 2023.

Severity

CVSS 3.1

7.0 high
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
0.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 52nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2025-04-23. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-787 Out-of-bounds Write
CWE-122 Heap-based Buffer Overflow
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-4504 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-4504?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-4504?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-4504 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
OpenPrinting CUPSbefore 2.4.6

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10cups2.2.10-6+deb10u9DLA-3594-1
Debian12cups2.4.2-3+deb12u2DEBIAN-CVE-2023-4504
Debian13, 14cups2.4.2-6DEBIAN-CVE-2023-4504
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 1 morelibppdno fix listedUBUNTU-CVE-2023-4504
Ubuntu20.04:LTScups2.3.1-9ubuntu1.6UBUNTU-CVE-2023-4504 USN-6391-1
Ubuntu22.04:LTScups2.4.1op1-1ubuntu4.7UBUNTU-CVE-2023-4504 USN-6391-1
UbuntuPro:16.04:LTScups2.1.3-4ubuntu0.11+esm4UBUNTU-CVE-2023-4504 USN-6391-2
UbuntuPro:18.04:LTScups2.2.7-1ubuntu2.10+esm2UBUNTU-CVE-2023-4504 USN-6391-2
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 18 morecups2.2.7-150000.3.51.2SUSE-SU-2023:3707-1
SUSELinux Enterprise Micro 5.5cups2.2.7-150000.3.51.2SUSE-SU-2023:3707-2
SUSELinux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP4-ESPOS, Linux Enterprise Server 12 SP4-LTSS and 6 morecups1.7.5-20.46.1SUSE-SU-2023:3706-1
SUSELinux Micro 6.0cups2.4.11-1.1SUSE-SU-2025:20090-1
openSUSELeap 15.4, Leap 15.5cups2.2.7-150000.3.51.2SUSE-SU-2023:3707-1
openSUSETumbleweedcups2.4.2-7.1openSUSE-SU-2024:13250-1
Alpinev3.17, v3.18, v3.19 and 5 morecups2.4.7-r0ALPINE-CVE-2023-4504
Azure Linux2cups2.3.3op2-7AZL-37075
Azure Linux3cups2.4.10-1AZL-37100
Alpaquita23cups2.4.2-r5BELL-CVE-2023-4504
Alpaquitastreamcups2.4.7-r0BELL-CVE-2023-4504

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability is rated as moderate because a heap-based buffer overflow in CUPS and libppd, caused by improper length validation in attacker-crafted PPD PostScript documents, could lead to application crashes or potential code execution, successful exploitation depends on specific conditions, such as the application's processing of untrusted PPD files, limiting the overall impact in most cases.

Red Hat's mitigation

For a successful attack, the victim had to install a PPD file (driver) that contains the crafted PS sequence, which triggers the issue. It is not recommended to install drivers from unreliable sources.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6cupsOut of support scope
Red Hat Enterprise Linux 7cupsOut of support scope
Red Hat Enterprise Linux 8cupsWill not fix
Red Hat Enterprise Linux 9cupsWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-4504.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON