Skip to content

CVE-2025-58060 cups: Authentication bypass with AuthType Negotiate

High
zdohnal published GHSA-4c68-qgrh-rmmq Sep 11, 2025

Package

cups

Affected versions

<2.4.13

Patched versions

None

Description

Summary

When the AuthType is set to anything but Basic, if the request contains an Authorization: Basic ... header, the password is not checked.

Details

When the Authorization header is set to Basic, but in scheduler/auth.c cupsdAuthorize type is not CUPSD_AUTH_BASIC, the step with checking the password is skipped.

PoC

  1. Configure CUPS with DefaultAuthType Negotiate.
  2. Start CUPS
  3. Send a request to CUPS with Authorization: Basic $(echo -n admin:x | base64), where admin is an administrator username and x is literally the string x.

Impact

Authentication bypass. Any configuration that allows an AuthType that is not Basic is affected.

Severity

High

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Local
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
High
Availability
High

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H

CVE ID

CVE-2025-58060

Weaknesses

No CWEs

Credits