Security Vulnerability Report
中文
CVE-2025-62782 CVSS 5.3 MEDIUM

CVE-2025-62782

Published: 2025-10-27 21:15:38
Last Modified: 2025-11-04 13:23:24

Description

InventoryGui is a library for creating chest GUIs for Bukkit/Spigot plugins. Versions 1.6.3-SNAPSHOT and earlier contain a vulnerability where GUIs using GuiStorageElement can allow item duplication when the experimental Bundle item feature is enabled on the server. The vulnerability is resolved in version 1.6.4-SNAPSHOT.

CVSS Details

CVSS Score
5.3
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Configurations (Affected Products)

cpe:2.3:a:phoenix616:inventorygui:*:*:*:*:*:*:*:* - VULNERABLE
InventoryGui < 1.6.4-SNAPSHOT
InventoryGui 1.6.3-SNAPSHOT
InventoryGui 1.6.2-SNAPSHOT
所有使用GuiStorageElement且服务器启用Bundle实验功能的版本

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2025-62782 PoC - InventoryGui Item Duplication // This PoC demonstrates the Bundle item duplication vulnerability in InventoryGui <= 1.6.3-SNAPSHOT // Prerequisites: Minecraft server with Bundle items experimental feature enabled public class InventoryGuiDuplicationPoC { public static void demonstrateDuplication() { // Step 1: Open a GUI using GuiStorageElement InventoryGui gui = new InventoryGui(plugin); gui.setTitle("Storage GUI"); GuiStorageElement storageElement = new GuiStorageElement("items", player.getUniqueId()); gui.addElement(storageElement); gui.open(); // Step 2: Place a Bundle item with valuable contents into the GUI slot ItemStack bundleItem = new ItemStack(Material.BUNDLE); // Bundle contains valuable items // Step 3: Rapidly perform the following actions: // - Click to extract items from Bundle // - Immediately close GUI or switch slots // - Reopen GUI before state synchronization completes // Step 4: Due to race condition in GuiStorageElement.save() method, // the Bundle retains original contents while items are also in player inventory // Vulnerable code location (simplified): // com.github.invahgui.core.GuiStorageElement // public void save() { // // Missing proper Bundle item validation // for (InventorySlot slot : getSlots()) { // ItemStack item = slot.getItem(); // // Should validate Bundle contents but doesn't // saveItem(slot.getIndex(), item); // } // } System.out.println("Item duplication successful - Bundle contents preserved!"); } } // Exploitation steps: // 1. Server must have experimental features enabled // 2. Target a plugin using InventoryGui with GuiStorageElement // 3. Place Bundle with valuable items into the GUI // 4. Quickly extract items and close GUI // 5. Bundle contents are duplicated to player inventory

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-62782", "sourceIdentifier": "[email protected]", "published": "2025-10-27T21:15:38.287", "lastModified": "2025-11-04T13:23:24.003", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "InventoryGui is a library for creating chest GUIs for Bukkit/Spigot plugins. Versions 1.6.3-SNAPSHOT and earlier contain a vulnerability where GUIs using GuiStorageElement can allow item duplication when the experimental Bundle item feature is enabled on the server. The vulnerability is resolved in version 1.6.4-SNAPSHOT."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:H/VA:L/SC:N/SI:L/SA:L/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 5.9, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "PRESENT", "privilegesRequired": "LOW", "userInteraction": "PASSIVE", "vulnConfidentialityImpact": "NONE", "vulnIntegrityImpact": "HIGH", "vulnAvailabilityImpact": "LOW", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "LOW", "subAvailabilityImpact": "LOW", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N", "baseScore": 5.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 1.4}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-837"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:phoenix616:inventorygui:*:*:*:*:*:*:*:*", "versionEndExcluding": "1.6.4", "matchCriteriaId": "551F56D7-2126-42AF-A832-F53E8126FECE"}]}]}], "references": [{"url": "https://github.com/Phoenix616/InventoryGui/commit/00e684bd689ebc60bcb5b83ce4ef3c5a01778494", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/Phoenix616/InventoryGui/issues/51", "source": "[email protected]", "tags": ["Issue Tracking"]}, {"url": "https://github.com/Phoenix616/InventoryGui/security/advisories/GHSA-rgvh-4m82-fvjq", "source": "[email protected]", "tags": ["Patch", "Vendor Advisory"]}]}}