CVE-2024-35220 (GCVE-0-2024-35220)

Vulnerability from cvelistv5 – Published: 2024-05-21 20:26 – Updated: 2024-08-02 03:07
VLAI?
Summary
@fastify/session is a session plugin for fastify. Requires the @fastify/cookie plugin. When restoring the cookie from the session store, the `expires` field is overriden if the `maxAge` field was set. This means a cookie is never correctly detected as expired and thus expired sessions are not destroyed. This vulnerability has been patched 10.8.0.
CWE
  • CWE-613 - Insufficient Session Expiration
Assigner
Impacted products
Vendor Product Version
fastify session Affected: < 10.9.0
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "affected": [
          {
            "cpes": [
              "cpe:2.3:a:fastify:session:0:*:*:*:*:*:*:*"
            ],
            "defaultStatus": "unknown",
            "product": "session",
            "vendor": "fastify",
            "versions": [
              {
                "lessThanOrEqual": "10.8.0",
                "status": "affected",
                "version": "0",
                "versionType": "custom"
              },
              {
                "status": "unaffected",
                "version": "10.9.0"
              }
            ]
          }
        ],
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2024-35220",
                "options": [
                  {
                    "Exploitation": "poc"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-05-22T15:49:51.191902Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-06-04T17:34:24.350Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      },
      {
        "providerMetadata": {
          "dateUpdated": "2024-08-02T03:07:46.810Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "name": "https://github.com/fastify/session/security/advisories/GHSA-pj27-2xvp-4qxg",
            "tags": [
              "x_refsource_CONFIRM",
              "x_transferred"
            ],
            "url": "https://github.com/fastify/session/security/advisories/GHSA-pj27-2xvp-4qxg"
          },
          {
            "name": "https://github.com/fastify/session/issues/251",
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://github.com/fastify/session/issues/251"
          },
          {
            "name": "https://github.com/fastify/session/commit/0495ce5b534c4550f25228821db8098293439f2f",
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://github.com/fastify/session/commit/0495ce5b534c4550f25228821db8098293439f2f"
          }
        ],
        "title": "CVE Program Container"
      }
    ],
    "cna": {
      "affected": [
        {
          "product": "session",
          "vendor": "fastify",
          "versions": [
            {
              "status": "affected",
              "version": "\u003c 10.9.0"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "@fastify/session is a session plugin for fastify. Requires the @fastify/cookie plugin. When restoring the cookie from the session store, the `expires` field is overriden if the `maxAge` field was set.\nThis means a cookie is never correctly detected as expired and thus expired sessions are not destroyed. This vulnerability has been patched 10.8.0."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "attackComplexity": "LOW",
            "attackVector": "NETWORK",
            "availabilityImpact": "NONE",
            "baseScore": 7.4,
            "baseSeverity": "HIGH",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "NONE",
            "privilegesRequired": "NONE",
            "scope": "CHANGED",
            "userInteraction": "REQUIRED",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N",
            "version": "3.1"
          }
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "cweId": "CWE-613",
              "description": "CWE-613: Insufficient Session Expiration",
              "lang": "en",
              "type": "CWE"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2024-05-21T20:26:53.312Z",
        "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "shortName": "GitHub_M"
      },
      "references": [
        {
          "name": "https://github.com/fastify/session/security/advisories/GHSA-pj27-2xvp-4qxg",
          "tags": [
            "x_refsource_CONFIRM"
          ],
          "url": "https://github.com/fastify/session/security/advisories/GHSA-pj27-2xvp-4qxg"
        },
        {
          "name": "https://github.com/fastify/session/issues/251",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/fastify/session/issues/251"
        },
        {
          "name": "https://github.com/fastify/session/commit/0495ce5b534c4550f25228821db8098293439f2f",
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://github.com/fastify/session/commit/0495ce5b534c4550f25228821db8098293439f2f"
        }
      ],
      "source": {
        "advisory": "GHSA-pj27-2xvp-4qxg",
        "discovery": "UNKNOWN"
      },
      "title": "@fastify/session reuses destroyed session cookie"
    }
  },
  "cveMetadata": {
    "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
    "assignerShortName": "GitHub_M",
    "cveId": "CVE-2024-35220",
    "datePublished": "2024-05-21T20:26:53.312Z",
    "dateReserved": "2024-05-14T15:39:41.783Z",
    "dateUpdated": "2024-08-02T03:07:46.810Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "fkie_nvd": {
      "descriptions": "[{\"lang\": \"en\", \"value\": \"@fastify/session is a session plugin for fastify. Requires the @fastify/cookie plugin. When restoring the cookie from the session store, the `expires` field is overriden if the `maxAge` field was set.\\nThis means a cookie is never correctly detected as expired and thus expired sessions are not destroyed. This vulnerability has been patched 10.8.0.\"}, {\"lang\": \"es\", \"value\": \"@fastify/session es un complemento de sesi\\u00f3n para fastify. Requiere el complemento @fastify/cookie. Al restaurar la cookie desde el almac\\u00e9n de sesiones, el campo \\\"expires\\\" se anula si se configur\\u00f3 el campo \\\"maxAge\\\". Esto significa que una cookie nunca se detecta correctamente como caducada y, por lo tanto, las sesiones caducadas no se destruyen. Esta vulnerabilidad ha sido parcheada 10.8.0.\"}]",
      "id": "CVE-2024-35220",
      "lastModified": "2024-11-21T09:19:57.883",
      "metrics": "{\"cvssMetricV31\": [{\"source\": \"security-advisories@github.com\", \"type\": \"Secondary\", \"cvssData\": {\"version\": \"3.1\", \"vectorString\": \"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N\", \"baseScore\": 7.4, \"baseSeverity\": \"HIGH\", \"attackVector\": \"NETWORK\", \"attackComplexity\": \"LOW\", \"privilegesRequired\": \"NONE\", \"userInteraction\": \"REQUIRED\", \"scope\": \"CHANGED\", \"confidentialityImpact\": \"HIGH\", \"integrityImpact\": \"NONE\", \"availabilityImpact\": \"NONE\"}, \"exploitabilityScore\": 2.8, \"impactScore\": 4.0}]}",
      "published": "2024-05-21T21:15:08.117",
      "references": "[{\"url\": \"https://github.com/fastify/session/commit/0495ce5b534c4550f25228821db8098293439f2f\", \"source\": \"security-advisories@github.com\"}, {\"url\": \"https://github.com/fastify/session/issues/251\", \"source\": \"security-advisories@github.com\"}, {\"url\": \"https://github.com/fastify/session/security/advisories/GHSA-pj27-2xvp-4qxg\", \"source\": \"security-advisories@github.com\"}, {\"url\": \"https://github.com/fastify/session/commit/0495ce5b534c4550f25228821db8098293439f2f\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\"}, {\"url\": \"https://github.com/fastify/session/issues/251\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\"}, {\"url\": \"https://github.com/fastify/session/security/advisories/GHSA-pj27-2xvp-4qxg\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\"}]",
      "sourceIdentifier": "security-advisories@github.com",
      "vulnStatus": "Awaiting Analysis",
      "weaknesses": "[{\"source\": \"security-advisories@github.com\", \"type\": \"Secondary\", \"description\": [{\"lang\": \"en\", \"value\": \"CWE-613\"}]}]"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2024-35220\",\"sourceIdentifier\":\"security-advisories@github.com\",\"published\":\"2024-05-21T21:15:08.117\",\"lastModified\":\"2024-11-21T09:19:57.883\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"@fastify/session is a session plugin for fastify. Requires the @fastify/cookie plugin. When restoring the cookie from the session store, the `expires` field is overriden if the `maxAge` field was set.\\nThis means a cookie is never correctly detected as expired and thus expired sessions are not destroyed. This vulnerability has been patched 10.8.0.\"},{\"lang\":\"es\",\"value\":\"@fastify/session es un complemento de sesi\u00f3n para fastify. Requiere el complemento @fastify/cookie. Al restaurar la cookie desde el almac\u00e9n de sesiones, el campo \\\"expires\\\" se anula si se configur\u00f3 el campo \\\"maxAge\\\". Esto significa que una cookie nunca se detecta correctamente como caducada y, por lo tanto, las sesiones caducadas no se destruyen. Esta vulnerabilidad ha sido parcheada 10.8.0.\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"security-advisories@github.com\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N\",\"baseScore\":7.4,\"baseSeverity\":\"HIGH\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"REQUIRED\",\"scope\":\"CHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"NONE\"},\"exploitabilityScore\":2.8,\"impactScore\":4.0}]},\"weaknesses\":[{\"source\":\"security-advisories@github.com\",\"type\":\"Secondary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-613\"}]}],\"references\":[{\"url\":\"https://github.com/fastify/session/commit/0495ce5b534c4550f25228821db8098293439f2f\",\"source\":\"security-advisories@github.com\"},{\"url\":\"https://github.com/fastify/session/issues/251\",\"source\":\"security-advisories@github.com\"},{\"url\":\"https://github.com/fastify/session/security/advisories/GHSA-pj27-2xvp-4qxg\",\"source\":\"security-advisories@github.com\"},{\"url\":\"https://github.com/fastify/session/commit/0495ce5b534c4550f25228821db8098293439f2f\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"https://github.com/fastify/session/issues/251\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"https://github.com/fastify/session/security/advisories/GHSA-pj27-2xvp-4qxg\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"}]}}",
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://github.com/fastify/session/security/advisories/GHSA-pj27-2xvp-4qxg\", \"name\": \"https://github.com/fastify/session/security/advisories/GHSA-pj27-2xvp-4qxg\", \"tags\": [\"x_refsource_CONFIRM\", \"x_transferred\"]}, {\"url\": \"https://github.com/fastify/session/issues/251\", \"name\": \"https://github.com/fastify/session/issues/251\", \"tags\": [\"x_refsource_MISC\", \"x_transferred\"]}, {\"url\": \"https://github.com/fastify/session/commit/0495ce5b534c4550f25228821db8098293439f2f\", \"name\": \"https://github.com/fastify/session/commit/0495ce5b534c4550f25228821db8098293439f2f\", \"tags\": [\"x_refsource_MISC\", \"x_transferred\"]}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2024-08-02T03:07:46.810Z\"}}, {\"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2024-35220\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"poc\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-05-22T15:49:51.191902Z\"}}}], \"affected\": [{\"cpes\": [\"cpe:2.3:a:fastify:session:0:*:*:*:*:*:*:*\"], \"vendor\": \"fastify\", \"product\": \"session\", \"versions\": [{\"status\": \"affected\", \"version\": \"0\", \"versionType\": \"custom\", \"lessThanOrEqual\": \"10.8.0\"}, {\"status\": \"unaffected\", \"version\": \"10.9.0\"}], \"defaultStatus\": \"unknown\"}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-05-22T15:55:06.916Z\"}, \"title\": \"CISA ADP Vulnrichment\"}], \"cna\": {\"title\": \"@fastify/session reuses destroyed session cookie\", \"source\": {\"advisory\": \"GHSA-pj27-2xvp-4qxg\", \"discovery\": \"UNKNOWN\"}, \"metrics\": [{\"cvssV3_1\": {\"scope\": \"CHANGED\", \"version\": \"3.1\", \"baseScore\": 7.4, \"attackVector\": \"NETWORK\", \"baseSeverity\": \"HIGH\", \"vectorString\": \"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N\", \"integrityImpact\": \"NONE\", \"userInteraction\": \"REQUIRED\", \"attackComplexity\": \"LOW\", \"availabilityImpact\": \"NONE\", \"privilegesRequired\": \"NONE\", \"confidentialityImpact\": \"HIGH\"}}], \"affected\": [{\"vendor\": \"fastify\", \"product\": \"session\", \"versions\": [{\"status\": \"affected\", \"version\": \"\u003c 10.9.0\"}]}], \"references\": [{\"url\": \"https://github.com/fastify/session/security/advisories/GHSA-pj27-2xvp-4qxg\", \"name\": \"https://github.com/fastify/session/security/advisories/GHSA-pj27-2xvp-4qxg\", \"tags\": [\"x_refsource_CONFIRM\"]}, {\"url\": \"https://github.com/fastify/session/issues/251\", \"name\": \"https://github.com/fastify/session/issues/251\", \"tags\": [\"x_refsource_MISC\"]}, {\"url\": \"https://github.com/fastify/session/commit/0495ce5b534c4550f25228821db8098293439f2f\", \"name\": \"https://github.com/fastify/session/commit/0495ce5b534c4550f25228821db8098293439f2f\", \"tags\": [\"x_refsource_MISC\"]}], \"descriptions\": [{\"lang\": \"en\", \"value\": \"@fastify/session is a session plugin for fastify. Requires the @fastify/cookie plugin. When restoring the cookie from the session store, the `expires` field is overriden if the `maxAge` field was set.\\nThis means a cookie is never correctly detected as expired and thus expired sessions are not destroyed. This vulnerability has been patched 10.8.0.\"}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-613\", \"description\": \"CWE-613: Insufficient Session Expiration\"}]}], \"providerMetadata\": {\"orgId\": \"a0819718-46f1-4df5-94e2-005712e83aaa\", \"shortName\": \"GitHub_M\", \"dateUpdated\": \"2024-05-21T20:26:53.312Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2024-35220\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2024-08-02T03:07:46.810Z\", \"dateReserved\": \"2024-05-14T15:39:41.783Z\", \"assignerOrgId\": \"a0819718-46f1-4df5-94e2-005712e83aaa\", \"datePublished\": \"2024-05-21T20:26:53.312Z\", \"assignerShortName\": \"GitHub_M\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…