SB2023080297 - Off-by-one in Python



SB2023080297 - Off-by-one in Python

Published: August 2, 2023 Updated: June 3, 2025

Security Bulletin ID SB2023080297
Severity
Medium
Patch available
YES
Number of vulnerabilities 1
Exploitation vector Remote access
Highest impact Information disclosure

Breakdown by Severity

Medium 100%
  • Low
  • Medium
  • High
  • Critical

Description

This security bulletin contains information about 1 security vulnerability.


1) Off-by-one (CVE-ID: CVE-2007-2052)

The vulnerability allows a remote non-authenticated attacker to gain access to sensitive information.

Off-by-one error in the PyLocale_strxfrm function in Modules/_localemodule.c for Python 2.4 and 2.5 causes an incorrect buffer size to be used for the strxfrm function, which allows context-dependent attackers to read portions of memory via unknown manipulations that trigger a buffer over-read due to missing null termination.


Remediation

Install update from vendor's website.

References