Skip to main content
VulnerabilityPublished Updated

CVE-2025-4516: Python3.6 · There is an issue in CPython when using bytes.decode("unicode_escape"

Affects python3.6Source GCVE Database

0
Compare

Not known to be exploited · CVSS 5.9 Medium · fixed in 3.6.9-1~18.04ubuntu1.13+esm5 : update python3.6 when convenient.

Data as of 24 Nov 2026, 19:43 UTC

CVSS 4.0 base score
5.9Medium
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 3.6.9-1~18.04ubuntu1.13+esm5, 3.7.5-2ubuntu1~18.04.2+esm6, 3.8.0-3ubuntu1~18.04.2+esm5 +6
CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 15 May 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.

What to do

Upgrade to a fixed release listed under Affected software.

Affected software

ProductAffectedFixed in
Ubuntu 26.04 LTSpython3.14pkg:deb/ubuntu/python3.14?arch=source&distro=resoluteOther threatsAffected
  • <3.14.0-1
Fixed in
  • 3.14.0-1
Ubuntu 25.10python3.14pkg:deb/ubuntu/python3.14?arch=source&distro=questingOther threatsAffected
  • 3.14.0~a7-0ubuntu1 – 3.14.0~rc3-1
  • <3.14.0-1
6 affected builds
Fixed in
  • 3.14.0-1
Ubuntu 24.04 LTSpython3.12pkg:deb/ubuntu/python3.12?arch=source&distro=nobleOther threatsAffected
  • <3.12.3-1ubuntu0.6
Fixed in
  • 3.12.3-1ubuntu0.6
Ubuntu 22.04 LTSpython3.10pkg:deb/ubuntu/python3.10?arch=source&distro=jammyOther threatsAffected
  • <3.10.12-1~22.04.10
Fixed in
  • 3.10.12-1~22.04.10
Ubuntu Pro 22.04 LTSpython3.11pkg:deb/ubuntu/python3.11?arch=source&distro=esm-apps/jammyOther threatsAffected
  • <3.11.0~rc1-1~22.04.1~esm4
Fixed in
  • 3.11.0~rc1-1~22.04.1~esm4
Ubuntu Pro 20.04 LTSpython3.8pkg:deb/ubuntu/python3.8?arch=source&distro=esm-infra/focalOther threatsAffected
  • <3.8.10-0ubuntu1~20.04.18+esm1
Fixed in
  • 3.8.10-0ubuntu1~20.04.18+esm1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

There is an issue in CPython when using `bytes.decode("unicode_escape", error="ignore|replace")`. If you are not using the "unicode_escape" encoding or an error handler your usage is not affected. To work-around this issue you may stop using the error= handler and instead wrap the bytes.decode() call in a try-except catching the DecodeError.

References

Community reviews

Loading reviews…