Advisory Published
Updated

REDHAT-BUG-750555

First published: Tue Nov 01 2011(Updated: )

Julian Wälde and Alexander Klink reported a flaw in the hash function used in the implementation of the Python dictionaries (associative arrays). A specially-crafted set of keys could trigger hash function collisions, which degrade dictionary performance by changing hash table operations complexity from an expected/average O(1) to the worst case O(n). Reporters were able to find colliding strings efficiently using meet in the middle attack. As various web application frameworks for Python automatically pre-fill certain dictionaries with data from the HTTP request (such as GET or POST parameters) for Python web application, a remote attacker could use this flaw to make Python interpreter use excessive amount of CPU time by sending a POST request with large amount of parameters which hash to the same value. This problem is similar to the issue that was previously reported for and fixed in e.g. perl: <a href="http://www.cs.rice.edu/~scrosby/hash/CrosbyWallach_UsenixSec2003.pdf">http://www.cs.rice.edu/~scrosby/hash/CrosbyWallach_UsenixSec2003.pdf</a>

Affected SoftwareAffected VersionHow to fix
CPython

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Reference Links

Frequently Asked Questions

  • What is the severity of REDHAT-BUG-750555?

    The severity of REDHAT-BUG-750555 is considered moderate due to potential performance degradation caused by hash collisions.

  • How do I fix REDHAT-BUG-750555?

    To fix REDHAT-BUG-750555, update to the latest version of Python that addresses the vulnerability.

  • What are the symptoms of REDHAT-BUG-750555?

    Symptoms of REDHAT-BUG-750555 may include significant slowdowns in dictionary operations when using specially-crafted keys.

  • Who is affected by REDHAT-BUG-750555?

    Users of Python software, particularly those utilizing dictionaries in their applications, are affected by REDHAT-BUG-750555.

  • When was REDHAT-BUG-750555 disclosed?

    REDAHT-BUG-750555 was disclosed by Julian Wälde and Alexander Klink, highlighting vulnerabilities related to dictionary hashing in Python.

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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203