Advisory

GO-2022-0211

Also known as: CVE-2019-14809

Summary

Incorrect parsing validation in net/url

Details

The url.Parse function accepts URLs with malformed hosts, such that the Host field can have arbitrary suffixes that appear in neither Hostname() nor Port(), allowing authorization bypasses in certain applications.

Severity

Not rated by the source.

Dates

Published
2022-07-01 20:15 UTC
Modified
2024-05-20 16:03 UTC

Affected packages and fixes

stdlib

Go · All systems

Affected

  • introduced 0, fixed 1.11.13, introduced 1.12.0-0, fixed 1.12.8 (semver)

Fixed versions

1.11.13, 1.12.8

Fix

The export has no generic command for this ecosystem.

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