{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2024-7254",
        "assignerOrgId": "14ed7db2-1595-443d-9d34-6215bf890778",
        "state": "PUBLISHED",
        "assignerShortName": "Google",
        "dateReserved": "2024-07-29T21:41:56.116Z",
        "datePublished": "2024-09-19T00:18:45.824Z",
        "dateUpdated": "2024-09-19T14:46:14.517Z"
    },
    "containers": {
        "cna": {
            "affected": [
                {
                    "defaultStatus": "unaffected",
                    "product": "Protocol Buffers",
                    "repo": "https://github.com/protocolbuffers/protobuf",
                    "vendor": "Google",
                    "versions": [
                        {
                            "lessThan": "28.2",
                            "status": "affected",
                            "version": "0",
                            "versionType": "custom"
                        }
                    ]
                },
                {
                    "collectionURL": "https://mvnrepository.com/artifact/com.google.protobuf/protobuf-java",
                    "defaultStatus": "unaffected",
                    "product": "protobuf-java",
                    "vendor": "Google",
                    "versions": [
                        {
                            "lessThan": "3.25.5",
                            "status": "affected",
                            "version": "0",
                            "versionType": "custom"
                        },
                        {
                            "lessThan": "4.27.5",
                            "status": "affected",
                            "version": "0",
                            "versionType": "custom"
                        },
                        {
                            "lessThan": "4.28.2",
                            "status": "affected",
                            "version": "0",
                            "versionType": "custom"
                        }
                    ]
                },
                {
                    "defaultStatus": "unaffected",
                    "product": "protobuf-javalite",
                    "vendor": "Google",
                    "versions": [
                        {
                            "lessThan": "3.25.5",
                            "status": "affected",
                            "version": "0",
                            "versionType": "custom"
                        },
                        {
                            "lessThan": "4.27.5",
                            "status": "affected",
                            "version": "0",
                            "versionType": "custom"
                        },
                        {
                            "lessThan": "4.28.2",
                            "status": "affected",
                            "version": "0",
                            "versionType": "custom"
                        }
                    ]
                },
                {
                    "defaultStatus": "unaffected",
                    "product": "protobuf-kotlin",
                    "vendor": "Google",
                    "versions": [
                        {
                            "lessThan": "3.25.5",
                            "status": "affected",
                            "version": "0",
                            "versionType": "custom"
                        },
                        {
                            "lessThan": "4.27.5",
                            "status": "affected",
                            "version": "0",
                            "versionType": "custom"
                        },
                        {
                            "lessThan": "4.28.2",
                            "status": "affected",
                            "version": "0",
                            "versionType": "custom"
                        }
                    ]
                },
                {
                    "defaultStatus": "unaffected",
                    "product": "protobuf-kotllin-lite",
                    "vendor": "Google",
                    "versions": [
                        {
                            "lessThan": "3.25.5",
                            "status": "affected",
                            "version": "0",
                            "versionType": "custom"
                        },
                        {
                            "lessThan": "4.27.5",
                            "status": "affected",
                            "version": "0",
                            "versionType": "custom"
                        },
                        {
                            "lessThan": "4.28.2",
                            "status": "affected",
                            "version": "0",
                            "versionType": "custom"
                        }
                    ]
                },
                {
                    "collectionURL": "https://rubygems.org/gems/google-protobuf",
                    "defaultStatus": "unaffected",
                    "product": "google-protobuf [JRuby Gem]",
                    "vendor": "Google",
                    "versions": [
                        {
                            "lessThan": "3.25.5",
                            "status": "affected",
                            "version": "0",
                            "versionType": "custom"
                        },
                        {
                            "lessThan": "4.27.5",
                            "status": "affected",
                            "version": "0",
                            "versionType": "custom"
                        },
                        {
                            "lessThan": "4.28.2",
                            "status": "affected",
                            "version": "0",
                            "versionType": "custom"
                        }
                    ]
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "type": "finder",
                    "value": "Alexis Challande, Trail of Bits Ecosystem Security Team <ecosystem@trailofbits.com>"
                }
            ],
            "descriptions": [
                {
                    "lang": "en",
                    "supportingMedia": [
                        {
                            "base64": false,
                            "type": "text/html",
                            "value": "<p><span style=\"background-color: rgb(255, 255, 255);\">Any project that parses untrusted Protocol Buffers data</span><span style=\"background-color: rgb(255, 255, 255);\"><span style=\"background-color: rgb(255, 255, 255);\">&nbsp;containing an arbitrary number of nested </span><code>group</code><span style=\"background-color: rgb(255, 255, 255);\">s / series of </span><code>SGROUP</code><span style=\"background-color: rgb(255, 255, 255);\">&nbsp;tags can corrupted by exceeding the stack limit i.e. StackOverflow. </span><span style=\"background-color: transparent;\">Parsing nested groups as unknown fields with DiscardUnknownFieldsParser or Java Protobuf Lite parser, or against Protobuf map fields, creates unbounded recursions that can be abused by an attacker.</span></span><br></p>"
                        }
                    ],
                    "value": "Any project that parses untrusted Protocol Buffers data containing an arbitrary number of nested groups / series of SGROUP tags can corrupted by exceeding the stack limit i.e. StackOverflow. Parsing nested groups as unknown fields with DiscardUnknownFieldsParser or Java Protobuf Lite parser, or against Protobuf map fields, creates unbounded recursions that can be abused by an attacker."
                }
            ],
            "impacts": [
                {
                    "capecId": "CAPEC-100",
                    "descriptions": [
                        {
                            "lang": "en",
                            "value": "CAPEC-100 Overflow Buffers"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV4_0": {
                        "Automatable": "NOT_DEFINED",
                        "Recovery": "NOT_DEFINED",
                        "Safety": "NOT_DEFINED",
                        "attackComplexity": "LOW",
                        "attackRequirements": "NONE",
                        "attackVector": "NETWORK",
                        "baseScore": 8.7,
                        "baseSeverity": "HIGH",
                        "privilegesRequired": "NONE",
                        "providerUrgency": "NOT_DEFINED",
                        "subAvailabilityImpact": "NONE",
                        "subConfidentialityImpact": "NONE",
                        "subIntegrityImpact": "NONE",
                        "userInteraction": "NONE",
                        "valueDensity": "NOT_DEFINED",
                        "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
                        "version": "4.0",
                        "vulnAvailabilityImpact": "HIGH",
                        "vulnConfidentialityImpact": "NONE",
                        "vulnIntegrityImpact": "NONE",
                        "vulnerabilityResponseEffort": "NOT_DEFINED"
                    },
                    "format": "CVSS",
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "GENERAL"
                        }
                    ]
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-20",
                            "description": "CWE-20 Improper Input Validation",
                            "lang": "en",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "14ed7db2-1595-443d-9d34-6215bf890778",
                "shortName": "Google",
                "dateUpdated": "2024-09-19T00:18:45.824Z"
            },
            "references": [
                {
                    "url": "https://github.com/protocolbuffers/protobuf/commit/cc8b3483a5584b3301e3d43d17eb59704857ffaa"
                }
            ],
            "source": {
                "discovery": "UNKNOWN"
            },
            "title": "Stack overflow in Protocol Buffers Java Lite",
            "x_generator": {
                "engine": "Vulnogram 0.2.0"
            }
        },
        "adp": [
            {
                "affected": [
                    {
                        "vendor": "google",
                        "product": "protobuf",
                        "cpes": [
                            "cpe:2.3:a:google:protobuf:*:*:*:*:*:*:*:*"
                        ],
                        "defaultStatus": "unaffected",
                        "versions": [
                            {
                                "version": "0",
                                "status": "affected",
                                "lessThan": "28.2",
                                "versionType": "custom"
                            }
                        ]
                    },
                    {
                        "vendor": "google",
                        "product": "protobuf-kotlin-lite",
                        "cpes": [
                            "cpe:2.3:a:google:google-protobuf:*:*:*:*:*:ruby:*:*",
                            "cpe:2.3:a:google:protobuf-java:*:*:*:*:*:*:*:*",
                            "cpe:2.3:a:google:protobuf-javalite:*:*:*:*:*:*:*:*",
                            "cpe:2.3:a:google:protobuf-kotlin:*:*:*:*:*:*:*:*",
                            "cpe:2.3:a:google:protobuf-kotlin-lite:*:*:*:*:*:*:*:*"
                        ],
                        "defaultStatus": "unaffected",
                        "versions": [
                            {
                                "version": "0",
                                "status": "affected",
                                "lessThan": "3.25.5",
                                "versionType": "custom"
                            },
                            {
                                "version": "4.27",
                                "status": "affected",
                                "lessThan": "4.27.5",
                                "versionType": "custom"
                            },
                            {
                                "version": "4.28",
                                "status": "affected",
                                "lessThan": "4.28.2",
                                "versionType": "custom"
                            }
                        ]
                    }
                ],
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2024-09-19T14:29:43.468555Z",
                                "id": "CVE-2024-7254",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "yes"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-09-19T14:46:14.517Z"
                }
            }
        ]
    }
}