{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2018-10903","id":"CVE-2018-10903","title":"PyCA Cryptography vulnerable to GCM tag forgery","description":"A flaw was found in python-cryptography versions between >=1.9.0 and <2.3. The finalize_with_tag API did not enforce a minimum tag length. If a user did not validate the input length prior to passing it to finalize_with_tag an attacker could craft an invalid payload with a shortened tag (e.g. 1 byte) such that they would have a 1 in 256 chance of passing the MAC check. GCM tag forgeries can cause ","descriptionLong":"A flaw was found in python-cryptography versions between >=1.9.0 and <2.3. The finalize_with_tag API did not enforce a minimum tag length. If a user did not validate the input length prior to passing it to finalize_with_tag an attacker could craft an invalid payload with a shortened tag (e.g. 1 byte) such that they would have a 1 in 256 chance of passing the MAC check. GCM tag forgeries can cause key leakage.","published":"2018-07-30T15:00:00.000Z","updated":"2026-10-20T10:50:16.309366168Z","reserved":"2018-05-09T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"redhat","metric":{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"redhat"},"metrics":[{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","rating":"high","source":"GitHub"},{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"redhat"},{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"redhat.com"},{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"NVD"},{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"OSV"},{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"GitHub"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","rating":"medium","source":"NVD"}],"rating":"high","products":["[UNKNOWN] python-cryptography"],"affectedProducts":[{"vendor":"[UNKNOWN]","product":"python-cryptography","defaultStatus":null,"versions":[{"status":"affected","version":"2.3"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"cryptography","purl":"pkg:pypi/cryptography","ranges":[">=1.9.0 <2.3",">=1.9 <2.3"],"fixed":["2.3"],"advisory":"GHSA-fcf9-3qw3-gxmj"}],"cwes":["CWE-20"],"aliases":["GHSA-fcf9-3qw3-gxmj","PYSEC-2018-52"],"references":[{"url":"https://access.redhat.com/errata/RHSA-2018:3600","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","advisory","web"]},{"url":"https://usn.ubuntu.com/3720-1/","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-10903","tags":["x_refsource_CONFIRM","x_transferred","Issue Tracking","Patch","Third Party Advisory","fix","web","report"]},{"url":"https://github.com/pyca/cryptography/pull/4342/commits/688e0f673bfbf43fa898994326c6877f00ab19ef","tags":["x_refsource_CONFIRM","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-10903","tags":["advisory"]},{"url":"https://github.com/pyca/cryptography/pull/4342","tags":["web"]},{"url":"https://github.com/pyca/cryptography/commit/d4378e42937b56f473ddade2667f919ce32208cb","tags":["web"]},{"url":"https://github.com/advisories/GHSA-fcf9-3qw3-gxmj","tags":["advisory"]},{"url":"https://github.com/pyca/cryptography","tags":["package"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/cryptography/PYSEC-2018-52.yaml","tags":["web"]},{"url":"https://usn.ubuntu.com/3720-1","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.03196,"epssPercentile":0.88372,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2018-10903","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-10903","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2018-10903","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-fcf9-3qw3-gxmj","ok":true,"note":"GHSA-fcf9-3qw3-gxmj"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2018-10903","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}