GO-2023-1631

Source
https://pkg.go.dev/vuln/GO-2023-1631
Import Source
https://vuln.go.dev/ID/GO-2023-1631.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2023-1631
Aliases
Published
2023-03-14T16:47:00Z
Modified
2024-05-20T16:03:47Z
Summary
Panic when parsing invalid messages in google.golang.org/protobuf
Details

Parsing invalid messages can panic.

Parsing a text-format message which contains a potential number consisting of a minus sign, one or more characters of whitespace, and no further input will cause a panic.

Database specific
{
    "review_status": "REVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2023-1631"
}
References

Affected packages

Go / google.golang.org/protobuf

Package

Name
google.golang.org/protobuf
View open source insights on deps.dev
Purl
pkg:golang/google.golang.org/protobuf

Affected ranges

Type
SEMVER
Events
Introduced
1.29.0
Fixed
1.29.1

Ecosystem specific

{
    "imports": [
        {
            "path": "google.golang.org/protobuf/encoding/prototext",
            "symbols": [
                "Unmarshal",
                "UnmarshalOptions.Unmarshal",
                "UnmarshalOptions.unmarshal"
            ]
        },
        {
            "path": "google.golang.org/protobuf/internal/encoding/text",
            "symbols": [
                "Decoder.Peek",
                "Decoder.Read",
                "parseNumber"
            ]
        }
    ]
}