CVE-2023-27043 Security feature bypass in n/a

Medium 5.3 Published Updated

Attackers can bypass email domain verification checks by exploiting incorrect address parsing in the Python email module.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-27043?

CVE-2023-27043 is a medium-severity vulnerability in Fedoraproject Fedora, published on 18 Apr 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-20, CWE-1286

Which versions are affected by CVE-2023-27043?

3 open source packages ship an affected version, including libpython, python and python-min. It affects 4 products.

PackageAffectedFixed in
libpython BitnamiAll versions3.8.20, 3.10.15, 3.11.10, 3.12.6, 3.9.20
python BitnamiAll versions3.8.20, 3.10.15, 3.11.10, 3.12.6, 3.9.20
python-min BitnamiAll versions3.8.20, 3.10.15, 3.11.10, 3.12.6, 3.9.20
Linux distribution packages (37)
platform-python AlmaLinux:8All versions3.6.8-56.el8_9.3.alma.1
platform-python-debug AlmaLinux:8All versions3.6.8-56.el8_9.3.alma.1
platform-python-devel AlmaLinux:8All versions3.6.8-56.el8_9.3.alma.1
python3-idle AlmaLinux:8All versions3.6.8-56.el8_9.3.alma.1
python3-libs AlmaLinux:8All versions3.6.8-56.el8_9.3.alma.1
python3-test AlmaLinux:8All versions3.6.8-56.el8_9.3.alma.1
python3-tkinter AlmaLinux:8All versions3.6.8-56.el8_9.3.alma.1
python3.11 AlmaLinux:8All versions3.11.7-1.el8
python3.11-debug AlmaLinux:8All versions3.11.7-1.el8
python3.11-devel AlmaLinux:8All versions3.11.7-1.el8
python3.11-idle AlmaLinux:8All versions3.11.7-1.el8
python3.11-libs AlmaLinux:8All versions3.11.7-1.el8
python3.11-rpm-macros AlmaLinux:8All versions3.11.7-1.el8
python3.11-test AlmaLinux:8All versions3.11.7-1.el8
python3.11-tkinter AlmaLinux:8All versions3.11.7-1.el8
python-unversioned-command AlmaLinux:9All versions3.9.18-1.el9_3.1
python3 AlmaLinux:9All versions3.9.18-1.el9_3.1
python3-debug AlmaLinux:9All versions3.9.18-1.el9_3.1
python3-devel AlmaLinux:9All versions3.9.18-1.el9_3.1
python3-idle AlmaLinux:9All versions3.9.18-1.el9_3.1
python3-libs AlmaLinux:9All versions3.9.18-1.el9_3.1
python3-test AlmaLinux:9All versions3.9.18-1.el9_3.1
python3-tkinter AlmaLinux:9All versions3.9.18-1.el9_3.1
python3.11 AlmaLinux:9All versions3.11.7-1.el9
python3.11-debug AlmaLinux:9All versions3.11.7-1.el9
python3.11-devel AlmaLinux:9All versions3.11.7-1.el9
python3.11-idle AlmaLinux:9All versions3.11.7-1.el9
python3.11-libs AlmaLinux:9All versions3.11.7-1.el9
python3.11-test AlmaLinux:9All versions3.11.7-1.el9
python3.11-tkinter AlmaLinux:9All versions3.11.7-1.el9
platform-python Red Hat:enterprise_linux:8::appstreamAll versions0:3.6.8-56.el8_9.3
platform-python-debug Red Hat:enterprise_linux:8::appstreamAll versions0:3.6.8-56.el8_9.3
platform-python-devel Red Hat:enterprise_linux:8::appstreamAll versions0:3.6.8-56.el8_9.3
python3-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:3.6.8-56.el8_9.3
python3-debugsource Red Hat:enterprise_linux:8::appstreamAll versions0:3.6.8-56.el8_9.3
python3-idle Red Hat:enterprise_linux:8::appstreamAll versions0:3.6.8-56.el8_9.3
python3-test Red Hat:enterprise_linux:8::appstreamAll versions0:3.6.8-56.el8_9.3

Products include Fedoraproject Fedora, Netapp Active Iq Unified Manager, Netapp Ontap Select Deploy Administration Utility, Python Python.

How do I fix CVE-2023-27043?

Upgrade libpython to a fixed version for your release line: 3.8.20, 3.10.15, 3.11.10 or 3.12.6.

Is CVE-2023-27043 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-27043 exists.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as ALPINE-CVE-2023-27043, ALSA-2024:0256, ALSA-2024:0466, ALSA-2024:2292, ALSA-2024:3062, AZL-109662 and 49 more.

Is CVE-2023-27043 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free