Advisory

GO-2021-0076

Also known as: CVE-2018-14632, GHSA-gxhv-3hwf-wjp9

Summary

Out-of-bounds write in github.com/evanphx/json-patch

Details

A malicious JSON patch can cause a panic due to an out-of-bounds write attempt. This can be used as a denial of service vector if exposed to arbitrary user input.

Severity

Not rated by the source.

Dates

Published
2021-04-14 20:04 UTC
Modified
2024-05-20 16:03 UTC

Affected packages and fixes

github.com/evanphx/json-patch

Go · All systems

Affected

  • introduced 0, fixed 0.5.2, introduced 3.0.0+incompatible, fixed 3.0.1-0.20180525145409-4c9aadca8f89+incompatible (semver)

Fixed versions

0.5.2, 3.0.1-0.20180525145409-4c9aadca8f89+incompatible

Fix

  • Fixed version 0.5.2
    go get github.com/evanphx/[email protected]
  • Fixed version 3.0.1-0.20180525145409-4c9aadca8f89+incompatible
    go get github.com/evanphx/[email protected]+incompatible

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences