p PatchFirst

CVE-2023-22809

CVE-2023-22809

This page contains facts from public vulnerability sources. Check the original advisory before updating.

In Sudo before 1.9.12p2, the sudoedit (aka -e) feature mishandles extra arguments passed in the user-provided environment variables (SUDO_EDITOR, VISUAL, and EDITOR), allowing a local attacker to append arbitrary entries to the list of files to process. This can lead to privilege escalation. Affected versions are 1.8.0 through 1.9.12.p1. The problem exists because a user-specified editor may contain a "--" argument that defeats a protection mechanism, e.g., an EDITOR='vim -- /path/to/extra/file' value.

CVSS 7.8 · High · EPSS 55.4% · Public exploit · Fix available

Published
Updated

Stack: system

Affected products and versions

  • n/a

    Versions
    • n/a: Affected

    No fix published

  • sudo Debian:12

    Affected ranges
    • ECOSYSTEM: < 1.9.12p2-1

    Update to 1.9.12p2-1

  • sudo Debian:13

    Affected ranges
    • ECOSYSTEM: < 1.9.12p2-1

    Update to 1.9.12p2-1

  • sudo Debian:14

    Affected ranges
    • ECOSYSTEM: < 1.9.12p2-1

    Update to 1.9.12p2-1

  • sudo Ubuntu:Pro:14.04:LTS

    Versions
    • 1.8.6p3-0ubuntu3
    • 1.8.8-2ubuntu1
    • 1.8.8-2ubuntu2
    • 1.8.9p4-1ubuntu1
    • 1.8.9p4-1ubuntu2
    • 1.8.9p5-1ubuntu1
    • 1.8.9p5-1ubuntu1.1
    • 1.8.9p5-1ubuntu1.2
    • 1.8.9p5-1ubuntu1.3
    • 1.8.9p5-1ubuntu1.4
    • 1.8.9p5-1ubuntu1.5+esm1
    • 1.8.9p5-1ubuntu1.5+esm2
    • 1.8.9p5-1ubuntu1.5+esm3
    • 1.8.9p5-1ubuntu1.5+esm5
    • 1.8.9p5-1ubuntu1.5+esm6
    Affected ranges
    • ECOSYSTEM: < 1.8.9p5-1ubuntu1.5+esm7

    Update to 1.8.9p5-1ubuntu1.5+esm7

  • sudo Ubuntu:Pro:16.04:LTS

    Versions
    • 1.8.12-1ubuntu3
    • 1.8.16-0ubuntu1
    • 1.8.16-0ubuntu1.1
    • 1.8.16-0ubuntu1.2
    • 1.8.16-0ubuntu1.3
    • 1.8.16-0ubuntu1.4
    • 1.8.16-0ubuntu1.5
    • 1.8.16-0ubuntu1.6
    • 1.8.16-0ubuntu1.7
    • 1.8.16-0ubuntu1.8
    • 1.8.16-0ubuntu1.9
    • 1.8.16-0ubuntu1.10
    Affected ranges
    • ECOSYSTEM: < 1.8.16-0ubuntu1.10+esm1

    Update to 1.8.16-0ubuntu1.10+esm1

  • sudo Ubuntu:18.04:LTS

    Versions
    • 1.8.20p2-1ubuntu1
    • 1.8.21p2-2ubuntu1
    • 1.8.21p2-3ubuntu1
    • 1.8.21p2-3ubuntu1.1
    • 1.8.21p2-3ubuntu1.2
    • 1.8.21p2-3ubuntu1.3
    • 1.8.21p2-3ubuntu1.4
    Affected ranges
    • ECOSYSTEM: < 1.8.21p2-3ubuntu1.5

    Update to 1.8.21p2-3ubuntu1.5

  • sudo Ubuntu:20.04:LTS

    Versions
    • 1.8.27-1ubuntu4
    • 1.8.29-1ubuntu1
    • 1.8.31-1ubuntu1
    • 1.8.31-1ubuntu1.1
    • 1.8.31-1ubuntu1.2
    Affected ranges
    • ECOSYSTEM: < 1.8.31-1ubuntu1.4

    Update to 1.8.31-1ubuntu1.4

  • sudo Ubuntu:22.04:LTS

    Versions
    • 1.9.5p2-3ubuntu2
    • 1.9.9-1ubuntu2
    • 1.9.9-1ubuntu2.1
    Affected ranges
    • ECOSYSTEM: < 1.9.9-1ubuntu2.2

    Update to 1.9.9-1ubuntu2.2

Original sources

Check your server →