CVE-2025-58352: Weblate Weblate Has A Long Session Vulnerability

LOW
Advisory Identifier: GHSA-377j-wj38-4728
CWE-613
Published
Advisory Summary

CVE-2025-58352 is a LOW weblate has a long session vulnerability (CWE-613: Insufficient Session Expiration) affecting Weblate libraries in the PyPI ecosystem. The issue involves weblate has a long session expiry when verifying second factor. Remediation is available by upgrading affected packages to version 5.13.1.

CVE-2025-58352 at a Glance

CVE Identifier CVE-2025-58352
GHSA Identifier GHSA-377j-wj38-4728
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-613: Insufficient Session Expiration
Affected Product Weblate
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2025-58352

To remediate this vulnerability, upgrade all affected Weblate dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

Weblate fixed: 5.13.1
pip install Weblate>=5.13.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show Weblate

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2025-58352, inspect your installed packages using pip:

pip show Weblate

Analyze the terminal output to locate any version of Weblate in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.13.1), your application is affected.

Note: The pip show Weblate command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-613: Insufficient Session Expiration, where according to wasc, "insufficient session expiration is when a web site permits an attacker to reuse old session credentials or session ids for authorization.". In Weblate, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact The verification of the second factor had too long a session expiry. The long session expiry could be used to circumvent rate limiting of the second factor. ### Patches This issue has been addressed in Weblate 5.13.1 via https://github.com/WeblateOrg/weblate/pull/16002. ### References Thanks to Nahid Hasan Limon for reporting this issue responsibly.

CVE-2025-58352 Affected Weblate Versions

1 component(s)
Fixed Versions:
5.13.1
Product / Package Ecosystem Affected Versions Fixed Version
Weblate
PyPI
< 5.13.1
5.13.1

References

Frequently Asked Questions

What is CVE-2025-58352?
CVE-2025-58352 is a security vulnerability in Weblate involving Weblate has a long session expiry when verifying second factor under CWE-613: Insufficient Session Expiration.
Which Weblate versions are affected?
Affected versions include releases prior to 5.13.1 across affected packages: Weblate.
What version fixes CVE-2025-58352?
Upgrading to 5.13.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is Weblate affected?
Yes, Weblate is affected in releases prior to 5.13.1. Upgrade your dependency to 5.13.1 or later.
What CWE is associated with CVE-2025-58352?
CVE-2025-58352 is classified under CWE-613: Insufficient Session Expiration (According to WASC, "Insufficient Session Expiration is when a web site permits an attacker to reuse old session credentials or session IDs for authorization.").
How can I check PyPI dependencies for CVE-2025-58352?
Run the dependency tree command: 'pip show Weblate'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-377j-wj38-4728",
  "modified" : "2025-09-05T16:10:49Z",
  "published" : "2025-09-04T14:06:15Z",
  "aliases" : [ "CVE-2025-58352" ],
  "summary" : "Weblate has a long session expiry when verifying second factor",
  "details" : "### Impact\nThe verification of the second factor had too long a session expiry. The long session expiry could be used to circumvent rate limiting of the second factor.\n\n\n### Patches\nThis issue has been addressed in Weblate 5.13.1 via https://github.com/WeblateOrg/weblate/pull/16002.\n\n### References\nThanks to Nahid Hasan Limon for reporting this issue responsibly.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "Weblate"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.13.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/WeblateOrg/weblate/security/advisories/GHSA-377j-wj38-4728"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-58352"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/WeblateOrg/weblate/pull/16002"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/WeblateOrg/weblate/commit/0b46fe596231dd456283ead66699ae5516f23908"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/WeblateOrg/weblate"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-613" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-09-04T14:06:15Z",
    "nvd_published_at" : "2025-09-05T00:15:32Z"
  }
}