CVE-2024-30262: Contao Remember-me Tokens Will Not Be Vulnerability

MODERATE
Advisory Identifier: GHSA-r4r6-j2j3-7pp5
CVSS 5.9
CWE-613 CWE-384
Published
Advisory Summary

CVE-2024-30262 is a MODERATE (CVSS 5.9) remember-me tokens will not be vulnerability (CWE-613: Insufficient Session Expiration) affecting Contao libraries in the Packagist ecosystem. The issue involves remember-me tokens will not be cleared after a password change. Remediation is available by upgrading affected packages to version 4.13.40.

CVE-2024-30262 at a Glance

CVE Identifier CVE-2024-30262
GHSA Identifier GHSA-r4r6-j2j3-7pp5
Severity MODERATE
CVSS v3.1 Base Score 5.9
CWE Classification CWE-613: Insufficient Session Expiration
Affected Product Contao
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 5.9

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2024-30262

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

contao/core-bundle fixed: 4.13.40
Upgrade contao/core-bundle to 4.13.40
Verify Direct and Transitive Dependencies

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

inspect dependencies for contao/core-bundle

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-30262, inspect your project dependencies for Contao:

inspect dependencies for contao/core-bundle

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

Note: Verify declared build manifests and deployed runtime container environments.

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 Contao, 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 When a front end member changes their password, the corresponding remember-me tokens are not removed. ### Patches Update to Contao 4.13.40. ### Workarounds Disable "Allow auto login" in the login module. ### References https://contao.org/en/security-advisories/remember-me-tokens-are-not-cleared-after-a-password-change ### For more information If you have any questions or comments about this advisory, open an issue in [contao/contao](https://github.com/contao/contao/issues/new/choose).

CVE-2024-30262 Affected Contao Versions

1 component(s)
Fixed Versions:
4.13.40
Product / Package Ecosystem Affected Versions Fixed Version
contao/core-bundle
Packagist
< 4.13.40
4.13.40

References

Frequently Asked Questions

What is CVE-2024-30262?
CVE-2024-30262 is a security vulnerability in Contao involving Remember-me tokens will not be cleared after a password change under CWE-613: Insufficient Session Expiration.
Which Contao versions are affected?
Affected versions include releases prior to 4.13.40 across affected packages: contao/core-bundle.
What version fixes CVE-2024-30262?
Upgrading to 4.13.40 (or the latest patched release for your respective branch) resolves the vulnerability.
Is contao/core-bundle affected?
Yes, contao/core-bundle is affected in releases prior to 4.13.40. Upgrade your dependency to 4.13.40 or later.
What is the CVSS score of CVE-2024-30262?
CVE-2024-30262 has a CVSS v3.1 base score of 5.9 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N.
What CWE is associated with CVE-2024-30262?
CVE-2024-30262 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 Packagist dependencies for CVE-2024-30262?
Run the dependency tree command: 'inspect dependencies for contao/core-bundle'. 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-r4r6-j2j3-7pp5",
  "modified" : "2024-04-09T21:12:19Z",
  "published" : "2024-04-09T16:15:06Z",
  "aliases" : [ "CVE-2024-30262" ],
  "summary" : "Contao: Remember-me tokens will not be cleared after a password change",
  "details" : "### Impact\n\nWhen a front end member changes their password, the corresponding remember-me tokens are not removed.\n\n### Patches\n\nUpdate to Contao 4.13.40.\n\n### Workarounds\n\nDisable \"Allow auto login\" in the login module.\n\n### References\n\nhttps://contao.org/en/security-advisories/remember-me-tokens-are-not-cleared-after-a-password-change\n\n### For more information\n\nIf you have any questions or comments about this advisory, open an issue in [contao/contao](https://github.com/contao/contao/issues/new/choose).",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "contao/core-bundle"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.13.40"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/contao/contao/security/advisories/GHSA-r4r6-j2j3-7pp5"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-30262"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/contao/contao/commit/3032baa456f607169ffae82a8920354adb338fe9"
  }, {
    "type" : "WEB",
    "url" : "https://contao.org/en/security-advisories/remember-me-tokens-are-not-cleared-after-a-password-change"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/contao/contao"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-384", "CWE-613" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-09T16:15:06Z",
    "nvd_published_at" : "2024-04-09T17:16:02Z"
  }
}