Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS Security Hub Report #160

Open
vchettur opened this issue Nov 19, 2024 · 0 comments
Open

AWS Security Hub Report #160

vchettur opened this issue Nov 19, 2024 · 0 comments

Comments

@vchettur
Copy link

vchettur commented Nov 19, 2024

AWS Security Hub identified the following five issues:

  1. Description: The package terser before 4.8.1, from 5.0.0 and before 5.14.2 are vulnerable to Regular Expression Denial of Service (ReDoS) due to insecure usage of regular expressions. Recommendation: Remediation is available.

    Vulnerabilities

    [
        {
          "Cvss": [
            {
              "BaseScore": 7.5,
              "BaseVector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
              "Source": "NVD",
              "Version": "3.1"
            },
            {
              "BaseScore": 7.5,
              "BaseVector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
              "Source": "NVD",
              "Version": "3.1"
            }
          ],
          "EpssScore": 0.00262,
          "ExploitAvailable": "NO",
          "FixAvailable": "YES",
          "Id": "CVE-2022-25858",
          "Vendor": {
            "VendorCreatedAt": "2022-07-15T20:15:08.000Z",
            "VendorSeverity": "HIGH",
            "Url": "https://nvd.nist.gov/vuln/detail/CVE-2022-25858",
            "Name": "NVD",
            "VendorUpdatedAt": "2023-08-08T14:22:24.000Z"
          },
          "VulnerablePackages": [
            {
              "FilePath": "nodejs/package-lock.json",
              "PackageManager": "NODE",
              "Version": "5.7.2",
              "Epoch": "0",
              "FixedInVersion": "5.14.2",
              "SourceLayerArn": "arn:aws:lambda:ca-central-1:625046682746:layer:libvips-sharp-jp2:4",
              "Name": "terser"
            }
          ]
        }
      ]
  2. Description: Heap buffer overflow in libwebp in Google Chrome prior to 116.0.5845.187 and libwebp 1.3.2 allowed a remote attacker to perform an out of bounds memory write via a crafted HTML page. (Chromium security severity: Critical). Remediation is available.

    Vulnerabilities

    [
        {
          "Cvss": [
            {
              "BaseScore": 8.8,
              "BaseVector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
              "Source": "NVD",
              "Version": "3.1"
            },
            {
              "BaseScore": 8.8,
              "BaseVector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
              "Source": "NVD",
              "Version": "3.1"
            }
          ],
          "EpssScore": 0.49228,
          "ExploitAvailable": "YES",
          "FixAvailable": "YES",
          "Id": "CVE-2023-4863",
          "LastKnownExploitAt": "2024-11-12T18:52:50.000Z",
          "ReferenceUrls": [
            "https://lists.fedoraproject.org/archives/list/[email protected]/message/6T655QF7CQ3DYAMPFV7IECQYGDEUIVVT/",
            "https://lists.fedoraproject.org/archives/list/[email protected]/message/FYYKLG6CRGEDTNRBSU26EEWAO6D6U645/",
            "https://lists.debian.org/debian-lts-announce/2023/09/msg00016.html",
            "https://www.debian.org/security/2023/dsa-5496",
            "https://www.debian.org/security/2023/dsa-5497",
            "https://security-tracker.debian.org/tracker/CVE-2023-4863",
            "https://security.gentoo.org/glsa/202401-10",
            "https://bugzilla.suse.com/show_bug.cgi?id=1215231",
            "https://www.debian.org/security/2023/dsa-5498",
            "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2023-4863",
            "https://lists.fedoraproject.org/archives/list/[email protected]/message/OZDGWWMJREPAGKWCJKSCM4WYLANSKIFX/",
            "https://lists.fedoraproject.org/archives/list/[email protected]/message/PYZV7TMKF4QHZ54SFJX54BDN52VHGGCX/",
            "https://www.mozilla.org/en-US/security/advisories/mfsa2023-40/",
            "https://lists.fedoraproject.org/archives/list/[email protected]/message/WHOLML7N2G5KCAZXFWC5IDFFHSQS5SDB/",
            "https://lists.debian.org/debian-lts-announce/2023/09/msg00015.html",
            "https://lists.fedoraproject.org/archives/list/[email protected]/message/WTRUIS3564P7ZLM2S2IH4Y4KZ327LI4I/",
            "https://lists.debian.org/debian-lts-announce/2023/09/msg00017.html",
            "https://lists.fedoraproject.org/archives/list/[email protected]/message/KUQ7CTX3W372X3UY56VVNAHCH6H2F4X3/",
            "https://chromereleases.googleblog.com/2023/09/stable-channel-update-for-desktop_11.html",
            "https://security.gentoo.org/glsa/202309-05"
          ],
          "Vendor": {
            "VendorCreatedAt": "2023-09-12T15:15:24.000Z",
            "VendorSeverity": "HIGH",
            "Url": "https://nvd.nist.gov/vuln/detail/CVE-2023-4863",
            "Name": "NVD",
            "VendorUpdatedAt": "2024-07-31T18:19:23.000Z"
          },
          "VulnerablePackages": [
            {
              "FilePath": "nodejs/package-lock.json",
              "PackageManager": "NODE",
              "Version": "0.32.2",
              "Epoch": "0",
              "FixedInVersion": "0.32.6",
              "SourceLayerArn": "arn:aws:lambda:ca-central-1:625046682746:layer:libvips-sharp-jp2:4",
              "Name": "sharp"
            },
            {
              "FilePath": "nodejs/node_modules/sharp/package.json",
              "PackageManager": "NODE",
              "Version": "0.32.2",
              "Epoch": "0",
              "FixedInVersion": "0.32.6",
              "SourceLayerArn": "arn:aws:lambda:ca-central-1:625046682746:layer:libvips-sharp-jp2:4",
              "Name": "sharp"
            }
          ]
        }
      ]
  3. Description: Webpack 5 before 5.76.0 does not avoid cross-realm object access. ImportParserPlugin.js mishandles the magic comment feature. An attacker who controls a property of an untrusted object can obtain access to the real global object. Remediation is available.

    Vulnerabilities

    [
        {
          "Cvss": [
            {
              "BaseScore": 9.8,
              "BaseVector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
              "Source": "NVD",
              "Version": "3.1"
            },
            {
              "BaseScore": 9.8,
              "BaseVector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
              "Source": "NVD",
              "Version": "3.1"
            }
          ],
          "EpssScore": 0.0031,
          "ExploitAvailable": "NO",
          "FixAvailable": "YES",
          "Id": "CVE-2023-28154",
          "ReferenceUrls": [
            "https://lists.fedoraproject.org/archives/list/[email protected]/message/PPSAXUTXBCCTAHTCX5BUR4YVP25XALQ3/",
            "https://lists.fedoraproject.org/archives/list/[email protected]/message/AU7BOXTBK3KDYSWH67ASZ22TUIOZ3X5G/",
            "https://lists.fedoraproject.org/archives/list/[email protected]/message/U2AFCM6FFE3LRYI6KNEQWKMXMQOBZQ2D/"
          ],
          "Vendor": {
            "VendorCreatedAt": "2023-03-13T01:15:10.000Z",
            "VendorSeverity": "CRITICAL",
            "Url": "https://nvd.nist.gov/vuln/detail/CVE-2023-28154",
            "Name": "NVD",
            "VendorUpdatedAt": "2023-11-07T04:10:25.000Z"
          },
          "VulnerablePackages": [
            {
              "FilePath": "nodejs/package-lock.json",
              "PackageManager": "NODE",
              "Version": "5.51.1",
              "Epoch": "0",
              "FixedInVersion": "5.76.0",
              "SourceLayerArn": "arn:aws:lambda:ca-central-1:625046682746:layer:libvips-sharp-jp2:4",
              "Name": "webpack"
            }
          ]
        }
      ]
  4. Description: fast-xml-parser is an open source, pure javascript xml parser. a ReDOS exists on currency.js. This vulnerability is fixed in 4.4.1. Remediation is available.

    Vulnerabilities

    [
        {
          "Cvss": [
            {
              "BaseScore": 7.5,
              "BaseVector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
              "Source": "NVD",
              "Version": "3.1"
            },
            {
              "BaseScore": 7.5,
              "BaseVector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
              "Source": "NVD",
              "Version": "3.1"
            }
          ],
          "EpssScore": 0.00056,
          "ExploitAvailable": "NO",
          "FixAvailable": "YES",
          "Id": "CVE-2024-41818",
          "Vendor": {
            "VendorCreatedAt": "2024-07-29T16:15:05.000Z",
            "VendorSeverity": "HIGH",
            "Url": "https://nvd.nist.gov/vuln/detail/CVE-2024-41818",
            "Name": "NVD",
            "VendorUpdatedAt": "2024-10-11T15:15:04.000Z"
          },
          "VulnerablePackages": [
            {
              "FilePath": "package-lock.json",
              "PackageManager": "NODE",
              "Version": "4.2.5",
              "Epoch": "0",
              "FixedInVersion": "4.4.1",
              "Name": "fast-xml-parser"
            }
          ]
        }
      ]
  5. Description

Overview

sharp uses libwebp to decode WebP images and versions prior to the latest 0.32.6 are vulnerable to the high severity GHSA-j7hp-h8jx-5ppr.

Who does this affect?

Almost anyone processing untrusted input with versions of sharp prior to 0.32.6.

How to resolve this?

Using prebuilt binaries provided by sharp?

Most people rely on the prebuilt binaries provided by sharp.

Please upgrade sharp to the latest 0.32.6, which provides libwebp 1.3.2.

Using a globally-installed libvips?

Please ensure you are using the latest libwebp 1.3.2.

Possible workaround

Add the following to your code to prevent sharp from decoding WebP images.

sharp.block({ operation: [\"VipsForeignLoadWebp\"] }); 

Remediation is available.

Vulnerabilities

[
    {
      "Cvss": [
        {
          "BaseScore": 7.8,
          "BaseVector": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
          "Source": "GITHUB",
          "Version": "3.1"
        },
        {
          "BaseScore": 7.8,
          "BaseVector": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
          "Source": "GITHUB",
          "Version": "3.1"
        }
      ],
      "ExploitAvailable": "NO",
      "FixAvailable": "YES",
      "Id": "GHSA-54xq-cgqr-rpm3",
      "Vendor": {
        "VendorCreatedAt": "2023-11-16T17:14:15.000Z",
        "VendorSeverity": "HIGH",
        "Url": "https://github.com/advisories/GHSA-54xq-cgqr-rpm3",
        "Name": "GITHUB",
        "VendorUpdatedAt": "2023-11-16T17:14:15.000Z"
      },
      "VulnerablePackages": [
        {
          "FilePath": "nodejs/package-lock.json",
          "PackageManager": "NODE",
          "Version": "0.32.2",
          "Epoch": "0",
          "FixedInVersion": "0.32.6",
          "SourceLayerArn": "arn:aws:lambda:ca-central-1:625046682746:layer:libvips-sharp-jp2:4",
          "Name": "sharp"
        },
        {
          "FilePath": "nodejs/node_modules/sharp/package.json",
          "PackageManager": "NODE",
          "Version": "0.32.2",
          "Epoch": "0",
          "FixedInVersion": "0.32.6",
          "SourceLayerArn": "arn:aws:lambda:ca-central-1:625046682746:layer:libvips-sharp-jp2:4",
          "Name": "sharp"
        }
      ]
    }
  ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant