UBUNTU-CVE-2025-68158

Source
https://ubuntu.com/security/CVE-2025-68158
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-68158.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2025-68158
Upstream
Downstream
Related
Published
2026-01-08T18:15:00Z
Modified
2026-02-28T06:25:10.219442Z
Severity
  • 5.7 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N CVSS Calculator
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

Authlib is a Python library which builds OAuth and OpenID Connect servers. In version 1.6.5 and prior, cache-backed state/request-token storage is not tied to the initiating user session, so CSRF is possible for any attacker that has a valid state (easily obtainable via an attacker-initiated authentication flow). When a cache is supplied to the OAuth client registry, FrameworkIntegration.setstatedata writes the entire state blob under state{app}{state}, and getstate_data ignores the caller’s session altogether. This issue has been patched in version 1.6.6.

References

Affected packages

Ubuntu:Pro:24.04:LTS / python-authlib

Package

Name
python-authlib
Purl
pkg:deb/ubuntu/python-authlib@1.3.0-1ubuntu0.1~esm1?arch=source&distro=esm-apps/noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.3.0-1ubuntu0.1~esm1

Affected versions

1.*
1.2.1-1
1.3.0-1

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "binaries": [
        {
            "binary_version": "1.3.0-1ubuntu0.1~esm1",
            "binary_name": "python3-authlib"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-68158.json"

Ubuntu:25.10 / python-authlib

Package

Name
python-authlib
Purl
pkg:deb/ubuntu/python-authlib@1.6.0-1?arch=source&distro=questing

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.5.1-1
1.5.2-1
1.6.0-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "1.6.0-1",
            "binary_name": "python3-authlib"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-68158.json"