CVE-2018-1000814: Aiohttp session Aiohttp-session Creates Non-expiring Sessions Vulnerability
HIGHCVE-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
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).
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.
pip install aiohttp-session>=2.7.0
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
CVE-2018-1000814 Affected Aiohttp session Versions
1 component(s)| 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?
Which Aiohttp session versions are affected?
What version fixes CVE-2018-1000814?
Is aiohttp-session affected?
What is the CVSS score of CVE-2018-1000814?
What CWE is associated with CVE-2018-1000814?
How can I check PyPI dependencies for CVE-2018-1000814?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}