Advisory

UBUNTU-CVE-2023-38545

Also known as: CVE-2023-38545

Summary

The record has no summary.

Details

This flaw makes curl overflow a heap based buffer in the SOCKS5 proxy handshake. When curl is asked to pass along the host name to the SOCKS5 proxy to allow that to resolve the address instead of it getting done by curl itself, the maximum length that host name can be is 255 bytes. If the host name is detected to be longer, curl switches to local name resolving and instead passes on the resolved address only. Due to this bug, the local variable that means "let the host resolve the name" could get the wrong value during a slow SOCKS5 handshake, and contrary to the intention, copy the too long host name to the target buffer instead of copying just the resolved address there. The target buffer being a heap based buffer, and the host name coming from the URL that curl has been told to operate with.

Severity

Critical Basis: CVSS v3 score 9.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2023-10-11 06:00 UTC
Modified
2026-04-22 14:09 UTC

Affected packages and fixes

curl

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 7.81.0-1ubuntu1.14 (ecosystem)

Fixed versions

7.81.0-1ubuntu1.14

Fix

  • Fixed version 7.81.0-1ubuntu1.14
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

curl

Debian packages (deb) · Ubuntu 24.04

Affected

  • introduced 0, fixed 8.2.1-1ubuntu3.1 (ecosystem)

Fixed versions

8.2.1-1ubuntu3.1

Fix

  • Fixed version 8.2.1-1ubuntu3.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

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: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences