VDB
Sign up
HIGH7.5

GHSA-jqcq-xjh3-6g23

Denial of service in github.com/jackc/pgproto3/v2

Details

The DataRow.Decode function fails to properly validate field lengths. A malicious or compromised PostgreSQL server can send a DataRow message with a negative field length, causing a slice bounds out of range panic.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/github.com/jackc/pgproto3/v2
Introduced in: 2.0.0

No fixed version published yet for github.com/jackc/pgproto3/v2 (go modules). Pin to a known-safe version or switch to an alternative.

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:golang/github.com/jackc/pgproto3/v2"]}'