Vulnerabilities in pkg:pypi/localstack

PACKAGE
Advisory Identifier: GHSA-8633-g3ph-97rp
Advisory Summary

CVE-2023-48054 is a HIGH (CVSS 7.4) missing ssl certificate validation vulnerability (CWE-295: Improper Certificate Validation) affecting Localstack libraries in the PyPI ecosystem. The issue involves missing ssl certificate validation in localstack. Remediation is available in the latest vendor maintenance releases.

3 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/localstack

3 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/localstack. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-8633-g3ph-97rp CVE-2023-48054 HIGH Missing SSL certificate validation in localstack
GHSA-37m5-42qp-4qpr CVE-2021-32091 MODERATE Cross-site scripting in LocalStack
GHSA-hpr6-f4vq-mxch CVE-2021-32090 CRITICAL Command injection in LocalStack

CVE-2023-48054 at a Glance

CVE Identifier CVE-2023-48054
GHSA Identifier GHSA-8633-g3ph-97rp
Severity HIGH
CVSS v3.1 Base Score 7.4
CWE Classification CWE-295: Improper Certificate Validation
Affected Product Localstack
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.4

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2023-48054

To remediate this vulnerability, upgrade all affected Localstack dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

localstack fixed: Latest secure release
pip install localstack>=Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show localstack

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2023-48054, inspect your installed packages using pip:

pip show localstack

Analyze the terminal output to locate any version of Localstack in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The pip show localstack command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-295: Improper Certificate Validation, where the product does not validate, or incorrectly validates, a certificate. In Localstack, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Missing SSL certificate validation in localstack allows attackers to eavesdrop on communications between the host and server via a man-in-the-middle attack.

CVE-2023-48054 Affected Localstack Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
localstack
PyPI
≤ 3.0.0

References

Frequently Asked Questions

What is CVE-2023-48054?
CVE-2023-48054 is a security vulnerability in Localstack involving Missing SSL certificate validation in localstack under CWE-295: Improper Certificate Validation.
Which Localstack versions are affected?
Affected versions include releases prior to current release patches across affected packages: localstack.
What version fixes CVE-2023-48054?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is localstack affected?
Yes, localstack is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2023-48054?
CVE-2023-48054 has a CVSS v3.1 base score of 7.4 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2023-48054?
CVE-2023-48054 is classified under CWE-295: Improper Certificate Validation (The product does not validate, or incorrectly validates, a certificate.).
How can I check PyPI dependencies for CVE-2023-48054?
Run the dependency tree command: 'pip show localstack'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-8633-g3ph-97rp",
  "modified" : "2026-06-10T18:43:02Z",
  "published" : "2023-11-16T18:30:31Z",
  "aliases" : [ "CVE-2023-48054" ],
  "summary" : "Missing SSL certificate validation in localstack",
  "details" : "Missing SSL certificate validation in localstack allows attackers to eavesdrop on communications between the host and server via a man-in-the-middle attack.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "localstack"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "3.0.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-48054"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/localstack/localstack"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/localstack/PYSEC-2023-243.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://gxx777.github.io/localstack_v_2.3.2_Cryptographic_API_Misuse_Vulnerability.md"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-295" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-11-22T20:55:28Z",
    "nvd_published_at" : "2023-11-16T18:15:07Z"
  }
}