{ "schema_version": "1.4.0", "id": "GHSA-g5ww-5jh7-63cx", "modified": "2025-09-02T19:35:38Z", "published": "2022-12-12T15:30:33Z", "aliases": [ "CVE-2022-3509" ], "summary": "Protobuf Java vulnerable to Uncontrolled Resource Consumption", "details": "A parsing issue similar to CVE-2022-3171, but with textformat in protobuf-java core and lite versions prior to 3.21.7, 3.20.3, 3.19.6 and 3.16.3 can lead to a denial of service attack. Inputs containing multiple instances of non-repeated embedded messages with repeated or unknown fields causes objects to be converted back-n-forth between mutable and immutable forms, resulting in potentially long garbage collection pauses. We recommend updating to the versions mentioned above.", "severity": [ { "type": "CVSS_V3", "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H" } ], "affected": [ { "package": { "ecosystem": "Maven", "name": "com.google.protobuf:protobuf-java" }, "ranges": [ { "type": "ECOSYSTEM", "events": [ { "introduced": "3.0.0" }, { "fixed": "3.16.3" } ] } ] }, { "package": { "ecosystem": "Maven", "name": "com.google.protobuf:protobuf-java" }, "ranges": [ { "type": "ECOSYSTEM", "events": [ { "introduced": "3.17.0" }, { "fixed": "3.19.6" } ] } ] }, { "package": { "ecosystem": "Maven", "name": "com.google.protobuf:protobuf-java" }, "ranges": [ { "type": "ECOSYSTEM", "events": [ { "introduced": "3.20.0" }, { "fixed": "3.20.3" } ] } ] }, { "package": { "ecosystem": "Maven", "name": "com.google.protobuf:protobuf-java" }, "ranges": [ { "type": "ECOSYSTEM", "events": [ { "introduced": "3.21.0" }, { "fixed": "3.21.7" } ] } ] }, { "package": { "ecosystem": "Maven", "name": "com.google.protobuf:protobuf-javalite" }, "ranges": [ { "type": "ECOSYSTEM", "events": [ { "introduced": "3.20.0" }, { "fixed": "3.20.3" } ] } ] }, { "package": { "ecosystem": "Maven", "name": "com.google.protobuf:protobuf-javalite" }, "ranges": [ { "type": "ECOSYSTEM", "events": [ { "introduced": "3.21.0" }, { "fixed": "3.21.7" } ] } ] }, { "package": { "ecosystem": "Maven", "name": "com.google.protobuf:protobuf-javalite" }, "ranges": [ { "type": "ECOSYSTEM", "events": [ { "introduced": "3.0.0" }, { "fixed": "3.16.3" } ] } ] } ], "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-3509" }, { "type": "WEB", "url": "https://github.com/protocolbuffers/protobuf/commit/a3888f53317a8018e7a439bac4abeb8f3425d5e9" }, { "type": "WEB", "url": "https://github.com/protocolbuffers/protobuf/blob/v2.6.1/java/core/src/main/java/com/google/protobuf/MessageReflection.java" }, { "type": "WEB", "url": "https://github.com/protocolbuffers/protobuf/blob/v3.0.0/java/core/src/main/java/com/google/protobuf/MessageReflection.java" }, { "type": "PACKAGE", "url": "https://github.com/protocolbuffers/protobuf/tree/main/java" } ], "database_specific": { "cwe_ids": [ "CWE-400" ], "severity": "HIGH", "github_reviewed": true, "github_reviewed_at": "2022-12-12T22:33:53Z", "nvd_published_at": "2022-12-12T13:15:00Z" } }