GO-2023-1269

Source
https://pkg.go.dev/vuln/GO-2023-1269
Import Source
https://vuln.go.dev/ID/GO-2023-1269.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2023-1269
Aliases
Published
2023-01-18T18:07:08Z
Modified
2024-05-20T16:03:47Z
Summary
Panic in encoding in github.com/ipld/go-ipld-prime
Details

Encoding data using the 'json' codec which contains a 'Bytes' type Node will cause the encoder to panic. The decoder is not impacted. If the codec is used to encode user supplied data, this may be used as a vector for a denial of service attack.

Database specific
{
    "review_status": "REVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2023-1269"
}
References
Credits
    • @hacdias

Affected packages

Go / github.com/ipld/go-ipld-prime

Package

Name
github.com/ipld/go-ipld-prime
View open source insights on deps.dev
Purl
pkg:golang/github.com/ipld/go-ipld-prime

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.19.0

Ecosystem specific

{
    "imports": [
        {
            "path": "github.com/ipld/go-ipld-prime/codec/dagjson",
            "symbols": [
                "Encode",
                "EncodeOptions.Encode",
                "Marshal"
            ]
        }
    ]
}