CVE-2021-25317
cups: ownership of /var/log/cups allows the lp user to create files as root
A Incorrect Default Permissions vulnerability in the packaging of cups of SUSE Linux Enterprise Server 11-SP4-LTSS, SUSE Manager Server 4.0, SUSE OpenStack Cloud Crowbar 9; openSUSE Leap 15.2, Factory allows local attackers with control of the lp users to create files as root with 0644 permissions without the ability to set the content. This issue affects: SUSE Linux Enterprise Server 11-SP4-LTSS cups versions prior to 1.3.9. SUSE Manager Server 4.0 cups versions prior to 2.2.7. SUSE OpenStack Cloud Crowbar 9 cups versions prior to 1.7.5. openSUSE Leap 15.2 cups versions prior to 2.2.7. openSUSE Factory cups version 2.3.3op2-2.1 and prior versions.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- Low
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
3.3
cups: ownership of /var/log/cups allows the lp user to create files as root
A Incorrect Default Permissions vulnerability in the packaging of cups of SUSE Linux Enterprise Server 11-SP4-LTSS, SUSE Manager Server 4.0, SUSE OpenStack Cloud Crowbar 9; openSUSE Leap 15.2, Factory allows local attackers with control of the lp users to create files as root with 0644 permissions without the ability to set the content. This issue affects: SUSE Linux Enterprise Server 11-SP4-LTSS cups versions prior to 1.3.9. SUSE Manager Server 4.0 cups versions prior to 2.2.7. SUSE OpenStack Cloud Crowbar 9 cups versions prior to 1.7.5. openSUSE Leap 15.2 cups versions prior to 2.2.7. openSUSE Factory cups version 2.3.3op2-2.1 and prior versions.
- Record
CVE-2021-25317- CVSS 3.1
- 3.3 Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N - Weakness
- CWE-276
- Updated
- 2026-11-02
EUVDEUVD-2021-12215
3.3
A Incorrect Default Permissions vulnerability in the packaging of cups of SUSE Linux Enterprise Server 11-SP4-LTSS, SUSE Manager Server 4.0, SUSE OpenStack Cloud Crowbar 9; openSUSE Leap 15.2, Factory allows local attackers with control of the lp users to create files as root with 0644 permissions without the ability to set the content. This issue affects: SUSE Linux Enterprise Server 11-SP4-LTSS cups versions prior to 1.3.9. SUSE Manager Server 4.0 cups versions prior to 2.2.7. SUSE OpenStack Cloud Crowbar 9 cups versions prior to 1.7.5. openSUSE Leap 15.2 cups versions prior to 2.2.7. openSUSE Factory cups version 2.3.3op2-2.1 and prior versions.
- Record
EUVD-2021-12215- CVSS 3.1
- 3.3 Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-7qpc-9fjw-5c32
3.3
A Incorrect Default Permissions vulnerability in the packaging of cups of SUSE Linux Enterprise...
A Incorrect Default Permissions vulnerability in the packaging of cups of SUSE Linux Enterprise Server 11-SP4-LTSS, SUSE Manager Server 4.0, SUSE OpenStack Cloud Crowbar 9; openSUSE Leap 15.2, Factory allows local attackers with control of the lp users to create files as root with 0644 permissions without the ability to set the content. This issue affects: SUSE Linux Enterprise Server 11-SP4-LTSS cups versions prior to 1.3.9. SUSE Manager Server 4.0 cups versions prior to 2.2.7. SUSE OpenStack Cloud Crowbar 9 cups versions prior to 1.7.5. openSUSE Leap 15.2 cups versions prior to 2.2.7. openSUSE Factory cups version 2.3.3op2-2.1 and prior versions.
- Record
GHSA-7qpc-9fjw-5c32- CVSS 3.1
- 3.3 Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N - Weakness
- CWE-276
- Updated
- 2026-11-02
NVD
3.3
A Incorrect Default Permissions vulnerability in the packaging of cups of SUSE Linux Enterprise Server 11-SP4-LTSS, SUSE Manager Server 4.0, SUSE OpenStack Cloud Crowbar 9; openSUSE Leap 15.2, Factory allows local attackers with control of the lp users to create files as root with 0644 permissions without the ability to set the content. This issue affects: SUSE Linux Enterprise Server 11-SP4-LTSS cups versions prior to 1.3.9. SUSE Manager Server 4.0 cups versions prior to 2.2.7. SUSE OpenStack Cloud Crowbar 9 cups versions prior to 1.7.5. openSUSE Leap 15.2 cups versions prior to 2.2.7. openSUSE Factory cups version 2.3.3op2-2.1 and prior versions.
- Record
CVE-2021-25317- CVSS 3.1
- 3.3 Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N - CVSS 2.0
- 2.1 Low
AV:L/AC:L/Au:N/C:N/I:P/A:N - Weakness
- CWE-276
- Updated
- 2026-11-02
OSV
3.3
A Incorrect Default Permissions vulnerability in the packaging of cups of SUSE Linux Enterprise Server 11-SP4-LTSS, SUSE Manager Server 4.0, SUSE OpenStack Cloud Crowbar 9; openSUSE Leap 15.2, Factory allows local attackers with control of the lp users to create files as root with 0644 permissions without the ability to set the content. This issue affects: SUSE Linux Enterprise Server 11-SP4-LTSS cups versions prior to 1.3.9. SUSE Manager Server 4.0 cups versions prior to 2.2.7. SUSE OpenStack Cloud Crowbar 9 cups versions prior to 1.7.5. openSUSE Leap 15.2 cups versions prior to 2.2.7. openSUSE Factory cups version 2.3.3op2-2.1 and prior versions.
- Record
CVE-2021-25317- CVSS 3.1
- 3.3 Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N - Updated
- 2026-11-03
OSVOESA-2021-1212
3.3
cups security update
CUPS is the standards-based, open source printing system developed by Apple Inc. for UNIX®-like operating systems. CUPS uses the Internet PrintingProtocol (IPP) to support printing to local and network printers..
Security Fix(es):
A Incorrect Default Permissions vulnerability in the packaging of cups of SUSE Linux Enterprise Server 11-SP4-LTSS, SUSE Manager Server 4.0, SUSE OpenStack Cloud Crowbar 9; openSUSE Leap 15.2, Factory allows local attackers with control of the lp users to create files as root with 0644 permissions without the ability to set the content. This issue affects: SUSE Linux Enterprise Server 11-SP4-LTSS cups versions prior to 1.3.9. SUSE Manager Server 4.0 cups versions prior to 2.2.7. SUSE OpenStack Cloud Crowbar 9 cups versions prior to 1.7.5. openSUSE Leap 15.2 cups versions prior to 2.2.7. openSUSE Factory cups version 2.3.3op2-2.1 and prior versions.(CVE-2021-25317)
- Record
OESA-2021-1212- CVSS 3.1
- 3.3 Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N - Updated
- 2026-11-02
Show 7 moreShow less
OSVCLSA-2026-1785510391 No score
cups: Fix of 2 CVEs
- CVE-2021-25317: install /var/log/cups as 0700 root:sys instead of 0755 lp:sys so the 'lp' user cannot plant symlinks that cupsd follows on log creation. This matches the mode cupsd itself computes for the log directory (0300|LogFilePerm with --with-log-file-perm=0600).
- CVE-2025-58364: already addressed by Patch103 (upstream e58cba9d), shipped in 1:1.6.3-52.tuxcare.els5; no code change in this release.
- Record
CLSA-2026-1785510391- Updated
- 2026-11-02
OSVCLSA-2026-1787145903 No score
cups: Fix of CVE-2021-25317
- CVE-2021-25317: ship /var/log/cups owned by root:lp instead of lp:sys so a local lp user can no longer plant a symlink in the log directory and make the root cupsd create arbitrary root-owned files, matching current RHEL 9 packaging
- Record
CLSA-2026-1787145903- Updated
- 2026-11-02
OSVopenSUSE-SU-2021:0638-1 No score
Security update for cups
This update for cups fixes the following issues:
- CVE-2021-25317: ownership of /var/log/cups could allow privilege escalation from lp user to root via symlink attacks (bsc#1184161)
This update was imported from the SUSE:SLE-15:Update update project.
- Record
openSUSE-SU-2021:0638-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10707-1 No score
cups-2.3.3op2-4.2 on GA media
These are all security issues fixed in the cups-2.3.3op2-4.2 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10707-1- Updated
- 2026-11-02
OSVSUSE-SU-2021:1453-1 No score
Security update for cups
This update for cups fixes the following issues:
- CVE-2021-25317: ownership of /var/log/cups could allow privilege escalation from lp user to root via symlink attacks (bsc#1184161)
- Record
SUSE-SU-2021:1453-1- Updated
- 2026-11-02
OSVSUSE-SU-2021:1454-1 No score
Security update for cups
This update for cups fixes the following issues:
- CVE-2021-25317: ownership of /var/log/cups could allow privilege escalation from lp user to root via symlink attacks (bsc#1184161)
- Record
SUSE-SU-2021:1454-1- Updated
- 2026-11-02
OSVSUSE-SU-2021:14712-1 No score
Security update for cups
This update for cups fixes the following issues:
- CVE-2021-25317: ownership of /var/log/cups could allow privilege escalation from lp user to root via symlink attacks (bsc#1184161)
- Record
SUSE-SU-2021:14712-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
cupsTuxCare:CentOS:7 From an advisory covering 2 CVEs |
before 1:1.6.3-52.el7_9.tuxcare.els7 | 1:1.6.3-52.el7_9.tuxcare.els7 |
cups-clientTuxCare:CentOS:7 From an advisory covering 2 CVEs |
before 1:1.6.3-52.el7_9.tuxcare.els7 | 1:1.6.3-52.el7_9.tuxcare.els7 |
cups-develTuxCare:CentOS:7 From an advisory covering 2 CVEs |
before 1:1.6.3-52.el7_9.tuxcare.els7 | 1:1.6.3-52.el7_9.tuxcare.els7 |
cups-filesystemTuxCare:CentOS:7 From an advisory covering 2 CVEs |
before 1:1.6.3-52.el7_9.tuxcare.els7 | 1:1.6.3-52.el7_9.tuxcare.els7 |
cups-ipptoolTuxCare:CentOS:7 From an advisory covering 2 CVEs |
before 1:1.6.3-52.el7_9.tuxcare.els7 | 1:1.6.3-52.el7_9.tuxcare.els7 |
cups-libsTuxCare:CentOS:7 From an advisory covering 2 CVEs |
before 1:1.6.3-52.el7_9.tuxcare.els7 | 1:1.6.3-52.el7_9.tuxcare.els7 |
cups-lpdTuxCare:CentOS:7 From an advisory covering 2 CVEs |
before 1:1.6.3-52.el7_9.tuxcare.els7 | 1:1.6.3-52.el7_9.tuxcare.els7 |
cupsTuxCare:AlmaLinux:9.2 |
before 1:2.3.3op2-16.el9_2.1.tuxcare.els15 | 1:2.3.3op2-16.el9_2.1.tuxcare.els15 |
cups-clientTuxCare:AlmaLinux:9.2 |
before 1:2.3.3op2-16.el9_2.1.tuxcare.els15 | 1:2.3.3op2-16.el9_2.1.tuxcare.els15 |
cups-develTuxCare:AlmaLinux:9.2 |
before 1:2.3.3op2-16.el9_2.1.tuxcare.els15 | 1:2.3.3op2-16.el9_2.1.tuxcare.els15 |
Show 39 moreShow less
| Package | Affected | Fixed |
|---|---|---|
cups-filesystemTuxCare:AlmaLinux:9.2 |
before 1:2.3.3op2-16.el9_2.1.tuxcare.els15 | 1:2.3.3op2-16.el9_2.1.tuxcare.els15 |
cups-ipptoolTuxCare:AlmaLinux:9.2 |
before 1:2.3.3op2-16.el9_2.1.tuxcare.els15 | 1:2.3.3op2-16.el9_2.1.tuxcare.els15 |
cups-libsTuxCare:AlmaLinux:9.2 |
before 1:2.3.3op2-16.el9_2.1.tuxcare.els15 | 1:2.3.3op2-16.el9_2.1.tuxcare.els15 |
cups-lpdTuxCare:AlmaLinux:9.2 |
before 1:2.3.3op2-16.el9_2.1.tuxcare.els15 | 1:2.3.3op2-16.el9_2.1.tuxcare.els15 |
cups-printerappTuxCare:AlmaLinux:9.2 |
before 1:2.3.3op2-16.el9_2.1.tuxcare.els15 | 1:2.3.3op2-16.el9_2.1.tuxcare.els15 |
cupsopenEuler:20.03-LTS-SP1 |
before 2.2.13-5.oe1 | 2.2.13-5.oe1 |
cupsSUSE:HPE Helion OpenStack 8 |
before 1.7.5-20.36.1 | 1.7.5-20.36.1 |
cupsSUSE:OpenStack Cloud 8 |
before 1.7.5-20.36.1 | 1.7.5-20.36.1 |
cupsSUSE:OpenStack Cloud 9 |
before 1.7.5-20.36.1 | 1.7.5-20.36.1 |
cupsSUSE:OpenStack Cloud Crowbar 8 |
before 1.7.5-20.36.1 | 1.7.5-20.36.1 |
cupsSUSE:OpenStack Cloud Crowbar 9 |
before 1.7.5-20.36.1 | 1.7.5-20.36.1 |
cupsSUSE:Linux Enterprise Server for SAP Applications 12 SP3 |
before 1.7.5-20.36.1 | 1.7.5-20.36.1 |
cupsSUSE:Linux Enterprise Server for SAP Applications 12 SP4 |
before 1.7.5-20.36.1 | 1.7.5-20.36.1 |
cupsSUSE:Linux Enterprise Software Development Kit 12 SP5 |
before 1.7.5-20.36.1 | 1.7.5-20.36.1 |
cupsSUSE:Linux Enterprise Server 12 SP2-BCL |
before 1.7.5-20.36.1 | 1.7.5-20.36.1 |
cupsSUSE:Linux Enterprise Server 12 SP3-LTSS |
before 1.7.5-20.36.1 | 1.7.5-20.36.1 |
cupsSUSE:Linux Enterprise Server 12 SP3-BCL |
before 1.7.5-20.36.1 | 1.7.5-20.36.1 |
cupsSUSE:Linux Enterprise Server 12 SP4-LTSS |
before 1.7.5-20.36.1 | 1.7.5-20.36.1 |
cupsSUSE:Linux Enterprise Server 12 SP5 |
before 1.7.5-20.36.1 | 1.7.5-20.36.1 |
cupsSUSE:Linux Enterprise Server for SAP Applications 12 SP5 |
before 1.7.5-20.36.1 | 1.7.5-20.36.1 |
cupsSUSE:Linux Enterprise Module for Basesystem 15 SP2 |
before 2.2.7-3.26.1 | 2.2.7-3.26.1 |
cupsSUSE:Linux Enterprise Module for Development Tools 15 SP2 |
before 2.2.7-3.26.1 | 2.2.7-3.26.1 |
cupsSUSE:Linux Enterprise High Performance Computing 15-ESPOS |
before 2.2.7-3.26.1 | 2.2.7-3.26.1 |
cupsSUSE:Linux Enterprise High Performance Computing 15-LTSS |
before 2.2.7-3.26.1 | 2.2.7-3.26.1 |
cupsSUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS |
before 2.2.7-3.26.1 | 2.2.7-3.26.1 |
cupsSUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS |
before 2.2.7-3.26.1 | 2.2.7-3.26.1 |
cupsSUSE:Linux Enterprise Server 15-LTSS |
before 2.2.7-3.26.1 | 2.2.7-3.26.1 |
cupsSUSE:Linux Enterprise Server 15 SP1-BCL |
before 2.2.7-3.26.1 | 2.2.7-3.26.1 |
cupsSUSE:Linux Enterprise Server 15 SP1-LTSS |
before 2.2.7-3.26.1 | 2.2.7-3.26.1 |
cupsSUSE:Linux Enterprise Server for SAP Applications 15 |
before 2.2.7-3.26.1 | 2.2.7-3.26.1 |
cupsSUSE:Linux Enterprise Server for SAP Applications 15 SP1 |
before 2.2.7-3.26.1 | 2.2.7-3.26.1 |
cupsSUSE:Manager Proxy 4.0 |
before 2.2.7-3.26.1 | 2.2.7-3.26.1 |
cupsSUSE:Manager Retail Branch Server 4.0 |
before 2.2.7-3.26.1 | 2.2.7-3.26.1 |
cupsSUSE:Manager Server 4.0 |
before 2.2.7-3.26.1 | 2.2.7-3.26.1 |
cupsSUSE:Enterprise Storage 6 |
before 2.2.7-3.26.1 | 2.2.7-3.26.1 |
cupsSUSE:Linux Enterprise Point of Sale 11 SP3 |
before 1.3.9-8.46.56.18.1 | 1.3.9-8.46.56.18.1 |
cupsSUSE:Linux Enterprise Server 11 SP4-LTSS |
before 1.3.9-8.46.56.18.1 | 1.3.9-8.46.56.18.1 |
cupsopenSUSE:Leap 15.2 |
before 2.2.7-lp152.9.9.1 | 2.2.7-lp152.9.9.1 |
cupsopenSUSE:Tumbleweed From an advisory covering 20 CVEs |
before 2.3.3op2-4.2 | 2.3.3op2-4.2 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | OSV | |
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-25317 is a low vulnerability (CVSS 3.3) in Opensuse Factory, published April 30, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.27%, the 19th percentile. Fixed in cups 1:2.3.3op2-16.el9_2.1.tuxcare.els15.
References
bugzilla.suse.com/show_bug.cgi?id=1184161
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/H74BP746O5NNVCBUTLLZYAFBPESFVECV
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/S37IDQGHTORQ3Z6VRDQIGBYVOI27YG47
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GWPGZLT3U776Q5YPPSA6LGFWWBDWBVH3
nvd.nist.gov/vuln/detail/CVE-2021-25317
lists.fedoraproject.org/archives/list/[email protected]/message/GWPGZLT3U776Q5YPPSA6LGFWWBDWBVH3
Show 32 moreShow less
lists.fedoraproject.org/archives/list/[email protected]/message/H74BP746O5NNVCBUTLLZYAFBPESFVECV
lists.fedoraproject.org/archives/list/[email protected]/message/S37IDQGHTORQ3Z6VRDQIGBYVOI27YG47
github.com/advisories/GHSA-7qpc-9fjw-5c32
errata.tuxcare.com/els_os/centos7els/CLSA-2026-1785510391.html
nvd.nist.gov/vuln/detail/CVE-2025-58364
errata.tuxcare.com/els_os/almalinux9.2esu/CLSA-2026-1787145903.html
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1212
suse.com/support/update/announcement/2021/suse-su-20211453-1
bugzilla.suse.com/1184161
suse.com/security/cve/CVE-2021-25317
suse.com/support/update/announcement/2021/suse-su-20211454-1
suse.com/support/update/announcement/2021/suse-su-202114712-1
lists.opensuse.org/archives/list/[email protected]/thread/7GKB5OH3W4MLNXHW3ZQK7GEVLAEMXZ7C
suse.com/security/cve/CVE-2005-3193
suse.com/security/cve/CVE-2005-3624
suse.com/security/cve/CVE-2005-3628
suse.com/security/cve/CVE-2007-0104
suse.com/security/cve/CVE-2007-3387
suse.com/security/cve/CVE-2007-4351
suse.com/security/cve/CVE-2007-4352
suse.com/security/cve/CVE-2007-5393
suse.com/security/cve/CVE-2008-0047
suse.com/security/cve/CVE-2008-1693
suse.com/security/cve/CVE-2008-1722
suse.com/security/cve/CVE-2008-3641
suse.com/security/cve/CVE-2017-18248
suse.com/security/cve/CVE-2018-4700
suse.com/security/cve/CVE-2019-2228
suse.com/security/cve/CVE-2019-8696
suse.com/security/cve/CVE-2019-8842
suse.com/security/cve/CVE-2020-10001
suse.com/security/cve/CVE-2020-3898