CVE-2018-1000814: Aiohttp session Aiohttp-session Creates Non-expiring Sessions Vulnerability

HIGH
Advisory Identifier: GHSA-mr4x-c4v9-x729
CVSS 6.5
CWE-613
Published
Advisory Summary

CVE-2018-1000814 is a HIGH (CVSS 6.5) aiohttp-session creates non-expiring sessions vulnerability (CWE-613: Insufficient Session Expiration) affecting Aiohttp session libraries in the PyPI ecosystem. The issue involves aiohttp-session creates non-expiring sessions. Remediation is available by upgrading affected packages to version 2.7.0.

CVE-2018-1000814 at a Glance

CVE Identifier CVE-2018-1000814
GHSA Identifier GHSA-mr4x-c4v9-x729
Severity HIGH
CVSS v3.1 Base Score 6.5
CWE Classification CWE-613: Insufficient Session Expiration
Affected Product Aiohttp session
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 6.5

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

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

How to Fix CVE-2018-1000814

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

aiohttp-session fixed: 2.7.0
pip install aiohttp-session>=2.7.0
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 aiohttp-session

How to Check if You Are Affected

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

pip show aiohttp-session

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

Note: The pip show aiohttp-session 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 Aiohttp session, 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

aio-libs aiohttp-session version 2.6.0 and earlier contains a Other/Unknown vulnerability in EncryptedCookieStorage and NaClCookieStorage that can result in Non-expiring sessions / Infinite lifespan. This attack appear to be exploitable via Recreation of a cookie post-expiry with the same value.

CVE-2018-1000814 Affected Aiohttp session Versions

1 component(s)
Fixed Versions:
2.7.0
Product / Package Ecosystem Affected Versions Fixed Version
aiohttp-session
PyPI
< 2.7.0
2.7.0

References

Frequently Asked Questions

What is CVE-2018-1000814?
CVE-2018-1000814 is a security vulnerability in Aiohttp session involving aiohttp-session creates non-expiring sessions under CWE-613: Insufficient Session Expiration.
Which Aiohttp session versions are affected?
Affected versions include releases prior to 2.7.0 across affected packages: aiohttp-session.
What version fixes CVE-2018-1000814?
Upgrading to 2.7.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is aiohttp-session affected?
Yes, aiohttp-session is affected in releases prior to 2.7.0. Upgrade your dependency to 2.7.0 or later.
What is the CVSS score of CVE-2018-1000814?
CVE-2018-1000814 has a CVSS v3.1 base score of 6.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2018-1000814?
CVE-2018-1000814 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-2018-1000814?
Run the dependency tree command: 'pip show aiohttp-session'. 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-mr4x-c4v9-x729",
  "modified" : "2025-03-14T20:26:12Z",
  "published" : "2018-12-20T22:01:46Z",
  "aliases" : [ "CVE-2018-1000814" ],
  "summary" : "aiohttp-session creates non-expiring sessions",
  "details" : "aio-libs aiohttp-session version 2.6.0 and earlier contains a Other/Unknown vulnerability in EncryptedCookieStorage and NaClCookieStorage that can result in Non-expiring sessions / Infinite lifespan. This attack appear to be exploitable via Recreation of a cookie post-expiry with the same value.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "aiohttp-session"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.7.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.6.0"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-1000814"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/aio-libs/aiohttp-session/issues/325"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/aio-libs/aiohttp-session/pull/331"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/aio-libs/aiohttp-session/commit/1b356f01bbab57d041c9a75bacd72fbbf8524728"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-mr4x-c4v9-x729"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/aio-libs/aiohttp-session"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/aiohttp-session/PYSEC-2018-35.yaml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-613" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:47:02Z",
    "nvd_published_at" : "2018-12-20T15:29:00Z"
  }
}