Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2018-1000159
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 10:02 UTC · Revision 1
Source evidence
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.
osv:CVE-2018-1000159
Complete source record
{
"id": "c3ce6c93f6602fbf8e1e75195b2f2efd87e8a44020e84e56c4f901a859227530",
"url": "https://osv.dev/vulnerability/CVE-2018-1000159",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2018-1000159",
"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.",
"evidence": "osv:CVE-2018-1000159",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2018-1000159",
"aliases": [
"CVE-2018-1000159",
"GHSA-cwh5-3cw7-4286",
"PYSEC-2018-31"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/tlsfuzzer/tlslite-ng",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "2f24f4edf4645aa6ae597aa768fb9ba7da686a7f"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:tlslite-ng_project:tlslite-ng:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "0.7.3"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v0.7.3",
"v0.7.2",
"v0.7.1",
"v0.7.0",
"v0.7.0-beta1",
"v0.7.0-alpha9",
"v0.7.0-alpha8",
"v0.7.0-alpha7",
"v0.7.0-alpha6",
"v0.7.0-alpha5",
"v0.7.0-alpha4",
"v0.7.0-alpha3",
"v0.7.0-alpha2",
"v0.7.0-alpha1",
"v0.6.0",
"v0.6.0-beta1",
"v0.6.0-alpha5",
"v0.6.0-alpha4",
"v0.5.1",
"v0.6.0-alpha3",
"v0.6.0-alpha2",
"v0.6.0-alpha1",
"v0.5.0",
"v0.5.0-beta6",
"v0.5.0-beta4",
"v0.5.0-beta3",
"fork-start",
"v0.4.8",
"v0.4.3",
"v0.4.2",
"v0.4.1",
"v0.3.9x"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-1000159.json"
}
}
],
"modified": "2026-10-20T10:49:46.102066201Z",
"provider": "osv",
"references": [
"https://github.com/tomato42/tlslite-ng/pull/234"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2018-1000159",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 380783,
"published_at": "2018-04-18T19:29:00.333+00:00"
}