GHSA-f9pm-4g9p-6vm3: Webp Bundled Libwebp Vulnerability

HIGH
CVSS 8.8
Published
Advisory Summary

GHSA-f9pm-4g9p-6vm3 is a HIGH (CVSS 8.8) bundled libwebp vulnerability (General Security Weakness) affecting Webp libraries in the PyPI ecosystem. The issue involves bundled libwebp in pywebp vulnerable. Remediation is available by upgrading affected packages to version 0.3.0.

GHSA-f9pm-4g9p-6vm3 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-f9pm-4g9p-6vm3
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification General Security Weakness
Affected Product Webp
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 8.8

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

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

How to Fix GHSA-f9pm-4g9p-6vm3

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

webp fixed: 0.3.0
pip install webp>=0.3.0
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 webp

How to Check if You Are Affected

To determine whether your Python environment is affected by GHSA-f9pm-4g9p-6vm3, inspect your installed packages using pip:

pip show webp

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

Note: The pip show webp 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 Webp, 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

### Impact pywebp versions before v0.3.0 bundled libwebp binaries in wheels that are vulnerable to CVE-2023-4863. The vulnerability was a heap buffer overflow which allowed a remote attacker to perform an out of bounds memory write. ### Patches The problem has been patched upstream in libwebp 1.3.2. pywebp was updated to bundle a patched version of libwebp in v0.3.0. ### Workarounds No known workarounds without upgrading. ### References - https://www.rezilion.com/blog/rezilion-researchers-uncover-new-details-on-severity-of-google-chrome-zero-day-vulnerability-cve-2023-4863/ - https://nvd.nist.gov/vuln/detail/CVE-2023-4863

GHSA-f9pm-4g9p-6vm3 Affected Webp Versions

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

References

Frequently Asked Questions

What is GHSA-f9pm-4g9p-6vm3?
GHSA-f9pm-4g9p-6vm3 is a security vulnerability in Webp involving Bundled libwebp in pywebp vulnerable under General Security Weakness.
Which Webp versions are affected?
Affected versions include releases prior to 0.3.0 across affected packages: webp.
What version fixes GHSA-f9pm-4g9p-6vm3?
Upgrading to 0.3.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is webp affected?
Yes, webp is affected in releases prior to 0.3.0. Upgrade your dependency to 0.3.0 or later.
What is the CVSS score of GHSA-f9pm-4g9p-6vm3?
GHSA-f9pm-4g9p-6vm3 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with GHSA-f9pm-4g9p-6vm3?
GHSA-f9pm-4g9p-6vm3 is classified under General Security Weakness.
How can I check PyPI dependencies for GHSA-f9pm-4g9p-6vm3?
Run the dependency tree command: 'pip show webp'. 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-f9pm-4g9p-6vm3",
  "modified" : "2023-10-06T16:59:22Z",
  "published" : "2023-10-06T16:59:22Z",
  "aliases" : [ ],
  "summary" : "Bundled libwebp in pywebp vulnerable",
  "details" : "### Impact\npywebp versions before v0.3.0 bundled libwebp binaries in wheels that are vulnerable to CVE-2023-4863. The vulnerability was a heap buffer overflow which allowed a remote attacker to perform an out of bounds memory write.\n\n### Patches\nThe problem has been patched upstream in libwebp 1.3.2.\npywebp was updated to bundle a patched version of libwebp in v0.3.0.\n\n### Workarounds\nNo known workarounds without upgrading.\n\n### References\n- https://www.rezilion.com/blog/rezilion-researchers-uncover-new-details-on-severity-of-google-chrome-zero-day-vulnerability-cve-2023-4863/\n- https://nvd.nist.gov/vuln/detail/CVE-2023-4863\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "webp"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.3.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/anibali/pywebp/security/advisories/GHSA-f9pm-4g9p-6vm3"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/anibali/pywebp/commit/1f938731a158a6584977cec2cce21b21c15f6c4b"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/anibali/pywebp"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-10-06T16:59:22Z",
    "nvd_published_at" : null
  }
}