{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2023-42658",
        "assignerOrgId": "f9fea0b6-671e-4eea-8fde-31911902ae05",
        "state": "PUBLISHED",
        "assignerShortName": "ProgressSoftware",
        "dateReserved": "2023-09-12T13:30:29.571Z",
        "datePublished": "2023-10-31T14:08:03.537Z",
        "dateUpdated": "2024-09-06T16:00:52.926Z"
    },
    "containers": {
        "cna": {
            "affected": [
                {
                    "collectionURL": "https://community.chef.io/downloads/tools/inspec?os=windows",
                    "defaultStatus": "affected",
                    "modules": [
                        "InSpec Archive",
                        "InSpec Check",
                        "InSpec Export"
                    ],
                    "packageName": "InSpec",
                    "platforms": [
                        "Windows",
                        "Linux",
                        "MacOS"
                    ],
                    "product": "Chef InSpec",
                    "repo": "https://github.com/inspec/inspec",
                    "vendor": "Progress Software Corporation",
                    "versions": [
                        {
                            "lessThan": "4.56.58 ",
                            "status": "affected",
                            "version": "4.0.0",
                            "versionType": "semver"
                        },
                        {
                            "lessThan": "5.22.29",
                            "status": "affected",
                            "version": "5.0.0",
                            "versionType": "semver"
                        }
                    ]
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "type": "finder",
                    "user": "00000000-0000-4000-9000-000000000000",
                    "value": "HackerOne - tas50"
                }
            ],
            "descriptions": [
                {
                    "lang": "en",
                    "supportingMedia": [
                        {
                            "base64": false,
                            "type": "text/html",
                            "value": "\n\nArchive command in Chef InSpec prior to 4.56.58 and 5.22.29 allow local command execution via maliciously crafted profile."
                        }
                    ],
                    "value": "\nArchive command in Chef InSpec prior to 4.56.58 and 5.22.29 allow local command execution via maliciously crafted profile."
                }
            ],
            "impacts": [
                {
                    "capecId": "CAPEC-549",
                    "descriptions": [
                        {
                            "lang": "en",
                            "value": "CAPEC-549 Local Execution of Code"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "attackComplexity": "LOW",
                        "attackVector": "LOCAL",
                        "availabilityImpact": "HIGH",
                        "baseScore": 8.8,
                        "baseSeverity": "HIGH",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "HIGH",
                        "privilegesRequired": "LOW",
                        "scope": "CHANGED",
                        "userInteraction": "NONE",
                        "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H",
                        "version": "3.1"
                    },
                    "format": "CVSS",
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "GENERAL"
                        }
                    ]
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-94",
                            "description": "CWE-94 Improper Control of Generation of Code ('Code Injection')",
                            "lang": "en",
                            "type": "CWE"
                        }
                    ]
                },
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-917",
                            "description": "CWE-917 Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection')",
                            "lang": "en",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "f9fea0b6-671e-4eea-8fde-31911902ae05",
                "shortName": "ProgressSoftware",
                "dateUpdated": "2023-10-31T15:14:29.727Z"
            },
            "references": [
                {
                    "tags": [
                        "release-notes"
                    ],
                    "url": "https://docs.chef.io/release_notes_inspec/"
                },
                {
                    "tags": [
                        "release-notes"
                    ],
                    "url": "https://docs.chef.io/inspec/cli/"
                },
                {
                    "tags": [
                        "vendor-advisory"
                    ],
                    "url": "https://community.progress.com/s/article/Product-Alert-Bulletin-October-2023-CHEF-Inspec-CVE-2023-42658"
                }
            ],
            "solutions": [
                {
                    "lang": "en",
                    "supportingMedia": [
                        {
                            "base64": false,
                            "type": "text/html",
                            "value": "\n\n<strong>Solution (optional): </strong>Customers should adopt the latest releases of InSpec on the 4, 5, and 6 supported versions available from the community and customer downloads portals.\n\n<br>"
                        }
                    ],
                    "value": "\nSolution (optional): Customers should adopt the latest releases of InSpec on the 4, 5, and 6 supported versions available from the community and customer downloads portals.\n\n\n"
                }
            ],
            "source": {
                "discovery": "EXTERNAL"
            },
            "title": "InSpec Archive Command Vulnerable to Maliciously Crafted Profile",
            "workarounds": [
                {
                    "lang": "en",
                    "supportingMedia": [
                        {
                            "base64": false,
                            "type": "text/html",
                            "value": "\n\n<strong>Workaround (optional): </strong>Chef recommends all users to manually inspect and lint with a tool similar to test-kitchen all profiles and cookbooks prior to usage in production.\n\n<br>"
                        }
                    ],
                    "value": "\nWorkaround (optional): Chef recommends all users to manually inspect and lint with a tool similar to test-kitchen all profiles and cookbooks prior to usage in production.\n\n\n"
                }
            ],
            "x_generator": {
                "engine": "Vulnogram 0.1.0-dev"
            }
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-02T19:23:40.222Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "tags": [
                            "release-notes",
                            "x_transferred"
                        ],
                        "url": "https://docs.chef.io/release_notes_inspec/"
                    },
                    {
                        "tags": [
                            "release-notes",
                            "x_transferred"
                        ],
                        "url": "https://docs.chef.io/inspec/cli/"
                    },
                    {
                        "tags": [
                            "vendor-advisory",
                            "x_transferred"
                        ],
                        "url": "https://community.progress.com/s/article/Product-Alert-Bulletin-October-2023-CHEF-Inspec-CVE-2023-42658"
                    }
                ]
            },
            {
                "affected": [
                    {
                        "vendor": "chef",
                        "product": "inspec",
                        "cpes": [
                            "cpe:2.3:a:chef:inspec:*:*:*:*:*:*:*:*"
                        ],
                        "defaultStatus": "unknown",
                        "versions": [
                            {
                                "version": "4.0",
                                "status": "affected",
                                "lessThan": "4.56.58",
                                "versionType": "custom"
                            },
                            {
                                "version": "5.0",
                                "status": "affected",
                                "lessThan": "5.22.29",
                                "versionType": "custom"
                            },
                            {
                                "version": "0",
                                "status": "affected",
                                "lessThan": "4.0",
                                "versionType": "custom"
                            }
                        ]
                    }
                ],
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2024-09-06T15:43:59.488901Z",
                                "id": "CVE-2023-42658",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "total"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-09-06T16:00:52.926Z"
                }
            }
        ]
    }
}