GHSA-77mv-mp2j-gxxh: 3f/pygmentize Remote Code Execution Vulnerability
HIGHGHSA-77mv-mp2j-gxxh is a HIGH (CVSS 8.1) remote code execution vulnerability (General Security Weakness) affecting 3f/pygmentize libraries in the Packagist ecosystem. The issue involves pygmentize remote code execution. Remediation is available by upgrading affected packages to version 1.2.
GHSA-77mv-mp2j-gxxh at a Glance
Security Impact
CVSS: 8.1
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:H).
How to Fix GHSA-77mv-mp2j-gxxh
To remediate this vulnerability, upgrade all affected 3f/pygmentize dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade 3f/pygmentize to 1.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for 3f/pygmentize
How to Check if You Are Affected
To determine whether your application is affected by GHSA-77mv-mp2j-gxxh, inspect your project dependencies for 3f/pygmentize:
inspect dependencies for 3f/pygmentize
Analyze the terminal output to locate any version of 3f/pygmentize in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.2), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under General Security Weakness. In 3f/pygmentize, 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
GHSA-77mv-mp2j-gxxh Affected 3f/pygmentize Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
3f/pygmentize
|
Packagist |
< 1.2
|
1.2
|
References
Frequently Asked Questions
What is GHSA-77mv-mp2j-gxxh?
Which 3f/pygmentize versions are affected?
What version fixes GHSA-77mv-mp2j-gxxh?
Is 3f/pygmentize affected?
What is the CVSS score of GHSA-77mv-mp2j-gxxh?
What CWE is associated with GHSA-77mv-mp2j-gxxh?
How can I check Packagist dependencies for GHSA-77mv-mp2j-gxxh?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-77mv-mp2j-gxxh",
"modified" : "2024-05-15T17:36:47Z",
"published" : "2024-05-15T17:36:47Z",
"aliases" : [ ],
"summary" : "pygmentize Remote Code Execution",
"details" : "pygmentize is prone to remote code execution due to an unsafe sanitazation of user input when passed to the `highlight` function.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "3f/pygmentize"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/dedalozzo/pygmentize/issues/1"
}, {
"type" : "WEB",
"url" : "https://github.com/dedalozzo/pygmentize/pull/3"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/3f/pygmentize/2017-05-15.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/dedalozzo/pygmentize"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-05-15T17:36:47Z",
"nvd_published_at" : null
}
}