Advisory

DEBIAN-CVE-2025-47278

Also known as: CVE-2025-47278

Summary

The record has no summary.

Details

Flask is a web server gateway interface (WSGI) web application framework. In Flask 3.1.0, the way fallback key configuration was handled resulted in the last fallback key being used for signing, rather than the current signing key. Signing is provided by the itsdangerous library. A list of keys can be passed, and it expects the last (top) key in the list to be the most recent key, and uses that for signing. Flask was incorrectly constructing that list in reverse, passing the signing key first. Sites that have opted-in to use key rotation by setting SECRET_KEY_FALLBACKS care likely to unexpectedly be signing their sessions with stale keys, and their transition to fresher keys will be impeded. Sessions are still signed, so this would not cause any sort of data integrity loss. Version 3.1.1 contains a patch for the issue.

Severity

Not rated by the source.

Dates

Published
2025-05-13 16:15 UTC
Modified
2026-09-01 20:03 UTC

Affected packages and fixes

flask

Debian packages (deb) · Debian 13

Affected

  • introduced 0, fixed 3.1.1-1 (ecosystem)

Fixed versions

3.1.1-1

Fix

  • Fixed version 3.1.1-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

flask

Debian packages (deb) · Debian 14

Affected

  • introduced 0, fixed 3.1.1-1 (ecosystem)

Fixed versions

3.1.1-1

Fix

  • Fixed version 3.1.1-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Debian Security Tracker (converted by OSV.dev)

Debian Security Tracker, converted to OSV by OSV.dev.

Sources & licences