VDB
GHSA-h6jh-7gv5-28vg
GHSA-h6jh-7gv5-28vg
PUBLISHED
CVSS 5.5 MEDIUM
Bad alloc in `StringNGrams` caused by integer conversion
Record from GitHub Advisory Database · Published August 25, 2021
Bad alloc in `StringNGrams` caused by integer conversion
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| tensorflow | PyPI | 2.5.1, 2.4.3, 2.3.4 |
| tensorflow-cpu | PyPI | 2.5.1, 2.4.3, 2.3.4 |
| tensorflow-gpu | PyPI | 2.5.1, 2.4.3, 2.3.4 |
Risk scores
CVSS 3.1
5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected products
| Vendor | Product | Versions |
|---|---|---|
| PyPI | tensorflow | 2.4.0, 2.5.0, 0 |
| PyPI | tensorflow-cpu | 0, 2.5.0, 2.4.0 |
| PyPI | tensorflow | 2.4.0, 2.5.0, 0 |
| PyPI | tensorflow-gpu | 2.5.0, 0, 2.4.0 |
| PyPI | tensorflow-cpu | 0, 2.5.0, 2.4.0 |
| PyPI | tensorflow-gpu | 2.5.0, 2.4.0, 2.5.0 |
Timeline
- Aug 25, 2021 CVE Published
- Mar 18, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln GHSA-h6jh-7gv5-28vg
vulnetix vdb fixes GHSA-h6jh-7gv5-28vg
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/GHSA-h6jh-7gv5-28vg/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- GitHub Advisory GHSA-h6jh-7gv5-28vg vendor-advisory
- https://nvd.nist.gov/vuln/detail/CVE-2021-37646 advisory
- https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2021-268.yaml url
- https://github.com/tensorflow/tensorflow package
- https://github.com/tensorflow/tensorflow/commit/c283e542a3f422420cfdb332414543b62fc4e4a5 url
- https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2021-757.yaml url
- https://github.com/tensorflow/tensorflow/security/advisories/GHSA-h6jh-7gv5-28vg url
- https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2021-559.yaml url