artkamote / examples

Serverless Examples – A collection of boilerplates and examples of serverless architectures built with the Serverless Framework on AWS Lambda, Microsoft Azure, Google Cloud Functions, and more.
https://www.serverless.com/examples/
Other
0 stars 0 forks source link

CVE-2024-21538 (High) detected in multiple libraries #412

Open mend-bolt-for-github[bot] opened 1 week ago

mend-bolt-for-github[bot] commented 1 week ago

CVE-2024-21538 - High Severity Vulnerability

Vulnerable Libraries - cross-spawn-5.1.0.tgz, cross-spawn-6.0.5.tgz, cross-spawn-7.0.3.tgz

cross-spawn-5.1.0.tgz

Cross platform child_process#spawn and child_process#spawnSync

Library home page: https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz

Path to dependency file: /aws-node-http-api-typescript/package.json

Path to vulnerable library: /aws-node-http-api-typescript/node_modules/execa/node_modules/cross-spawn/package.json,/azure-node-telegram-bot/node_modules/execa/node_modules/cross-spawn/package.json,/aws-node-puppeteer/node_modules/cross-spawn/package.json,/aws-node-dynamic-image-resizer/node_modules/term-size/node_modules/cross-spawn/package.json,/aws-node-typescript-apollo-lambda/node_modules/serverless/node_modules/cross-spawn/package.json,/aws-golang-auth-examples/node_modules/execa/node_modules/cross-spawn/package.json,/aws-rust-simple-http-endpoint/node_modules/execa/node_modules/cross-spawn/package.json,/aws-node-typescript-nest/node_modules/cross-spawn/package.json,/aws-node-fullstack/frontend/node_modules/execa/node_modules/cross-spawn/package.json,/azure-node-line-bot/node_modules/execa/node_modules/cross-spawn/package.json,/aws-node-typescript-apollo-lambda/node_modules/@serverless/enterprise-plugin/node_modules/cross-spawn/package.json,/aws-node-signed-uploads/node_modules/cross-spawn/package.json,/aws-node-rest-api-typescript-simple/node_modules/execa/node_modules/cross-spawn/package.json,/aws-golang-dynamo-stream-to-elasticsearch/node_modules/execa/node_modules/cross-spawn/package.json,/aws-dotnet-rest-api-with-dynamodb/src/DotNetServerless.Lambda/node_modules/cross-spawn/package.json,/aws-node-oauth-dropbox-api/node_modules/cross-spawn/package.json,/aws-node-rest-api-typescript/node_modules/execa/node_modules/cross-spawn/package.json,/aws-python-auth0-custom-authorizers-api/node_modules/execa/node_modules/cross-spawn/package.json,/azure-node-typescript-servicebus-trigger-endpoint/node_modules/execa/node_modules/cross-spawn/package.json

Dependency Hierarchy: - serverless-1.83.3.tgz (Root Library) - boxen-3.2.0.tgz - term-size-1.2.0.tgz - execa-0.7.0.tgz - :x: **cross-spawn-5.1.0.tgz** (Vulnerable Library)

cross-spawn-6.0.5.tgz

Cross platform child_process#spawn and child_process#spawnSync

Library home page: https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz

Path to dependency file: /aws-node-rest-api-typescript-simple/package.json

Path to vulnerable library: /aws-node-rest-api-typescript-simple/node_modules/cross-spawn/package.json,/aws-python-auth0-custom-authorizers-api/node_modules/cross-spawn/package.json,/aws-golang-auth-examples/node_modules/cross-spawn/package.json,/aws-node-http-api-typescript/node_modules/cross-spawn/package.json,/aws-rust-simple-http-endpoint/node_modules/cross-spawn/package.json,/aws-node-dynamic-image-resizer/node_modules/cross-spawn/package.json,/aws-golang-dynamo-stream-to-elasticsearch/node_modules/cross-spawn/package.json,/aws-node-typescript-kinesis/node_modules/cross-spawn/package.json,/node_modules/cross-spawn/package.json,/aws-node-fullstack/frontend/node_modules/cross-spawn/package.json,/aws-node-typescript-sqs-standard/node_modules/cross-spawn/package.json,/aws-node-typescript-apollo-lambda/node_modules/cross-spawn/package.json,/aws-node-fullstack/backend/node_modules/cross-spawn/package.json

Dependency Hierarchy: - eslint-6.6.0.tgz (Root Library) - :x: **cross-spawn-6.0.5.tgz** (Vulnerable Library)

cross-spawn-7.0.3.tgz

Cross platform child_process#spawn and child_process#spawnSync

Library home page: https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz

Path to dependency file: /aws-node-typescript-nest/package.json

Path to vulnerable library: /aws-node-typescript-nest/node_modules/serverless-offline/node_modules/cross-spawn/package.json,/aws-node-rest-api-with-dynamodb-and-offline/node_modules/cross-spawn/package.json,/aws-node-http-api-dynamodb-local/node_modules/cross-spawn/package.json,/aws-node-typescript-apollo-lambda/node_modules/execa/node_modules/cross-spawn/package.json,/aws-node-rest-api-typescript-simple/node_modules/serverless-offline/node_modules/cross-spawn/package.json,/azure-node-line-bot/node_modules/cross-spawn/package.json,/aws-node-http-api-typescript/node_modules/serverless-offline/node_modules/cross-spawn/package.json,/aws-node-vue-nuxt-ssr/node_modules/cross-spawn/package.json,/azure-node-typescript-servicebus-trigger-endpoint/node_modules/cross-spawn/package.json,/azure-node-telegram-bot/node_modules/cross-spawn/package.json,/aws-node-rest-api-typescript/node_modules/cross-spawn/package.json

Dependency Hierarchy: - nuxt-2.15.8.tgz (Root Library) - cli-2.15.8.tgz - execa-5.1.1.tgz - :x: **cross-spawn-7.0.3.tgz** (Vulnerable Library)

Found in HEAD commit: dcbe4aefe4b3685f4b15493a01db0f19b118a0c4

Found in base branch: master

Vulnerability Details

Versions of the package cross-spawn before 7.0.5 are vulnerable to Regular Expression Denial of Service (ReDoS) due to improper input sanitization. An attacker can increase the CPU usage and crash the program by crafting a very large and well crafted string.

Publish Date: 2024-11-08

URL: CVE-2024-21538

CVSS 3 Score Details (7.5)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: None - Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://www.cve.org/CVERecord?id=CVE-2024-21538

Release Date: 2024-11-08

Fix Resolution: cross-spawn - 7.0.5


Step up your Open Source Security Game with Mend here