CVE-2023-27320
Sudo before 1.9.13p2 has a double free in the per-command chroot feature.
Sudo before 1.9.13p2 has a double free in the per-command chroot feature.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- High
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
7.2
Sudo before 1.9.13p2 has a double free in the per-command chroot feature.
- Record
CVE-2023-27320- CVSS 3.1
- 7.2 High
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-415
- Updated
- 2026-11-02
CVE List
7.2
Sudo before 1.9.13p2 has a double free in the per-command chroot feature.
- Record
CVE-2023-27320- CVSS 3.1
- 7.2 High
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-415
- Updated
- 2026-11-02
EUVDEUVD-2023-31097
7.2
Sudo before 1.9.13p2 has a double free in the per-command chroot feature.
- Record
EUVD-2023-31097- CVSS 3.1
- 7.2 High
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-w8wp-rv4w-h5pp
7.2
Sudo before 1.9.13p2 has a double free in the per-command chroot feature.
Sudo before 1.9.13p2 has a double free in the per-command chroot feature.
- Record
GHSA-w8wp-rv4w-h5pp- CVSS 3.1
- 7.2 High
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-415
- Updated
- 2026-11-02
OSVALPINE-CVE-2023-27320
7.2
Sudo before 1.9.13p2 has a double free in the per-command chroot feature.
- Record
ALPINE-CVE-2023-27320- CVSS 3.1
- 7.2 High
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-03
OSVAZL-13784
7.2
CVE-2023-27320 affecting package sudo for versions less than 1.9.13p3-1
Sudo before 1.9.13p2 has a double free in the per-command chroot feature.
- Record
AZL-13784- CVSS 3.1
- 7.2 High
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 9 moreShow less
OSVBELL-CVE-2023-27320
7.2
CVE-2023-27320 does not affect BellSoft software
- Record
BELL-CVE-2023-27320- CVSS 3.1
- 7.2 High
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSV
7.2
Sudo before 1.9.13p2 has a double free in the per-command chroot feature.
- Record
CVE-2023-27320- CVSS 3.1
- 7.2 High
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2023-27320
7.2
Sudo before 1.9.13p2 has a double free in the per-command chroot feature.
- Record
DEBIAN-CVE-2023-27320- CVSS 3.1
- 7.2 High
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVOESA-2023-1160
7.1
sudo security update
Sudo is a program designed to allow a sysadmin to give limited root privileges to users and log root activity. The basic philosophy is to give as few privileges as possible but still allow people to get their work done.
Security Fix(es):
Sudo before 1.9.13p2 has a double free in the per-command chroot feature.(CVE-2023-27320)
- Record
OESA-2023-1160- CVSS 3.1
- 7.1 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H - Updated
- 2026-11-02
OSVOESA-2023-1172
7.1
sudo security update
Sudo is a program designed to allow a sysadmin to give limited root privileges to users and log root activity. The basic philosophy is to give as few privileges as possible but still allow people to get their work done.
Security Fix(es):
Sudo before 1.9.13p2 has a double free in the per-command chroot feature.(CVE-2023-27320)
- Record
OESA-2023-1172- CVSS 3.1
- 7.1 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2023-27320
7.2
Sudo before 1.9.13p2 has a double free in the per-command chroot feature.
- Record
UBUNTU-CVE-2023-27320- CVSS 3.1
- 7.2 High
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVopenSUSE-SU-2024:12795-1 No score
sudo-1.9.13p3-2.1 on GA media
These are all security issues fixed in the sudo-1.9.13p3-2.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:12795-1- Updated
- 2026-11-02
OSVSUSE-SU-2023:1665-1 No score
Security update for sudo
This update for sudo fixes the following issue:
Security issues:
- CVE-2023-28486: Fixed sudo does not escape control characters in log messages. (bsc#1209362)
- CVE-2023-28487: Fixed sudo does not escape control characters in sudoreplay output. (bsc#1209361)
- CVE-2023-27320: Fixed a potential security issue with a double free with per-command chroot sudoers rules (bsc#1208595).
Bug fixes:
- Fix a situation where 'sudo -U otheruser -l' would dereference a NULL pointer (bsc#1206483)
- If NOPASSWD is specified, don't ask for password if command is not found (bsc#1206772).
- Do not re-enable the reader when flushing the buffers as part of pty_finish() (bsc#1203201).
- Record
SUSE-SU-2023:1665-1- Updated
- 2026-11-02
OSVUSN-5908-1 No score
sudo vulnerability
It was discovered that Sudo incorrectly handled the per-command chroot feature. In certain environments where Sudo is configured with a rule that contains a CHROOT setting, a local attacker could use this issue to cause Sudo to crash, resulting in a denial of service, or possibly escalate privileges.
- Record
USN-5908-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
sudoAlpine:v3.17 |
1.9.8 up to 1.9.12_p2-r1 | 1.9.12_p2-r1 |
sudoAzure Linux:2 |
before 1.9.13p3-1 | 1.9.13p3-1 |
sudoDebian:12 |
before 1.9.13p3-1 | 1.9.13p3-1 |
sudoDebian:13 |
before 1.9.13p3-1 | 1.9.13p3-1 |
sudoDebian:14 |
before 1.9.13p3-1 | 1.9.13p3-1 |
sudoopenEuler:22.03-LTS-SP1 |
before 1.9.8p2-10.oe2203sp1 | 1.9.8p2-10.oe2203sp1 |
sudoopenEuler:22.03-LTS |
before 1.9.8p2-10.oe2203 | 1.9.8p2-10.oe2203 |
sudoSUSE:Linux Enterprise Micro 5.3 From an advisory covering 3 CVEs |
before 1.9.9-150400.4.26.1 | 1.9.9-150400.4.26.1 |
sudoSUSE:Linux Enterprise Micro 5.4 From an advisory covering 3 CVEs |
before 1.9.9-150400.4.26.1 | 1.9.9-150400.4.26.1 |
sudoSUSE:Linux Enterprise Module for Basesystem 15 SP4 From an advisory covering 3 CVEs |
before 1.9.9-150400.4.26.1 | 1.9.9-150400.4.26.1 |
Show 4 moreShow less
| Package | Affected | Fixed |
|---|---|---|
sudoopenSUSE:Leap Micro 5.3 From an advisory covering 3 CVEs |
before 1.9.9-150400.4.26.1 | 1.9.9-150400.4.26.1 |
sudoopenSUSE:Leap 15.4 From an advisory covering 3 CVEs |
before 1.9.9-150400.4.26.1 | 1.9.9-150400.4.26.1 |
sudoUbuntu:22.04:LTS |
before 1.9.9-1ubuntu2.3, plus listed versions 1.9.5p2-3ubuntu21.9.9-1ubuntu21.9.9-1ubuntu2.11.9.9-1ubuntu2.2 |
1.9.9-1ubuntu2.3 |
sudoopenSUSE:Tumbleweed |
before 1.9.13p3-2.1 | 1.9.13p3-2.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| affected, aliases, references | OSV | |
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2023-27320 is a high vulnerability (CVSS 7.2) in Sudo Project Sudo, published February 28, 2023. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.66%, the 76th percentile. Fixed in sudo 1.9.12_p2-r1.
References
openwall.com/lists/oss-security/2023/02/28/1
sudo.ws/releases/stable
openwall.com/lists/oss-security/2023/03/01/8
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FPLXMRAMXC3BYL4DNKVTK3V6JDMUXZ7B
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/X6VW24YGXJYI4NZ5HZPQCF4MCE7766AU
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/332KN4QI6QXB7NI7SWSJ2EQJKWIILFN6
Show 26 moreShow less
security.netapp.com/advisory/ntap-20230413-0009
security.gentoo.org/glsa/202309-12
nvd.nist.gov/vuln/detail/CVE-2023-27320
lists.fedoraproject.org/archives/list/[email protected]/message/332KN4QI6QXB7NI7SWSJ2EQJKWIILFN6
lists.fedoraproject.org/archives/list/[email protected]/message/FPLXMRAMXC3BYL4DNKVTK3V6JDMUXZ7B
lists.fedoraproject.org/archives/list/[email protected]/message/X6VW24YGXJYI4NZ5HZPQCF4MCE7766AU
github.com/advisories/GHSA-w8wp-rv4w-h5pp
security.alpinelinux.org/vuln/CVE-2023-27320
docs.bell-sw.com/security/cves/CVE-2023-27320
github.com/CVEProject/cvelistV5/tree/main/cves/2023/27xxx/CVE-2023-27320.json
security-tracker.debian.org/tracker/CVE-2023-27320
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2023-1160
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2023-1172
suse.com/support/update/announcement/2023/suse-su-20231665-1
bugzilla.suse.com/1203201
bugzilla.suse.com/1206483
bugzilla.suse.com/1206772
bugzilla.suse.com/1208595
bugzilla.suse.com/1209361
bugzilla.suse.com/1209362
suse.com/security/cve/CVE-2023-27320
suse.com/security/cve/CVE-2023-28486
suse.com/security/cve/CVE-2023-28487
ubuntu.com/security/CVE-2023-27320
ubuntu.com/security/notices/USN-5908-1
cve.org/CVERecord?id=CVE-2023-27320