cve.bz

CVE-2023-27043 Improper Input Validation

5.3 mediumExploit referenceEPSS 2.5%

Medium (5.3). EPSS 2.5% estimated probability of exploitation activity in the next 30 days.

On this page
The email module of Python through 3.11.3 incorrectly parses e-mail addresses that contain a special character. The wrong portion of an RFC2822 header is identified as the value of the addr-spec. In some applications, an attacker can bypass a protection mechanism in which application access is granted only after verifying receipt of e-mail to a specific domain (e.g., only @company.example.com addresses may be used for signup). This occurs in email/_parseaddr.py in recent versions of Python.

Severity

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
EPSS
2.5% (unchanged from 2.5% a week ago; 2.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 85th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2025-12-17. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-20 Improper Input Validation
CWE-1286 Improper Validation of Syntactic Correctness of Input
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-27043 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-27043?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-27043?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-27043 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
fedoraproject:fedora38
fedoraproject:fedora39
python:pythonthrough 2.7.18
python:pythonfrom 3.0 before 3.8.20
python:pythonfrom 3.9.0 before 3.9.20
python:pythonfrom 3.10.0 before 3.10.15
python:pythonfrom 3.11.0 before 3.11.10
python:pythonfrom 3.12.0 before 3.12.6

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11pypy37.3.5+dfsg-2+deb11u4DLA-3966-1
Debian11python3.93.9.2-1+deb11u2DLA-3980-1
Debian12pypy37.3.11+dfsg-2+deb12u3DEBIAN-CVE-2023-27043
Debian12python3.113.11.2-6+deb12u5DEBIAN-CVE-2023-27043
Debian13, 14pypy37.3.17+dfsg-3DEBIAN-CVE-2023-27043
Ubuntu20.04:LTSpython3.83.8.10-0ubuntu1~20.04.12UBUNTU-CVE-2023-27043 USN-7015-1
Ubuntu22.04:LTSpython3.103.10.12-1~22.04.6UBUNTU-CVE-2023-27043 USN-7015-1
Ubuntu24.04:LTSpython3.123.12.3-1ubuntu0.2UBUNTU-CVE-2023-27043 USN-7015-1
UbuntuPro:14.04:LTSpython2.72.7.6-8ubuntu0.6+esm20UBUNTU-CVE-2023-27043 USN-7015-4
UbuntuPro:14.04:LTSpython3.4no fix listedUBUNTU-CVE-2023-27043
UbuntuPro:14.04:LTSpython3.53.5.2-2ubuntu0~16.04.4~14.04.1+esm3UBUNTU-CVE-2023-27043 USN-7015-4
UbuntuPro:16.04:LTSpython2.72.7.12-1ubuntu0~16.04.18+esm18UBUNTU-CVE-2023-27043 USN-7015-3 USN-7015-7
UbuntuPro:16.04:LTSpython3.53.5.2-2ubuntu0~16.04.13+esm15UBUNTU-CVE-2023-27043 USN-7015-3
UbuntuPro:18.04:LTSpython2.72.7.17-1~18.04ubuntu1.13+esm13UBUNTU-CVE-2023-27043 USN-7015-3 USN-7015-7
UbuntuPro:18.04:LTSpython3.6, python3.7, python3.8no fix listedUBUNTU-CVE-2023-27043
UbuntuPro:20.04:LTSpython2.72.7.18-1~20.04.4+esm3UBUNTU-CVE-2023-27043 USN-7015-3
UbuntuPro:20.04:LTSpython3.9no fix listedUBUNTU-CVE-2023-27043
2 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:8::appstreamPyYAML, python39-pyyaml, PyYAML-debugsource and 1 more0:5.4.1-1.module+el8.9.0+19644+d68f775dRHSA-2024:2985
Red Hatenterprise_linux:8::appstreammod_wsgi, python39-mod_wsgi0:4.7.1-7.module+el8.9.0+19644+d68f775dRHSA-2024:2985
Red Hatenterprise_linux:8::appstreamnumpy, python39-numpy, numpy-debugsource and 3 more0:1.19.4-3.module+el8.9.0+19644+d68f775dRHSA-2024:2985
Red Hatenterprise_linux:8::appstreampython-PyMySQL, python39-PyMySQL0:0.10.1-2.module+el8.9.0+19644+d68f775dRHSA-2024:2985
Red Hatenterprise_linux:8::appstreampython-cffi, python39-cffi, python-cffi-debugsource and 1 more0:1.14.3-2.module+el8.9.0+19644+d68f775dRHSA-2024:2985
Red Hatenterprise_linux:8::appstreampython-chardet, python39-chardet0:3.0.4-19.module+el8.9.0+19644+d68f775dRHSA-2024:2985
Red Hatenterprise_linux:8::appstreampython-cryptography, python39-cryptography, python-cryptography-debugsource and 1 more0:3.3.1-3.module+el8.10.0+21271+eccd1d86RHSA-2024:2985
Red Hatenterprise_linux:8::appstreampython-idna, python39-idna0:2.10-3.module+el8.9.0+19644+d68f775dRHSA-2024:2985
Red Hatenterprise_linux:8::appstreampython-lxml, python39-lxml, python-lxml-debugsource and 1 more0:4.6.5-1.module+el8.9.0+19644+d68f775dRHSA-2024:2985
Red Hatenterprise_linux:8::appstreampython-ply, python39-ply0:3.11-10.module+el8.9.0+19644+d68f775dRHSA-2024:2985
Red Hatenterprise_linux:8::appstreampython-psutil, python39-psutil, python-psutil-debugsource and 1 more0:5.8.0-4.module+el8.9.0+19644+d68f775dRHSA-2024:2985
Red Hatenterprise_linux:8::appstreampython-psycopg2, python39-psycopg2, python39-psycopg2-doc and 3 more0:2.8.6-3.module+el8.10.0+21142+453d2b75RHSA-2024:2985
39 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Server 15 SP3-LTSS and 1 morepython39, python39-core3.9.18-150300.4.38.1SUSE-SU-2024:0784-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Module for Python 3 15 SP5 and 2 morepython311, python311-core, python311-documentation3.11.8-150400.9.23.1SUSE-SU-2024:0782-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Server 15 SP4-LTSS and 1 morepython310, python310-core3.10.13-150400.4.39.1SUSE-SU-2024:0595-1
SUSELinux Enterprise Micro 5.1python3, python3-core3.6.15-150000.3.138.1SUSE-SU-2024:0464-1
SUSELinux Enterprise Micro 5.2, Linux Enterprise Micro 5.3, Linux Enterprise Micro 5.4 and 2 morepython3, python3-core3.6.15-150300.10.54.1SUSE-SU-2024:0581-1
SUSELinux Enterprise Module for Development Tools 15 SP5python3-core3.6.15-150300.10.54.1SUSE-SU-2024:0581-1
SUSELinux Enterprise Module for Package Hub 15 SP4python, python-base2.7.18-150000.60.1SUSE-SU-2024:0329-2
SUSELinux Enterprise Module for Package Hub 15 SP4python-base2.7.18-150000.57.1SUSE-SU-2023:4220-1
SUSELinux Enterprise Module for Package Hub 15 SP5python, python-base2.7.18-150000.60.1SUSE-SU-2024:0329-1
SUSELinux Enterprise Module for Package Hub 15 SP5, Linux Enterprise Module for Package Hub 15 SP6python, python-base2.7.18-150000.65.1SUSE-SU-2024:1862-1
SUSELinux Enterprise Module for Package Hub 15 SP5, Manager Proxy 4.2, Manager Server 4.2python, python-base2.7.18-150000.57.1SUSE-SU-2023:4220-1
SUSELinux Enterprise Module for Public Cloud 15 SP4python311, python311-core3.11.8-150400.9.23.1SUSE-SU-2024:0782-2
9 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.4, Leap 15.5python, python-doc, python-base2.7.18-150000.57.1SUSE-SU-2023:4220-1
openSUSELeap 15.5python, python-doc, python-base2.7.18-150000.60.1SUSE-SU-2024:0329-1
openSUSELeap 15.5python3, python3-core, python3-documentation3.6.15-150300.10.54.1SUSE-SU-2024:0581-1
openSUSELeap 15.5python310, python310-core, python310-documentation3.10.13-150400.4.39.1SUSE-SU-2024:0595-1
openSUSELeap 15.5python311, python311-core, python311-documentation3.11.8-150400.9.23.1SUSE-SU-2024:0782-1
openSUSELeap 15.5python39, python39-core, python39-documentation3.9.18-150300.4.38.1SUSE-SU-2024:0784-1
openSUSELeap 15.5, Leap 15.6python, python-doc, python-base2.7.18-150000.65.1SUSE-SU-2024:1862-1
openSUSELeap Micro 5.3, Leap Micro 5.4python3, python3-core3.6.15-150300.10.54.1SUSE-SU-2024:0581-1
openSUSETumbleweedpython2.7.18-37.1openSUSE-SU-2024:13135-1
openSUSETumbleweedpython3103.10.12-2.1openSUSE-SU-2024:13066-1
openSUSETumbleweedpython3113.11.4-2.1openSUSE-SU-2024:13104-1
openSUSETumbleweedpython3123.12.0b4-1.1openSUSE-SU-2024:13049-1
5 more for openSUSE in the JSON and on openSUSE's page.
AlmaLinux8python3-idle, python3-libs, python3-test and 4 more3.6.8-56.el8_9.3.alma.1ALSA-2024:0256
AlmaLinux8python3.11, python3.11-idle, python3.11-libs and 5 more3.11.7-1.el8ALSA-2024:3062
AlmaLinux8python39, python39-idle, python39-libs and 5 more3.9.18-3.module_el8.10.0+3765+2f9a457dALSA-2024:2985
AlmaLinux8python39-Cython0.29.21-5.module_el8.6.0+2780+a40f65e1ALSA-2024:2985
AlmaLinux8python39-Cython0.29.21-5.module_el8.6.0+3248+c431e88cALSA-2024:2985
AlmaLinux8python39-PyMySQL0.10.1-2.module_el8.6.0+2780+a40f65e1ALSA-2024:2985
AlmaLinux8python39-attrs20.3.0-2.module_el8.6.0+2780+a40f65e1ALSA-2024:2985
AlmaLinux8python39-cffi1.14.3-2.module_el8.6.0+2780+a40f65e1ALSA-2024:2985
AlmaLinux8python39-cffi1.14.3-2.module_el8.6.0+3248+c431e88cALSA-2024:2985
AlmaLinux8python39-chardet3.0.4-19.module_el8.6.0+2780+a40f65e1ALSA-2024:2985
AlmaLinux8python39-cryptography3.3.1-3.module_el8.10.0+3765+2f9a457dALSA-2024:2985
AlmaLinux8python39-idna2.10-3.module_el8.6.0+2780+a40f65e1ALSA-2024:2985
33 more for AlmaLinux in the JSON.
Rocky Linux8Cython0:0.29.21-5.module+el8.10.0+1582+bc278001RLSA-2024:2985
Rocky Linux8PyYAML0:5.4.1-1.module+el8.10.0+1582+bc278001RLSA-2024:2985
Rocky Linux8mod_wsgi0:4.7.1-7.module+el8.10.0+1582+bc278001RLSA-2024:2985
Rocky Linux8numpy0:1.19.4-3.module+el8.10.0+1582+bc278001RLSA-2024:2985
Rocky Linux8pybind110:2.7.1-1.module+el8.9.0+1357+a3b80af7RLSA-2024:2985
Rocky Linux8pytest0:6.0.2-2.module+el8.10.0+1582+bc278001RLSA-2024:2985
Rocky Linux8python-PyMySQL0:0.10.1-2.module+el8.10.0+1582+bc278001RLSA-2024:2985
Rocky Linux8python-attrs0:20.3.0-2.module+el8.10.0+1582+bc278001RLSA-2024:2985
Rocky Linux8python-cffi0:1.14.3-2.module+el8.10.0+1582+bc278001RLSA-2024:2985
Rocky Linux8python-chardet0:3.0.4-19.module+el8.10.0+1582+bc278001RLSA-2024:2985
Rocky Linux8python-cryptography0:3.3.1-3.module+el8.10.0+1697+7e517775RLSA-2024:2985
Rocky Linux8python-iniconfig0:1.1.1-2.module+el8.9.0+1332+dd574197RLSA-2024:2985
22 more for Rocky Linux in the JSON.
Alpinev3.17python33.10.15-r0ALPINE-CVE-2023-27043
Alpinev3.18, v3.19python33.11.10-r0ALPINE-CVE-2023-27043
Alpinev3.20, v3.21, v3.22 and 2 morepython33.12.6-r0ALPINE-CVE-2023-27043
Azure Linux2python33.9.19-9AZL-31167
Azure Linux3python-pyno fix listedAZL-109662
Azure Linux3python33.12.3-6AZL-35144
Alpaquita23python33.11.6-r1BELL-CVE-2023-27043
Alpaquitastreampython33.11.7-r2BELL-CVE-2023-27043
BellSoft Hardened Containers23python33.11.6-r1BELL-CVE-2023-27043
BellSoft Hardened Containersstreampython33.11.7-r2BELL-CVE-2023-27043

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Versions of python36:3.6/python36 as shipped with Red Hat Enterprise Linux 8 are marked as 'Not affected' as they just provide "symlinks" to the main python3 component, which provides the actual interpreter of the Python programming language.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8python3-0:3.6.8-56.el8_9.3Fixed 2024-01-15RHSA-2024:0256
Red Hat Enterprise Linux 8python39:3.9-8100020240214182535.7044f6c1Fixed 2024-05-22RHSA-2024:2985
Red Hat Enterprise Linux 8python39-devel:3.9-8100020240214182535.7044f6c1Fixed 2024-05-22RHSA-2024:2985
Red Hat Enterprise Linux 8python3.11-0:3.11.7-1.el8Fixed 2024-05-22RHSA-2024:3062
Red Hat Enterprise Linux 8.6 Extended Update Supportpython3-0:3.6.8-47.el8_6.4Fixed 2024-01-25RHSA-2024:0430
Red Hat Enterprise Linux 8.8 Extended Update Supportpython3-0:3.6.8-51.el8_8.4Fixed 2024-01-30RHSA-2024:0586
Red Hat Enterprise Linux 9python3.9-0:3.9.18-1.el9_3.1Fixed 2024-01-25RHSA-2024:0466
Red Hat Enterprise Linux 9python3.11-0:3.11.7-1.el9Fixed 2024-04-30RHSA-2024:2292
Red Hat Enterprise Linux 9.2 Extended Update Supportpython3.9-0:3.9.16-1.el9_2.3Fixed 2024-01-25RHSA-2024:0454
RHODF-4.15-RHEL-9odf4/cephcsi-rhel9:v4.15.0-37Fixed 2024-03-19RHSA-2024:1383
RHODF-4.15-RHEL-9odf4/mcg-core-rhel9:v4.15.0-68Fixed 2024-03-19RHSA-2024:1383
RHODF-4.15-RHEL-9odf4/mcg-operator-bundle:v4.15.0-158Fixed 2024-03-19RHSA-2024:1383
RHODF-4.15-RHEL-9odf4/mcg-rhel9-operator:v4.15.0-39Fixed 2024-03-19RHSA-2024:1383
Red Hat Enterprise Linux 6pythonOut of support scope
Red Hat Enterprise Linux 7pythonOut of support scope
Red Hat Enterprise Linux 7python3Out of support scope
Red Hat Enterprise Linux 8python27:2.7/python2Will not fix
Red Hat Enterprise Linux 8python36:3.6/python36Not affected
Red Hat Enterprise Linux 8python38:3.8/python38Not affected
Red Hat Software Collectionsrh-python38-pythonWill not fix
22 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-27043.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-26-134-16Siemens Ruggedcom Rox2026-05-12Critical ManufacturingRUGGEDCOM ROX MX5000, RUGGEDCOM ROX MX5000RE, RUGGEDCOM ROX RX1400 and 8 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-66 SQL Injection Likelihood: High · Severity: High
  • CAPEC-676 NoSQL Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON