CVE-2018-10903: Input Validation

Published Jul 18, 2018
·
Updated

A flaw was found in python-cryptography versions between >=1.9.0 and <2.3. The finalizewithtag API did not enforce a minimum tag length. If a user did not validate the input length prior to passing it to finalizewithtag an attacker could craft an invalid payload with a shortened tag (e.g. 1 byte) such that they would have a 1 in 256 chance of passing the MAC check. GCM tag forgeries can cause key leakage.

Affected Software

6 affected componentsFixes available
redhat/python-cryptography<2.3
2.3
pip/cryptography>=1.9.0<2.3
2.3
cryptography python-cryptography>=1.9.0<2.3
redhat Openstack=13
Canonical Ubuntu Linux=18.04
debian/python-cryptography
3.3.2-13.3.2-1+deb11u138.0.4-3+deb12u138.0.4-3~deb12u143.0.0-346.0.1-146.0.5-1

Event History

Jul 30, 2018
CVE Published
via MITRE·03:00 PM
Data Sourced
via MITRE·03:00 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:29 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jul 31, 2018
Advisory Published
via GitHub·06:28 PM
Feb 23, 2024
Data Sourced
via Launchpad·08:40 PM
Description
Feb 20, 2026
Data Sourced
via Ubuntu·03:58 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Debian·03:59 PM
DescriptionAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2018-10903?

CVE-2018-10903 has a severity rating of medium due to the potential for attackers to exploit the inadequate tag length enforcement.

2

How do I fix CVE-2018-10903?

To fix CVE-2018-10903, update python-cryptography to version 2.3 or later.

3

Which versions of python-cryptography are affected by CVE-2018-10903?

Versions of python-cryptography between 1.9.0 and 2.2 are affected by CVE-2018-10903.

4

What could an attacker achieve by exploiting CVE-2018-10903?

An attacker could potentially craft an invalid payload leading to security vulnerabilities due to improper input validation in the finalize_with_tag API.

5

Is CVE-2018-10903 related to specific operating systems?

Yes, CVE-2018-10903 affects installations of python-cryptography on various operating systems including Red Hat and Ubuntu.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203