{"id":"CVE-2018-1000159","aliases":["CVE-2018-1000159","GHSA-cwh5-3cw7-4286","PYSEC-2018-31"],"related":[],"kind":"vulnerability","state":"published","title":"tlslite-ng off-by-one error on mac checking","summary":"tlslite-ng version 0.7.3 and earlier, since commit d7b288316bca7bcdd082e6ccff5491e241305233 contains a CWE-354: Improper Validation of Integrity Check Value vulnerability in TLS implementation, tlslite/utils/constanttime.py: ct_check_cbc_mac_and_pad(); line \"end_pos = data_len - 1 - mac.digest_size\" that can result in an attacker manipulating the TLS ciphertext which will not be detected by receiving tlslite-ng. This attack appears to be exploitable via man in the middle on a network connection. This vulnerability appears to have been fixed after commit 3674815d1b0f7484454995e2737a352e0a6a93d8.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"tlslite-ng version 0.7.3 and earlier, since commit d7b288316bca7bcdd082e6ccff5491e241305233 contains a CWE-354: Improper Validation of Integrity Check Value vulnerability in TLS implementation, tlslite/utils/constanttime.py: ct_check_cbc_mac_and_pad(); line \"end_pos = data_len - 1 - mac.digest_size\" that can result in an attacker manipulating the TLS ciphertext which will not be detected by receiving tlslite-ng. This attack appears to be exploitable via man in the middle on a network connection. This vulnerability appears to have been fixed after commit 3674815d1b0f7484454995e2737a352e0a6a93d8.","source":"cvelist"},{"lang":"en","text":"tlslite-ng version 0.7.3 and earlier, since commit [d7b288316bca7bcdd082e6ccff5491e241305233](https://github.com/tlsfuzzer/tlslite-ng/commit/d7b288316bca7bcdd082e6ccff5491e241305233) contains a CWE-354: Improper Validation of Integrity Check Value vulnerability in TLS implementation, `tlslite/utils/constanttime.py`: `ct_check_cbc_mac_and_pad()`; line `end_pos = data_len - 1 - mac.digest_size` that can result in an attacker manipulating the TLS ciphertext which will not be detected by receiving tlslite-ng. This attack appears to be exploitable via man in the middle on a network connection. This vulnerability appears to have been fixed after commit [3674815d1b0f7484454995e2737a352e0a6a93d8](https://github.com/tlsfuzzer/tlslite-ng/pull/234/commits/3674815d1b0f7484454995e2737a352e0a6a93d8).","format":"markdown","source":"ghsa"},{"lang":"es","text":"tlslite-ng, en versiones 0.7.3 y anteriores, desde el commit con ID d7b288316bca7bcdd082e6ccff5491e241305233, contiene un CWE-354: vulnerabilidad de validación incorrecta del valor de comprobación de integridad en la implementación TLS, tlslite/utils/constanttime.py: ct_check_cbc_mac_and_pad(); en la línea \"end_pos = data_len - 1 - mac.digest_size\" que puede resultar en que un atacante manipule el texto cifrado TLS, que no será detectado por recibir tlslite-ng. El ataque parece ser explotable mediante un Man-in-the-Middle (MitM) en una conexión de red. La vulnerabilidad parece haber sido solucionada tras el commit con ID 3674815d1b0f7484454995e2737a352e0a6a93d8.","source":"nvd"}],"published":"2018-04-18T19:00:00.000Z","modified":"2026-06-17T01:32:33.520Z","severity":{"scorer":"NVD","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","score":5.9,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-354"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.7.4"}],"ecosystem":"PyPI","package":"tlslite-ng","purl":"pkg:pypi/tlslite-ng","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"0.7.3"}],"vendor":"tlslite-ng_project","product":"tlslite-ng","cpe":"cpe:2.3:a:tlslite-ng_project:tlslite-ng:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.7.4"}],"ecosystem":"PyPI","package":"tlslite-ng","purl":"pkg:pypi/tlslite-ng","source":"pysec"}],"references":[{"url":"https://github.com/tomato42/tlslite-ng/pull/234","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-1000159","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/tlsfuzzer/tlslite-ng/pull/234/commits/3674815d1b0f7484454995e2737a352e0a6a93d8","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/tlsfuzzer/tlslite-ng/commit/d7b288316bca7bcdd082e6ccff5491e241305233","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/tlslite-ng/PYSEC-2018-31.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/tomato42/tlslite-ng","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-cwh5-3cw7-4286","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2018-1000159","url":"https://www.cve.org/CVERecord?id=CVE-2018-1000159","licence":"CVE Terms of Use","modified":"2024-08-05T12:33:49.333Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-cwh5-3cw7-4286","url":"https://github.com/advisories/GHSA-cwh5-3cw7-4286","licence":"CC-BY-4.0","modified":"2024-11-24T05:38:43.510Z"},{"source":"nvd","name":"NVD","id":"CVE-2018-1000159","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-1000159","licence":"Public domain","modified":"2026-06-17T01:32:33.520Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2018-31","url":"https://osv.dev/vulnerability/PYSEC-2018-31","licence":"CC-BY-4.0","modified":"2023-11-08T03:59:36.197Z"}],"updatedAt":"2026-11-25T22:57:37.281Z","epss":{"score":0.00772,"percentile":0.56891,"date":"2026-12-01T12:00:22.000Z"}}