Vulnerabilities in pkg:pypi/imagecodecs

PACKAGE
Advisory Summary

GHSA-94vc-p8w7-5p49 is a HIGH bundled libwebp vulnerability (General Security Weakness) affecting Imagecodecs libraries in the PyPI ecosystem. The issue involves bundled libwebp in imagecodecs vulnerable. Remediation is available by upgrading affected packages to version 2023.9.18.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/imagecodecs

1 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-94vc-p8w7-5p49 - HIGH Bundled libwebp in imagecodecs vulnerable

GHSA-94vc-p8w7-5p49 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-94vc-p8w7-5p49
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Imagecodecs
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix GHSA-94vc-p8w7-5p49

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

imagecodecs fixed: 2023.9.18
pip install imagecodecs>=2023.9.18
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 imagecodecs

How to Check if You Are Affected

To determine whether your Python environment is affected by GHSA-94vc-p8w7-5p49, inspect your installed packages using pip:

pip show imagecodecs

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

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

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Imagecodecs, 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

imagecodecs versions before v2023.9.18 bundled libwebp binaries in wheels that are vulnerable to CVE-2023-5129 (previously CVE-2023-4863). imagecodecs v2023.9.18 upgrades the bundled libwebp binary to v1.3.2.

GHSA-94vc-p8w7-5p49 Affected Imagecodecs Versions

1 component(s)
Fixed Versions:
2023.9.18
Product / Package Ecosystem Affected Versions Fixed Version
imagecodecs
PyPI
< 2023.9.18
2023.9.18

References

Frequently Asked Questions

What is GHSA-94vc-p8w7-5p49?
GHSA-94vc-p8w7-5p49 is a security vulnerability in Imagecodecs involving Bundled libwebp in imagecodecs vulnerable under General Security Weakness.
Which Imagecodecs versions are affected?
Affected versions include releases prior to 2023.9.18 across affected packages: imagecodecs.
What version fixes GHSA-94vc-p8w7-5p49?
Upgrading to 2023.9.18 (or the latest patched release for your respective branch) resolves the vulnerability.
Is imagecodecs affected?
Yes, imagecodecs is affected in releases prior to 2023.9.18. Upgrade your dependency to 2023.9.18 or later.
What CWE is associated with GHSA-94vc-p8w7-5p49?
GHSA-94vc-p8w7-5p49 is classified under General Security Weakness.
How can I check PyPI dependencies for GHSA-94vc-p8w7-5p49?
Run the dependency tree command: 'pip show imagecodecs'. 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-94vc-p8w7-5p49",
  "modified" : "2023-10-05T00:07:46Z",
  "published" : "2023-10-05T00:07:46Z",
  "aliases" : [ ],
  "summary" : "Bundled libwebp in imagecodecs vulnerable",
  "details" : "imagecodecs versions before v2023.9.18 bundled libwebp binaries in wheels that are vulnerable to CVE-2023-5129 (previously CVE-2023-4863). imagecodecs v2023.9.18 upgrades the bundled libwebp binary to v1.3.2.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "imagecodecs"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2023.9.18"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-4863"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-5129"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/cgohlke/imagecodecs"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cgohlke/imagecodecs/blob/v2023.9.18/CHANGES.rst"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/imagecodecs/PYSEC-2023-174.yaml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-10-05T00:07:46Z",
    "nvd_published_at" : null
  }
}